mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-13 11:22:03 +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
23 lines
637 B
CMake
23 lines
637 B
CMake
# Enable errors for any global constructors.
|
|
add_flag_if_supported("-Werror=global-constructors" WERROR_GLOBAL_CONSTRUCTOR)
|
|
|
|
add_subdirectory(Analysis)
|
|
add_subdirectory(Conversion)
|
|
add_subdirectory(Dialect)
|
|
add_subdirectory(IR)
|
|
add_subdirectory(Interfaces)
|
|
add_subdirectory(Parser)
|
|
add_subdirectory(Pass)
|
|
add_subdirectory(Reducer)
|
|
add_subdirectory(Rewrite)
|
|
add_subdirectory(Support)
|
|
add_subdirectory(TableGen)
|
|
add_subdirectory(Target)
|
|
add_subdirectory(Tools)
|
|
add_subdirectory(Transforms)
|
|
|
|
# Only enable the ExecutionEngine if the native target is configured in.
|
|
if(TARGET ${LLVM_NATIVE_ARCH})
|
|
add_subdirectory(ExecutionEngine)
|
|
endif()
|