This is required to allow python to work with lowerings that use inline_asm.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
utils/bazel/llvm-project-overlay/mlir/BUILD.bazel | ||
---|---|---|
4994 | You didn't add an include, is this needed? Is this failing with a linker error without this? |
utils/bazel/llvm-project-overlay/mlir/BUILD.bazel | ||
---|---|---|
4994 | Yes, this would fail with a linker error without this change. |
mlir/lib/CAPI/ExecutionEngine/CMakeLists.txt | ||
---|---|---|
6 ↗ | (On Diff #388761) | Something like ${LLVM_NATIVE_ARCH}AsmParser would be more restricted. Also, I'm pretty sure you want to add the dependency in MLIRExecutionEngine, not in its C API. |
mlir/lib/CAPI/ExecutionEngine/CMakeLists.txt | ||
---|---|---|
6 ↗ | (On Diff #388761) |
Why? The call is added to the C API only, not to the C++ library. |
mlir/lib/CAPI/ExecutionEngine/CMakeLists.txt | ||
---|---|---|
6 ↗ | (On Diff #388761) | Ping? |
My team is working on MLIR-based projects which don't target the native (host) architecture, and there's some consternation about the increased build times arising from the added dependency on ${LLVM_NATIVE_ARCH}AsmParser in MLIRExecutionEngine (note that we don't use the execution engine either). Is this dependency on the native target unavoidable, or something that could be selectively disabled? Alternatively, could the MLIRExecutionEngine project be made optional in some way? Many thanks in advance!
mlir/lib/CAPI/ExecutionEngine/CMakeLists.txt | ||
---|---|---|
6 ↗ | (On Diff #388761) | Hm, I missed the fact that it was added to the C API. This only makes it stranger: I would expect the functionality that requires a library dependency to be implemented in C++, not in the C API glue. |
You didn't add an include, is this needed? Is this failing with a linker error without this?