-
Notifications
You must be signed in to change notification settings - Fork 820
Fix Bazel and CMake build after LLVM integration #1672
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
MLIR Linalg now adopts a two-level TableGen flow: some Linalg op's TableGen definition are first generated by a dedicated TableGen backend into `LinalgNamedStructuredOps.td` and then that file is TableGen'ed into C++ code. The path needs to be updated to let TableGen find the generated intermediate TD files.
build_tools/cmake/iree_copts.cmake
Outdated
| ${PROJECT_SOURCE_DIR}/third_party/llvm-project/llvm/include | ||
| ${PROJECT_BINARY_DIR}/third_party/llvm-project/llvm/include | ||
| ${PROJECT_SOURCE_DIR}/third_party/llvm-project/mlir/include | ||
| ${PROJECT_BINARY_DIR}/third_party/llvm-project/mlir/include |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this is already listed right above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ${PROJECT_BINARY_DIR}/third_party/llvm-project/mlir/include |
build_tools/cmake/iree_copts.cmake
Outdated
| ${PROJECT_SOURCE_DIR}/third_party/llvm-project/llvm/include | ||
| ${PROJECT_BINARY_DIR}/third_party/llvm-project/llvm/include | ||
| ${PROJECT_SOURCE_DIR}/third_party/llvm-project/mlir/include | ||
| ${PROJECT_BINARY_DIR}/third_party/llvm-project/mlir/include |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ${PROJECT_BINARY_DIR}/third_party/llvm-project/mlir/include |
|
cmake build is still failing:
I'd be ok still submitting this since it's at least a step in the right direction and I can pick it up on Monday |
Updated LLVM and TensorFlow SHA and fixed build configuration.
MLIR Linalg now adopts a two-level generation flow: some Linalg op's
op definitions are first generated by a dedicated TableGen backend into
LinalgNamedStructuredOps.tdand then that file is TableGen'ed intoC++ code. The include path needs to be updated to let TableGen find the
generated intermediate TD files.