Skip to content
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

[CIR][NFC] Homogenize printing/parsing of CIR_PointerType #575

Merged
merged 1 commit into from
May 1, 2024

Conversation

definelicht
Copy link
Contributor

@definelicht definelicht commented May 1, 2024

Apologies in advance for a first PR that touches almost every test file 🥲

This PR relegates the responsibility of printing/parsing CIR_PointerType back to the type itself, getting rid of explicit cir.ptr tokens in the assembly format of CIR operations.

This means that CIR pointers would now always be printed as !cir.ptr<type>, so update all tests that had a space before the bracket (i.e., !cir.ptr <type>) or missing the type alias prefix (cir.ptr instead of !cir.ptr).

Relegate the responsibility of printing/parsing CIR_PointerType back to
the type itself, getting rid of explicit `cir.ptr` tokens in the
assembly format of CIR operations.

This means that CIR pointers will now always be printed as
`!cir.ptr<type>`, so update all tests that had a space before the
bracket (i.e., `!cir.ptr <type>`).
@definelicht
Copy link
Contributor Author

My vim stripped off a bunch of redundant whitespace at the end of lines in CIROps.td 🤐 Should I undo those changes to avoid noise in the history?

@bcardosolopes
Copy link
Member

My vim stripped off a bunch of redundant whitespace at the end of lines in CIROps.td 🤐 Should I undo those changes to avoid noise in the history?

We usually try to avoid that but since this PR is NFC and is cleaning up some mess, it's actually relevant, so no sweat!

Copy link
Member

@bcardosolopes bcardosolopes left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for your first PR, and looking forward to see more :D

This dates back from when we didn't have qualified and it's great to see this getting cleaned up!

@bcardosolopes bcardosolopes changed the title [CIR] Homogenize printing/parsing of CIR_PointerType [CIR][NFC] Homogenize printing/parsing of CIR_PointerType May 1, 2024
@bcardosolopes bcardosolopes merged commit 09c86ed into llvm:main May 1, 2024
7 checks passed
@definelicht definelicht deleted the homogenize-ptr-type branch May 1, 2024 20:06
bruteforceboy pushed a commit to bruteforceboy/clangir that referenced this pull request Oct 2, 2024
This PR relegates the responsibility of printing/parsing CIR_PointerType
back to the type itself, getting rid of explicit `cir.ptr` tokens in the
assembly format of CIR operations.

This means that CIR pointers would now always be printed as
`!cir.ptr<type>`, so update all tests that had a space before the
bracket (i.e., `!cir.ptr <type>`) or missing the type alias prefix
(`cir.ptr` instead of `!cir.ptr`).
Hugobros3 pushed a commit to shady-gang/clangir that referenced this pull request Oct 2, 2024
This PR relegates the responsibility of printing/parsing CIR_PointerType
back to the type itself, getting rid of explicit `cir.ptr` tokens in the
assembly format of CIR operations.

This means that CIR pointers would now always be printed as
`!cir.ptr<type>`, so update all tests that had a space before the
bracket (i.e., `!cir.ptr <type>`) or missing the type alias prefix
(`cir.ptr` instead of `!cir.ptr`).
keryell pushed a commit to keryell/clangir that referenced this pull request Oct 19, 2024
This PR relegates the responsibility of printing/parsing CIR_PointerType
back to the type itself, getting rid of explicit `cir.ptr` tokens in the
assembly format of CIR operations.

This means that CIR pointers would now always be printed as
`!cir.ptr<type>`, so update all tests that had a space before the
bracket (i.e., `!cir.ptr <type>`) or missing the type alias prefix
(`cir.ptr` instead of `!cir.ptr`).
lanza pushed a commit that referenced this pull request Nov 5, 2024
This PR relegates the responsibility of printing/parsing CIR_PointerType
back to the type itself, getting rid of explicit `cir.ptr` tokens in the
assembly format of CIR operations.

This means that CIR pointers would now always be printed as
`!cir.ptr<type>`, so update all tests that had a space before the
bracket (i.e., `!cir.ptr <type>`) or missing the type alias prefix
(`cir.ptr` instead of `!cir.ptr`).
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.

2 participants