[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:
parent
6cc3450a52
commit
743791d6d5
|
@ -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)
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue