[Clang][SME2] Fix PSEL builtin predicates (#77097)
[llvm-project.git] / mlir / tools / mlir-linalg-ods-gen / CMakeLists.txt
blob787a0bb35d7b1f024694348340b504fed04683d3
1 set(LLVM_LINK_COMPONENTS
2   Core
3   Support
4   )
6 # New mlir-linalg-ods-yaml-gen.
7 add_mlir_tool(mlir-linalg-ods-yaml-gen
8   mlir-linalg-ods-yaml-gen.cpp
10 llvm_update_compile_flags(mlir-linalg-ods-yaml-gen)
11 target_link_libraries(mlir-linalg-ods-yaml-gen PRIVATE
12   MLIRIR
13   MLIRSupport
14   MLIRParser
15   )
17 setup_host_tool(mlir-linalg-ods-yaml-gen MLIR_LINALG_ODS_YAML_GEN MLIR_LINALG_ODS_YAML_GEN_EXE MLIR_LINALG_ODS_YAML_GEN_TARGET)
19 if(NOT ${MLIR_LINALG_ODS_YAML_GEN_EXE} STREQUAL "mlir-linalg-ods-yaml-gen")
20   add_custom_target(mlir-linalg-ods-yaml-gen-host DEPENDS ${MLIR_LINALG_ODS_YAML_GEN_EXE})
22   if(NOT LLVM_BUILD_UTILS)
23     set_target_properties(mlir-linalg-ods-yaml-gen PROPERTIES EXCLUDE_FROM_ALL ON)
24   endif()
25 endif()
27 configure_file(
28   update_core_linalg_named_ops.sh.in
29   ${MLIR_TOOLS_DIR}/update_core_linalg_named_ops.sh)