[Mlir-commits] [mlir] 38ec0a0 - [mlir][SerializeToHsaco] Minimize dependencies of AMDGPU compilation

Krzysztof Drewniak llvmlistbot at llvm.org
Tue Nov 15 12:31:12 PST 2022


Author: Krzysztof Drewniak
Date: 2022-11-15T20:31:06Z
New Revision: 38ec0a07d0f9b780780c665f656cdd85a64ac1d9

URL: https://github.com/llvm/llvm-project/commit/38ec0a07d0f9b780780c665f656cdd85a64ac1d9
DIFF: https://github.com/llvm/llvm-project/commit/38ec0a07d0f9b780780c665f656cdd85a64ac1d9.diff

LOG: [mlir][SerializeToHsaco] Minimize dependencies of AMDGPU compilation

The SerializeToHsaco uses functions from ExecutionEngineUtils to set
up LLVM pass pipelines, but does not otherwise depend on the execution
engine (except indirectly via a dependency on IPO). This commit
removes the dependency on the execution engine to prevent
unnecessarily compilations.

Reviewed By: ThomasRaoux

Differential Revision: https://reviews.llvm.org/D138041

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 53dd163cec3c..94f3ab505f23 100644
--- a/mlir/lib/Dialect/GPU/CMakeLists.txt
+++ b/mlir/lib/Dialect/GPU/CMakeLists.txt
@@ -9,6 +9,7 @@ endif()
 if (MLIR_ENABLE_ROCM_CONVERSIONS)
   set(AMDGPU_LIBS
     IRReader
+    IPO
     linker
     MCParser
     AMDGPUAsmParser
@@ -139,7 +140,6 @@ if(MLIR_ENABLE_ROCM_CONVERSIONS)
 
   target_link_libraries(MLIRGPUTransforms
     PRIVATE
-    MLIRExecutionEngine
     MLIRROCDLToLLVMIRTranslation
   )
 endif()


        


More information about the Mlir-commits mailing list