2019-03-30 13:10:12 +08:00
|
|
|
set(LIBS
|
2020-02-12 17:03:40 +08:00
|
|
|
MLIRAllDialects
|
2019-03-30 13:10:12 +08:00
|
|
|
MLIRParser
|
|
|
|
MLIRPass
|
2019-06-22 05:51:58 +08:00
|
|
|
MLIRSPIRV
|
|
|
|
MLIRSPIRVSerialization
|
2019-03-30 13:10:12 +08:00
|
|
|
MLIRTargetLLVMIR
|
2019-04-30 21:08:21 +08:00
|
|
|
MLIRTargetNVVMIR
|
2019-09-27 14:49:51 +08:00
|
|
|
MLIRTargetROCDLIR
|
2019-03-30 13:10:12 +08:00
|
|
|
MLIRTranslation
|
|
|
|
MLIRSupport
|
|
|
|
)
|
2020-02-12 17:03:40 +08:00
|
|
|
set(FULL_LIBS
|
|
|
|
MLIRSPIRVSerialization
|
|
|
|
MLIRTargetLLVMIR
|
|
|
|
MLIRTargetNVVMIR
|
|
|
|
MLIRTargetROCDLIR
|
|
|
|
)
|
2020-02-05 11:42:17 +08:00
|
|
|
add_llvm_tool(mlir-translate
|
2019-03-30 13:10:12 +08:00
|
|
|
mlir-translate.cpp
|
|
|
|
)
|
2019-04-02 01:17:45 +08:00
|
|
|
llvm_update_compile_flags(mlir-translate)
|
2020-02-12 17:03:40 +08:00
|
|
|
whole_archive_link(mlir-translate ${FULL_LIBS})
|
2019-06-27 02:12:40 +08:00
|
|
|
target_link_libraries(mlir-translate PRIVATE MLIRIR MLIRTranslateClParser ${LIBS} LLVMSupport)
|