Repository navigation
Conversation
| iree-tblgen | ||
| SRCS | ||
| "${IREE_ROOT_DIR}/third_party/mlir/tools/mlir-tblgen/mlir-tblgen.cpp" | ||
| "${IREE_ROOT_DIR}/iree/compiler/Dialect/VM/Tools/VMOpEncoderGen.cpp" |
There was a problem hiding this comment.
Can this depend on iree::compiler::Dialect::VM::Tools instead of pulling in these SRCS and DEPS directly?
It should end up looking close to the Bazel BUILD file: https://github.com/google/iree/blob/baa78198aea49c0fbd0c37ae6fb8514deb9bd37f/iree/tools/BUILD#L105-L116
There was a problem hiding this comment.
I initially linked against iree::compiler::Dialect::VM::Tools, but somehow that wasn't sufficient to enable the necessary command line arguments like -gen-iree-vm-op-encoder-defs.
There was a problem hiding this comment.
Ah, as iree::compiler::Dialect::VM::Tools is marked ALWAYSLINK, my fix for #190 should work (the additional arguments will appear). If this is needed until my work there is ready and merged, we could merge this as-is and I can make the switch as part of my change.
| set(LLVM_INCLUDE_BENCHMARKS OFF) | ||
| set(LLVM_APPEND_VC_REV OFF) | ||
| set(LLVM_ENABLE_IDE ON) | ||
| set(LLVM_ENABLE_RTTI ON) |
There was a problem hiding this comment.
This line I'm not sure about (and wanted @stellaraccident 's feedback on), since the Google style guide in general disallows RTTI: https://google.github.io/styleguide/cppguide.html#Run-Time_Type_Information__RTTI_ . If we need it within LLVM (which the issue comments pointed out) then I guess it's fine?
There was a problem hiding this comment.
I'm fine with it for now -- that part of the style guide must bow to pragmatism, especially with respect to third party integrations.
With that said, it isn't clear to me why this is needed (based on the errors, I believe that it is, but I think it needs more root cause analysis). Can you please create an issue specifically for debugging this so we don't lose track? It will be substantially easier to root-cause once the build system is generally working, so we should proceed.
This closes #182.