forked from OSchip/llvm-project
55 lines
995 B
CMake
55 lines
995 B
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)
|
|
|
|
add_llvm_library(MLIROptMain
|
|
MlirOptMain.cpp
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Support
|
|
)
|
|
target_link_libraries(MLIROptMain
|
|
MLIRPass
|
|
LLVMSupport
|
|
MLIRSupport
|
|
)
|
|
|
|
add_llvm_library(MLIRTranslateClParser
|
|
TranslateClParser.cpp
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Support
|
|
)
|
|
target_link_libraries(MLIRTranslateClParser LLVMSupport)
|
|
|
|
add_llvm_library(MLIRJitRunner
|
|
JitRunner.cpp
|
|
)
|
|
target_link_libraries(MLIRJitRunner PRIVATE
|
|
MLIRExecutionEngine
|
|
MLIRIR
|
|
MLIRParser
|
|
MLIRStandardOps
|
|
MLIRTargetLLVMIR
|
|
MLIRTransforms
|
|
MLIRStandardToLLVM
|
|
MLIRSupport
|
|
LLVMCore
|
|
LLVMSupport
|
|
)
|