1set(LLVM_LINK_COMPONENTS 2 Support 3 ) 4 5get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS) 6get_property(translation_libs GLOBAL PROPERTY MLIR_TRANSLATION_LIBS) 7 8add_llvm_tool(mlir-translate 9 mlir-translate.cpp 10 ) 11llvm_update_compile_flags(mlir-translate) 12target_link_libraries(mlir-translate 13 PRIVATE 14 ${dialect_libs} 15 ${translation_libs} 16 ${test_libs} 17 MLIRIR 18 MLIRParser 19 MLIRPass 20 MLIRSPIRV 21 MLIRTranslation 22 MLIRSupport 23 ) 24 25mlir_check_link_libraries(mlir-translate) 26