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*)'
This commit is contained in:
Mehdi Amini 2022-03-08 20:31:16 +00:00
parent 47e3f94636
commit b743850b73

View File

@ -11,6 +11,7 @@ if (MLIR_ENABLE_ROCM_CONVERSIONS)
IRReader
linker
MCParser
MLIRExecutionEngine
AMDGPUAsmParser
AMDGPUCodeGen
AMDGPUDesc