Skip to content

[CIR] Rename cir.struct to cir.record and associated changes #1559

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

Merged
merged 2 commits into from
Apr 14, 2025

Conversation

andykaylor
Copy link
Collaborator

During the initial upstreaming of cir.struct support, a request was made to rename cir.struct to cir.record for consistency with its multiple uses. This change makes the modification along with renaming various other related classes. I've attempted to also update variable names and comments to keep everything consistent.

This creates an unfortunate name collision between cir::RecordType and clang::RecordType, but the impact of that overlaps was relatively small.

The only intended behavioral change is in the names used in the emitted CIR files and diagnostics.

During the initial upstreaming of `cir.struct` support, a request was made
to rename `cir.struct` to `cir.record` for consistency with its multiple
uses. This change makes the modification along with renaming various other
related classes. I've attempted to also update variable names and comments
to keep everything consistent.
Copy link

github-actions bot commented Apr 11, 2025

✅ With the latest revision this PR passed the C/C++ code formatter.

Copy link
Collaborator

@xlauko xlauko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bcardosolopes bcardosolopes merged commit 4e7a223 into llvm:main Apr 14, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants