[mlir] Include attributes in ML program dialect ops def

I considered adding a new dialect top-level file with all ops,
attributes & types included, but didn't see practical benefit to it.
This commit is contained in:
Jacques Pienaar 2022-06-13 21:30:59 -07:00
parent 6cc3450a52
commit 743791d6d5
2 changed files with 1 additions and 1 deletions

View file

@ -7,7 +7,6 @@ mlir_tablegen(MLProgramAttributes.h.inc -gen-attrdef-decls)
mlir_tablegen(MLProgramAttributes.cpp.inc -gen-attrdef-defs)
add_public_tablegen_target(MLIRMLProgramAttributesIncGen)
add_dependencies(mlir-headers MLIRMLProgramAttributesIncGen)
add_mlir_doc(MLProgramAttributes MLProgramAttributes Dialects/ -gen-attrdef-doc)
set(LLVM_TARGET_DEFINITIONS MLProgramTypes.td)
mlir_tablegen(MLProgramTypes.h.inc -gen-typedef-decls)

View file

@ -10,6 +10,7 @@
#define MLPROGRAM_OPS
include "mlir/Dialect/MLProgram/IR/MLProgramBase.td"
include "mlir/Dialect/MLProgram/IR/MLProgramAttributes.td"
include "mlir/Dialect/MLProgram/IR/MLProgramTypes.td"
include "mlir/Interfaces/CallInterfaces.td"
include "mlir/Interfaces/ControlFlowInterfaces.td"