llvm-project/mlir/lib/Support/CMakeLists.txt

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

55 lines
862 B
CMake
Raw Normal View History

set(LLVM_OPTIONAL_SOURCES
FileUtilities.cpp
JitRunner.cpp
MlirOptMain.cpp
StorageUniquer.cpp
ToolUtilities.cpp
)
add_mlir_library(MLIRSupport
FileUtilities.cpp
StorageUniquer.cpp
ToolUtilities.cpp
ADDITIONAL_HEADER_DIRS
${MLIR_MAIN_INCLUDE_DIR}/mlir/Support
)
target_link_libraries(MLIRSupport
PUBLIC
LLVMSupport
${LLVM_PTHREAD_LIB})
add_mlir_library(MLIROptLib
MlirOptMain.cpp
ADDITIONAL_HEADER_DIRS
${MLIR_MAIN_INCLUDE_DIR}/mlir/Support
)
target_link_libraries(MLIROptLib
PUBLIC
MLIRPass
MLIRParser
LLVMSupport
MLIRSupport
)
add_llvm_library(MLIRJitRunner
JitRunner.cpp
DEPENDS
intrinsics_gen
)
target_link_libraries(MLIRJitRunner
PUBLIC
MLIRExecutionEngine
MLIRIR
MLIRParser
MLIRStandardOps
MLIRTargetLLVMIR
MLIRTransforms
MLIRStandardToLLVM
MLIRSupport
LLVMCore
LLVMSupport
)