Skip to content

Commit 777e97c

Browse files
[MLIR] Fixes for BUILD_SHARED_LIBS=on
Differential Revision: https://reviews.llvm.org/D75308
1 parent e17d9c1 commit 777e97c

File tree

10 files changed

+23
-4
lines changed

10 files changed

+23
-4
lines changed

mlir/examples/toy/Ch5/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,5 @@ target_link_libraries(toyc-ch5
3535
MLIRIR
3636
MLIRParser
3737
MLIRPass
38+
MLIRSupport
3839
MLIRTransforms)

mlir/examples/toy/Ch6/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ target_link_libraries(toyc-ch6
4141
MLIRLLVMIR
4242
MLIRParser
4343
MLIRPass
44+
MLIRSupport
4445
MLIRTargetLLVMIR
4546
MLIRTransforms
4647
LLVMOrcJIT

mlir/lib/Conversion/GPUToCUDA/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,19 @@ endif()
1212

1313
add_mlir_conversion_library(MLIRGPUtoCUDATransforms
1414
${SOURCES}
15+
1516
LINK_LIBS
1617
LLVMNVPTXCodeGen
1718
LLVMNVPTXDesc
1819
LLVMNVPTXInfo
20+
LLVMCore
21+
LLVMMC
22+
LLVMSupport
1923
MLIRGPU
24+
MLIRIR
2025
MLIRLLVMIR
2126
MLIRNVVMIR
2227
MLIRPass
28+
MLIRSupport
2329
MLIRTargetNVVMIR
2430
)

mlir/lib/Conversion/GPUToVulkan/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ target_link_libraries(MLIRGPUtoVulkanTransforms
1313
MLIRSupport
1414
MLIRTransforms
1515
MLIRTranslation
16+
LLVMSupport
1617
)

mlir/lib/Dialect/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ add_subdirectory(LoopOps)
77
add_subdirectory(OpenMP)
88
add_subdirectory(QuantOps)
99
add_subdirectory(SDBM)
10-
add_subdirectory(Shape)
10+
#add_subdirectory(Shape)
1111
add_subdirectory(SPIRV)
1212
add_subdirectory(StandardOps)
1313
add_subdirectory(VectorOps)

mlir/lib/Dialect/LoopOps/Transforms/CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@ add_mlir_dialect_library(MLIRLoopOpsTransforms
55

66
ADDITIONAL_HEADER_DIRS
77
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/LoopOps
8-
)
98

10-
target_link_libraries(MLIRLoopOpsTransforms
9+
LINK_LIBS
10+
MLIRAffineOps
11+
MLIRIR
1112
MLIRPass
1213
MLIRLoopOps
14+
MLIRStandardOps
15+
MLIRSupport
16+
LLVMSupport
1317
)

mlir/lib/Dialect/VectorOps/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ add_mlir_dialect_library(MLIRVectorOps
1212
MLIRVectorTransformPatternsIncGen
1313

1414
LINK_LIBS
15+
MLIREDSC
1516
MLIRIR
1617
MLIRStandardOps
1718
MLIRAffineOps

mlir/test/SDBM/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ target_link_libraries(mlir-sdbm-api-test
88
PRIVATE
99
MLIRIR
1010
MLIRSDBM
11+
MLIRSupport
1112
LLVMCore
1213
LLVMSupport
1314
)

mlir/test/lib/TestDialect/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ add_llvm_library(MLIRTestDialect
2525
MLIRIR
2626
MLIRLinalgTransforms
2727
MLIRPass
28+
MLIRStandardOps
2829
MLIRTransforms
2930
MLIRTransformUtils
3031
LLVMSupport

mlir/tools/mlir-cpu-runner/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,7 @@ target_link_libraries(mlir-cpu-runner PRIVATE
1616
MLIRSupport
1717
LLVMCore
1818
LLVMSupport
19-
)
19+
LLVMX86CodeGen
20+
LLVMX86Desc
21+
LLVMX86Info
22+
)

0 commit comments

Comments
 (0)