2020-05-05 03:41:43 +08:00
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
|
|
Support
|
|
|
|
)
|
|
|
|
|
2020-02-27 03:50:03 +08:00
|
|
|
get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
|
2020-04-11 07:58:39 +08:00
|
|
|
get_property(translation_libs GLOBAL PROPERTY MLIR_TRANSLATION_LIBS)
|
2020-05-05 03:41:43 +08:00
|
|
|
|
2020-10-05 06:17:34 +08:00
|
|
|
add_llvm_tool(mlir-translate
|
2020-05-05 03:41:43 +08:00
|
|
|
mlir-translate.cpp
|
|
|
|
)
|
|
|
|
llvm_update_compile_flags(mlir-translate)
|
|
|
|
target_link_libraries(mlir-translate
|
|
|
|
PRIVATE
|
2020-02-27 03:50:03 +08:00
|
|
|
${dialect_libs}
|
2020-04-11 07:58:39 +08:00
|
|
|
${translation_libs}
|
2020-08-04 17:37:25 +08:00
|
|
|
${test_libs}
|
2020-05-05 03:41:43 +08:00
|
|
|
MLIRIR
|
2019-03-30 13:10:12 +08:00
|
|
|
MLIRParser
|
|
|
|
MLIRPass
|
2019-06-22 05:51:58 +08:00
|
|
|
MLIRSPIRV
|
2019-03-30 13:10:12 +08:00
|
|
|
MLIRTranslation
|
|
|
|
MLIRSupport
|
2020-05-05 03:41:43 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
mlir_check_link_libraries(mlir-translate)
|