[Mlir-commits] [mlir] [MLIR][tblgen] Honor `-dialect` in `-gen-{attrdef, op, typedef, enum}-doc` (PR #182183)
Fabian Schuiki
llvmlistbot at llvm.org
Thu Feb 19 11:07:01 PST 2026
================
@@ -102,6 +106,41 @@ static void emitNamedConstraint(const T &it, raw_ostream &os) {
os << " | " << it.constraint.getSummary() << " |\n";
}
+//===----------------------------------------------------------------------===//
+// Records
+//===----------------------------------------------------------------------===//
+
+namespace {
+struct OpDocGroup {
+ const Dialect &getDialect() const { return ops.front().getDialect(); }
+
+ // Returns the summary description of the section.
+ std::string summary = "";
+
+ // Returns the description of the section.
+ StringRef description = "";
+
+ // Instances inside the section.
+ std::vector<Operator> ops;
----------------
fabianschuiki wrote:
👍 Done
https://github.com/llvm/llvm-project/pull/182183
More information about the Mlir-commits
mailing list