[Mlir-commits] [mlir] b743850 - Fix link of libmlir.so by adding ExecutionEngine as dependency to GPUTransforms
Mehdi Amini
llvmlistbot at llvm.org
Tue Mar 8 12:33:14 PST 2022
Author: Mehdi Amini
Date: 2022-03-08T20:33:03Z
New Revision: b743850b736e4a89378be8bed61c1b3489b56d19
URL: https://github.com/llvm/llvm-project/commit/b743850b736e4a89378be8bed61c1b3489b56d19
DIFF: https://github.com/llvm/llvm-project/commit/b743850b736e4a89378be8bed61c1b3489b56d19.diff
LOG: Fix link of libmlir.so by adding ExecutionEngine as dependency to GPUTransforms
This feels like a layering violation, but it fixes the build.
Fixes #54242
tools/mlir/lib/Dialect/GPU/CMakeFiles/obj.MLIRGPUTransforms.dir/Transforms/SerializeToHsaco.cpp.o:SerializeToHsaco.cpp:function (anonymous namespace)::SerializeToHsacoPass::optimizeLlvm(llvm::Module&, llvm::TargetMachine&):
error: undefined reference to 'mlir::makeOptimizingTransformer(unsigned int, unsigned int, llvm::TargetMachine*)'
Added:
Modified:
mlir/lib/Dialect/GPU/CMakeLists.txt
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/GPU/CMakeLists.txt b/mlir/lib/Dialect/GPU/CMakeLists.txt
index 56587d4130677..fc3c26b8d822c 100644
--- a/mlir/lib/Dialect/GPU/CMakeLists.txt
+++ b/mlir/lib/Dialect/GPU/CMakeLists.txt
@@ -11,6 +11,7 @@ if (MLIR_ENABLE_ROCM_CONVERSIONS)
IRReader
linker
MCParser
+ MLIRExecutionEngine
AMDGPUAsmParser
AMDGPUCodeGen
AMDGPUDesc
More information about the Mlir-commits
mailing list