forked from OSchip/llvm-project
[MLIR] Fixes for BUILD_SHARED_LIBS=on
Differential Revision: https://reviews.llvm.org/D75308
This commit is contained in:
parent
7c64f6bf52
commit
9f979d7ad5
|
@ -35,4 +35,5 @@ target_link_libraries(toyc-ch5
|
|||
MLIRIR
|
||||
MLIRParser
|
||||
MLIRPass
|
||||
MLIRSupport
|
||||
MLIRTransforms)
|
||||
|
|
|
@ -41,6 +41,7 @@ target_link_libraries(toyc-ch6
|
|||
MLIRLLVMIR
|
||||
MLIRParser
|
||||
MLIRPass
|
||||
MLIRSupport
|
||||
MLIRTargetLLVMIR
|
||||
MLIRTransforms
|
||||
)
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
|
|
@ -14,4 +14,5 @@ target_link_libraries(MLIRGPUtoVulkanTransforms
|
|||
MLIRSupport
|
||||
MLIRTransforms
|
||||
MLIRTranslation
|
||||
LLVMSupport
|
||||
)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -15,6 +15,7 @@ target_link_libraries(MLIRLLVMIR
|
|||
LLVMCore
|
||||
LLVMSupport
|
||||
LLVMFrontendOpenMP
|
||||
MLIRAnalysis
|
||||
MLIROpenMP
|
||||
MLIRIR
|
||||
MLIRSupport
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
|
|
@ -13,6 +13,7 @@ add_mlir_dialect_library(MLIRStandardOps
|
|||
)
|
||||
target_link_libraries(MLIRStandardOps
|
||||
PUBLIC
|
||||
MLIRControlFlowAnalysis
|
||||
MLIREDSC
|
||||
MLIRIR
|
||||
LLVMSupport
|
||||
|
|
|
@ -13,6 +13,7 @@ add_mlir_dialect_library(MLIRVectorOps
|
|||
)
|
||||
target_link_libraries(MLIRVectorOps
|
||||
PUBLIC
|
||||
MLIREDSC
|
||||
MLIRIR
|
||||
MLIRStandardOps
|
||||
MLIRAffineOps
|
||||
|
|
|
@ -8,6 +8,7 @@ target_link_libraries(mlir-sdbm-api-test
|
|||
PRIVATE
|
||||
MLIRIR
|
||||
MLIRSDBM
|
||||
MLIRSupport
|
||||
LLVMCore
|
||||
LLVMSupport
|
||||
)
|
||||
|
|
|
@ -27,6 +27,7 @@ target_link_libraries(MLIRTestDialect
|
|||
MLIRIR
|
||||
MLIRLinalgTransforms
|
||||
MLIRPass
|
||||
MLIRStandardOps
|
||||
MLIRTransforms
|
||||
MLIRTransformUtils
|
||||
LLVMSupport
|
||||
|
|
|
@ -16,4 +16,7 @@ target_link_libraries(mlir-cpu-runner PRIVATE
|
|||
MLIRSupport
|
||||
LLVMCore
|
||||
LLVMSupport
|
||||
)
|
||||
LLVMX86CodeGen
|
||||
LLVMX86Desc
|
||||
LLVMX86Info
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue