[Mlir-commits] [mlir] [MLIR][tblgen] Honor `-dialect` in `-gen-{attrdef, op, typedef, enum}-doc` (PR #182183)
Tobias Gysi
llvmlistbot at llvm.org
Wed Feb 18 23:50:27 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;
----------------
gysit wrote:
```suggestion
/// 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;
```
nit:
https://github.com/llvm/llvm-project/pull/182183
More information about the Mlir-commits
mailing list