forked from OSchip/llvm-project
56 lines
1.0 KiB
CMake
56 lines
1.0 KiB
CMake
set(LLVM_OPTIONAL_SOURCES
|
|
FileUtilities.cpp
|
|
JitRunner.cpp
|
|
MlirOptMain.cpp
|
|
StorageUniquer.cpp
|
|
ToolUtilities.cpp
|
|
TranslateClParser.cpp
|
|
)
|
|
|
|
add_llvm_library(MLIRSupport
|
|
FileUtilities.cpp
|
|
StorageUniquer.cpp
|
|
ToolUtilities.cpp
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Support
|
|
)
|
|
target_link_libraries(MLIRSupport LLVMSupport ${LLVM_PTHREAD_LIB})
|
|
|
|
add_llvm_library(MLIROptLib
|
|
MlirOptMain.cpp
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Support
|
|
)
|
|
target_link_libraries(MLIROptLib
|
|
MLIRPass
|
|
MLIRParser
|
|
LLVMSupport
|
|
MLIRSupport
|
|
)
|
|
|
|
add_llvm_library(MLIRTranslateClParser
|
|
TranslateClParser.cpp
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Support
|
|
)
|
|
target_link_libraries(MLIRTranslateClParser LLVMSupport MLIRIR MLIRTranslation MLIRParser)
|
|
|
|
add_llvm_library(MLIRJitRunner
|
|
JitRunner.cpp
|
|
)
|
|
target_link_libraries(MLIRJitRunner PRIVATE
|
|
MLIRExecutionEngine
|
|
MLIRIR
|
|
MLIRParser
|
|
MLIRStandardOps
|
|
MLIRTargetLLVMIR
|
|
MLIRTransforms
|
|
MLIRStandardToLLVM
|
|
MLIRSupport
|
|
LLVMCore
|
|
LLVMSupport
|
|
)
|