-
Notifications
You must be signed in to change notification settings - Fork 168
[CIR] Change record type alias prefix from !ty_ to !rec_ #1580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This changes the alias prefix for record types to make it less general.
As discussed on llvm/llvm-project#136387 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like a good change, I'm happy with the rec_
prefix.
@@ -63,9 +63,9 @@ struct CIROpAsmDialectInterface : public OpAsmDialectInterface { | |||
if (auto recordType = dyn_cast<cir::RecordType>(type)) { | |||
StringAttr nameAttr = recordType.getName(); | |||
if (!nameAttr) | |||
os << "ty_anon_" << recordType.getKindAsStr(); | |||
os << "rec_anon_" << recordType.getKindAsStr(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not to do in this patch, but we discussed making this an 'assert' at one point, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah. I was going to do that separately.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
This changes the alias prefix for record types to make it less general.
This changes the alias prefix for record types to make it less general.