================
@@ -204,3 +207,18 @@ def J_CustomStorageCtorAttr : AttrDef<Test_Dialect, 
"CustomStorageCtorAttr"> {
 // DEF-LABEL: struct CustomStorageCtorAttrAttrStorage : public 
::mlir::AttributeStorage
 // DEF: static CustomStorageCtorAttrAttrStorage *construct
 // DEF-SAME: (::mlir::AttributeStorageAllocator &allocator, KeyTy &&tblgenKey);
+
+// The registration hook registers every attribute.
+// DECL: class TestDialect;
+// DECL-NEXT: /// Registers the attributes defined in this file with `dialect`.
+// DECL-NEXT: void registerTestDialectAttributes(TestDialect *dialect);
+// DECL-EMPTY:
----------------
ftynse wrote:

Nit: is this necessary?

https://github.com/llvm/llvm-project/pull/243481
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to