Skip to content

Commit

Permalink
[MLIR] Fixes for BUILD_SHARED_LIBS=on
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.llvm.org/D75308
  • Loading branch information
stephenneuendorffer committed Feb 28, 2020
1 parent 1246e86 commit c767dc9
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 3 deletions.
1 change: 1 addition & 0 deletions mlir/examples/toy/Ch5/CMakeLists.txt
Expand Up @@ -35,4 +35,5 @@ target_link_libraries(toyc-ch5
MLIRIR
MLIRParser
MLIRPass
MLIRSupport
MLIRTransforms)
1 change: 1 addition & 0 deletions mlir/examples/toy/Ch6/CMakeLists.txt
Expand Up @@ -41,6 +41,7 @@ target_link_libraries(toyc-ch6
MLIRLLVMIR
MLIRParser
MLIRPass
MLIRSupport
MLIRTargetLLVMIR
MLIRTransforms
LLVMOrcJIT
Expand Down
6 changes: 6 additions & 0 deletions mlir/lib/Conversion/GPUToCUDA/CMakeLists.txt
Expand Up @@ -12,13 +12,19 @@ endif()

add_mlir_conversion_library(MLIRGPUtoCUDATransforms
${SOURCES}

LINK_LIBS
LLVMNVPTXCodeGen
LLVMNVPTXDesc
LLVMNVPTXInfo
LLVMCore
LLVMMC
LLVMSupport
MLIRGPU
MLIRIR
MLIRLLVMIR
MLIRNVVMIR
MLIRPass
MLIRSupport
MLIRTargetNVVMIR
)
1 change: 1 addition & 0 deletions mlir/lib/Conversion/GPUToVulkan/CMakeLists.txt
Expand Up @@ -13,4 +13,5 @@ target_link_libraries(MLIRGPUtoVulkanTransforms
MLIRSupport
MLIRTransforms
MLIRTranslation
LLVMSupport
)
8 changes: 6 additions & 2 deletions mlir/lib/Dialect/LoopOps/Transforms/CMakeLists.txt
Expand Up @@ -5,9 +5,13 @@ add_mlir_dialect_library(MLIRLoopOpsTransforms

ADDITIONAL_HEADER_DIRS
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/LoopOps
)

target_link_libraries(MLIRLoopOpsTransforms
LINK_LIBS
MLIRAffineOps
MLIRIR
MLIRPass
MLIRLoopOps
MLIRStandardOps
MLIRSupport
LLVMSupport
)
1 change: 1 addition & 0 deletions mlir/lib/Dialect/VectorOps/CMakeLists.txt
Expand Up @@ -12,6 +12,7 @@ add_mlir_dialect_library(MLIRVectorOps
MLIRVectorTransformPatternsIncGen

LINK_LIBS
MLIREDSC
MLIRIR
MLIRStandardOps
MLIRAffineOps
Expand Down
1 change: 1 addition & 0 deletions mlir/test/SDBM/CMakeLists.txt
Expand Up @@ -8,6 +8,7 @@ target_link_libraries(mlir-sdbm-api-test
PRIVATE
MLIRIR
MLIRSDBM
MLIRSupport
LLVMCore
LLVMSupport
)
Expand Down
5 changes: 4 additions & 1 deletion mlir/tools/mlir-cpu-runner/CMakeLists.txt
Expand Up @@ -16,4 +16,7 @@ target_link_libraries(mlir-cpu-runner PRIVATE
MLIRSupport
LLVMCore
LLVMSupport
)
LLVMX86CodeGen
LLVMX86Desc
LLVMX86Info
)

0 comments on commit c767dc9

Please sign in to comment.