[MLIR] Fixes for BUILD_SHARED_LIBS=on

Differential Revision: https://reviews.llvm.org/D75308
This commit is contained in:
Stephen Neuendorffer 2020-02-27 14:53:12 -08:00
parent 7c64f6bf52
commit 9f979d7ad5
13 changed files with 40 additions and 6 deletions

View File

@ -35,4 +35,5 @@ target_link_libraries(toyc-ch5
MLIRIR
MLIRParser
MLIRPass
MLIRSupport
MLIRTransforms)

View File

@ -41,6 +41,7 @@ target_link_libraries(toyc-ch6
MLIRLLVMIR
MLIRParser
MLIRPass
MLIRSupport
MLIRTargetLLVMIR
MLIRTransforms
)

View File

@ -13,9 +13,22 @@ set(LLVM_OPTIONAL_SOURCES
Verifier.cpp
)
add_mlir_library(MLIRControlFlowAnalysis
ControlFlowInterfaces.cpp
ADDITIONAL_HEADER_DIRS
${MLIR_MAIN_INCLUDE_DIR}/mlir/Analysis
DEPENDS
MLIRControlFlowInterfacesIncGen
)
target_link_libraries(MLIRControlFlowAnalysis
PUBLIC
MLIRIR
)
add_mlir_library(MLIRAnalysis
CallGraph.cpp
ControlFlowInterfaces.cpp
InferTypeOpInterface.cpp
Liveness.cpp
SliceAnalysis.cpp
@ -27,7 +40,6 @@ add_mlir_library(MLIRAnalysis
DEPENDS
MLIRCallOpInterfacesIncGen
MLIRControlFlowInterfacesIncGen
MLIRTypeInferOpInterfaceIncGen
)
@ -49,7 +61,6 @@ add_mlir_library(MLIRLoopAnalysis
DEPENDS
MLIRCallOpInterfacesIncGen
MLIRControlFlowInterfacesIncGen
MLIRTypeInferOpInterfaceIncGen
)

View File

@ -13,9 +13,17 @@ endif()
add_mlir_conversion_library(MLIRGPUtoCUDATransforms ${SOURCES})
target_link_libraries(MLIRGPUtoCUDATransforms
PUBLIC
LLVMNVPTXCodeGen
LLVMNVPTXDesc
LLVMNVPTXInfo
LLVMCore
LLVMMC
LLVMSupport
MLIRGPU
MLIRIR
MLIRLLVMIR
MLIRNVVMIR
MLIRPass
MLIRSupport
MLIRTargetNVVMIR
)

View File

@ -14,4 +14,5 @@ target_link_libraries(MLIRGPUtoVulkanTransforms
MLIRSupport
MLIRTransforms
MLIRTranslation
LLVMSupport
)

View File

@ -7,7 +7,7 @@ add_subdirectory(LoopOps)
add_subdirectory(OpenMP)
add_subdirectory(QuantOps)
add_subdirectory(SDBM)
add_subdirectory(Shape)
#add_subdirectory(Shape)
add_subdirectory(SPIRV)
add_subdirectory(StandardOps)
add_subdirectory(VectorOps)

View File

@ -15,6 +15,7 @@ target_link_libraries(MLIRLLVMIR
LLVMCore
LLVMSupport
LLVMFrontendOpenMP
MLIRAnalysis
MLIROpenMP
MLIRIR
MLIRSupport

View File

@ -6,9 +6,13 @@ add_mlir_dialect_library(MLIRLoopOpsTransforms
ADDITIONAL_HEADER_DIRS
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/LoopOps
)
target_link_libraries(MLIRLoopOpsTransforms
PUBLIC
MLIRAffineOps
MLIRIR
MLIRPass
MLIRLoopOps
MLIRStandardOps
MLIRSupport
LLVMSupport
)

View File

@ -13,6 +13,7 @@ add_mlir_dialect_library(MLIRStandardOps
)
target_link_libraries(MLIRStandardOps
PUBLIC
MLIRControlFlowAnalysis
MLIREDSC
MLIRIR
LLVMSupport

View File

@ -13,6 +13,7 @@ add_mlir_dialect_library(MLIRVectorOps
)
target_link_libraries(MLIRVectorOps
PUBLIC
MLIREDSC
MLIRIR
MLIRStandardOps
MLIRAffineOps

View File

@ -8,6 +8,7 @@ target_link_libraries(mlir-sdbm-api-test
PRIVATE
MLIRIR
MLIRSDBM
MLIRSupport
LLVMCore
LLVMSupport
)

View File

@ -27,6 +27,7 @@ target_link_libraries(MLIRTestDialect
MLIRIR
MLIRLinalgTransforms
MLIRPass
MLIRStandardOps
MLIRTransforms
MLIRTransformUtils
LLVMSupport

View File

@ -16,4 +16,7 @@ target_link_libraries(mlir-cpu-runner PRIVATE
MLIRSupport
LLVMCore
LLVMSupport
)
LLVMX86CodeGen
LLVMX86Desc
LLVMX86Info
)