[clang][NFC] simplify the unset check in `ParseLabeledStatement` (#117430)
[llvm-project.git] / mlir / tools / mlir-linalg-ods-gen / CMakeLists.txt
blobef5ce8882ec76f15ebbfc8f20be7bdb6b4956c8f
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})
21   set_target_properties(mlir-linalg-ods-yaml-gen-host PROPERTIES FOLDER "MLIR/Tablegenning")
23   if(NOT LLVM_BUILD_UTILS)
24     set_target_properties(mlir-linalg-ods-yaml-gen PROPERTIES EXCLUDE_FROM_ALL ON)
25   endif()
26 endif()
28 configure_file(
29   update_core_linalg_named_ops.sh.in
30   ${MLIR_TOOLS_DIR}/update_core_linalg_named_ops.sh)