[mlir] Include attributes in ML program dialect ops def
authorJacques Pienaar <jpienaar@google.com>
Tue, 14 Jun 2022 04:30:59 +0000 (21:30 -0700)
committerJacques Pienaar <jpienaar@google.com>
Tue, 14 Jun 2022 04:35:34 +0000 (21:35 -0700)
I considered adding a new dialect top-level file with all ops,
attributes & types included, but didn't see practical benefit to it.

mlir/include/mlir/Dialect/MLProgram/IR/CMakeLists.txt
mlir/include/mlir/Dialect/MLProgram/IR/MLProgramOps.td

index 51187d7..6e89471 100644 (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)
index f4dc56f..d820573 100644 (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"