2020-06-09 04:46:06 +08:00
|
|
|
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)
|
|
|
|
|
2020-05-05 08:48:02 +08:00
|
|
|
add_mlir_doc(BasicpyDialect -gen-dialect-doc BasicpyDialect Basicpy/)
|
|
|
|
add_mlir_doc(BasicpyOps -gen-op-doc BasicpyOps Basicpy/)
|