2019-04-30 03:11:58 +08:00
|
|
|
set(LLVM_OPTIONAL_SOURCES
|
|
|
|
null.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(LIB_LIBS
|
|
|
|
MLIRAnalysis
|
|
|
|
MLIRLLVMIR
|
|
|
|
MLIRParser
|
|
|
|
MLIRPass
|
|
|
|
MLIRTransforms
|
|
|
|
MLIRSupport
|
|
|
|
)
|
|
|
|
add_llvm_library(MLIRMlirOptLib
|
|
|
|
mlir-opt.cpp
|
|
|
|
)
|
|
|
|
target_link_libraries(MLIRMlirOptLib ${LIB_LIBS})
|
|
|
|
|
2019-03-30 13:10:12 +08:00
|
|
|
set(LIBS
|
|
|
|
MLIRAffineOps
|
2019-07-09 20:26:18 +08:00
|
|
|
MLIRLoopsToGPU
|
2019-03-30 13:10:12 +08:00
|
|
|
MLIRAnalysis
|
2019-10-03 16:34:16 +08:00
|
|
|
MLIRLoopToStandard
|
2019-03-30 13:10:12 +08:00
|
|
|
MLIREDSC
|
2019-04-04 08:43:00 +08:00
|
|
|
MLIRFxpMathOps
|
2019-04-30 05:10:08 +08:00
|
|
|
MLIRGPU
|
2019-06-17 18:56:20 +08:00
|
|
|
MLIRGPUtoNVVMTransforms
|
2019-10-02 16:50:03 +08:00
|
|
|
MLIRGPUtoROCDLTransforms
|
2019-07-31 03:39:09 +08:00
|
|
|
MLIRGPUtoSPIRVTransforms
|
2019-04-18 23:25:54 +08:00
|
|
|
MLIRLinalg
|
2019-03-30 13:10:12 +08:00
|
|
|
MLIRLLVMIR
|
2019-07-15 17:50:09 +08:00
|
|
|
MLIRLoopOps
|
2019-04-30 07:12:15 +08:00
|
|
|
MLIRNVVMIR
|
2019-06-24 23:41:52 +08:00
|
|
|
MLIROptMain
|
2019-03-30 13:10:12 +08:00
|
|
|
MLIRParser
|
|
|
|
MLIRPass
|
2019-05-21 09:27:38 +08:00
|
|
|
MLIRQuantizerTransforms
|
2019-05-15 02:03:55 +08:00
|
|
|
MLIRQuantOps
|
2019-09-27 14:49:51 +08:00
|
|
|
MLIRROCDLIR
|
2019-05-26 20:43:20 +08:00
|
|
|
MLIRSPIRV
|
2019-06-29 03:31:38 +08:00
|
|
|
MLIRSPIRVConversion
|
2019-03-30 13:10:12 +08:00
|
|
|
MLIRStandardOps
|
2019-06-15 06:54:21 +08:00
|
|
|
MLIRStandardToLLVM
|
2019-03-30 13:10:12 +08:00
|
|
|
MLIRTransforms
|
2019-06-25 05:35:21 +08:00
|
|
|
MLIRTestDialect
|
2019-09-09 10:57:25 +08:00
|
|
|
MLIRTestPass
|
2019-06-25 05:35:21 +08:00
|
|
|
MLIRTestTransforms
|
2019-03-30 13:10:12 +08:00
|
|
|
MLIRSupport
|
|
|
|
MLIRVectorOps
|
2019-08-12 19:08:26 +08:00
|
|
|
MLIRVectorToLLVM
|
2019-03-30 13:10:12 +08:00
|
|
|
)
|
2019-06-26 20:16:11 +08:00
|
|
|
if(MLIR_CUDA_CONVERSIONS_ENABLED)
|
|
|
|
list(APPEND LIBS
|
|
|
|
MLIRGPUtoCUDATransforms
|
|
|
|
)
|
|
|
|
endif()
|
2019-05-30 23:23:49 +08:00
|
|
|
add_llvm_executable(mlir-opt
|
2019-04-30 03:11:58 +08:00
|
|
|
mlir-opt.cpp
|
2019-03-30 13:10:12 +08:00
|
|
|
)
|
2019-04-02 01:17:45 +08:00
|
|
|
llvm_update_compile_flags(mlir-opt)
|
2019-03-30 13:10:12 +08:00
|
|
|
whole_archive_link(mlir-opt ${LIBS})
|
2019-05-31 00:42:17 +08:00
|
|
|
target_link_libraries(mlir-opt PRIVATE MLIRIR MLIRMlirOptLib ${LIBS} LLVMSupport)
|