mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-15 12:09:51 +00:00
ee1d447e5f
Translation.h is currently awkwardly shoved into the top-level mlir, even though it is specific to the mlir-translate tool. This commit moves it to a new Tools/mlir-translate directory, which is intended for libraries used to implement tools. It also splits the translate registry from the main entry point, to more closely mirror what mlir-opt does. Differential Revision: https://reviews.llvm.org/D121026
26 lines
494 B
CMake
26 lines
494 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
Support
|
|
)
|
|
|
|
get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
|
|
get_property(translation_libs GLOBAL PROPERTY MLIR_TRANSLATION_LIBS)
|
|
|
|
add_llvm_tool(mlir-translate
|
|
mlir-translate.cpp
|
|
)
|
|
llvm_update_compile_flags(mlir-translate)
|
|
target_link_libraries(mlir-translate
|
|
PRIVATE
|
|
${dialect_libs}
|
|
${translation_libs}
|
|
${test_libs}
|
|
MLIRIR
|
|
MLIRParser
|
|
MLIRPass
|
|
MLIRSPIRV
|
|
MLIRTranslateLib
|
|
MLIRSupport
|
|
)
|
|
|
|
mlir_check_link_libraries(mlir-translate)
|