================
@@ -48,6 +48,12 @@ struct StructTypeStorage : public mlir::TypeStorage {
bool padded;
bool is_class;
+ // Annotations are payload set at completion (like members/layout), not part
+ // of the type's identity: named records are uniqued by name, so there is at
+ // most one annotation set per type. Keeping them out of the key is also
+ // required so an incomplete record can be completed in place.
----------------
Lancern wrote:
It would be nice if the comment could mention that the annotations are all
`#cir.annotation` attributes.
https://github.com/llvm/llvm-project/pull/207551
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits