torch-mlir/include/npcomp/Dialect/Basicpy/CMakeLists.txt

15 lines
616 B
CMake
Raw Normal View History

set(dialect BasicpyOps)
set(dialect_namespace basicpy)
set(LLVM_TARGET_DEFINITIONS ${dialect}.td)
mlir_tablegen(${dialect}.h.inc -gen-op-decls)
mlir_tablegen(${dialect}.cpp.inc -gen-op-defs)
mlir_tablegen(${dialect}Dialect.h.inc -gen-dialect-decls -dialect=${dialect_namespace})
mlir_tablegen(${dialect}Enums.h.inc -gen-enum-decls)
mlir_tablegen(${dialect}Enums.cpp.inc -gen-enum-defs)
add_public_tablegen_target(MLIR${dialect}IncGen)
add_dependencies(mlir-headers MLIR${dialect}IncGen)
add_mlir_doc(BasicpyDialect -gen-dialect-doc BasicpyDialect Basicpy/)
add_mlir_doc(BasicpyOps -gen-op-doc BasicpyOps Basicpy/)