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][Asm] Remove duplicated lambda & coroutine attributes #580

Merged

Conversation

keryell
Copy link
Collaborator

@keryell keryell commented May 3, 2024

Do not print in cir.func definition the 'attr { ... }' with coroutine or lambda attributes since they are already printed before the function name. Otherwise redundancy breaks a future parsing. Sort the attributes to be skipped so it is more obvious to see the list of attributes.
Improve the tests to check there are no spurious attributes anymore.

Do not print in cir.func definition the 'attr { ... }' with coroutine
or lambda attributes since they are already printed before the
function name. Otherwise redundancy breaks a future parsing.
Sort the attributes to be skipped so it is more obvious to see the
list of attributes.
Improve the tests to check they are no spurious attributes anymore.
@keryell
Copy link
Collaborator Author

keryell commented May 3, 2024

I have also an lsp-server with CIR enabled which shows this kind of problems.
I wonder how it is possible to have a CI that will parse again the CIR generated by all the existing tests.

@bcardosolopes
Copy link
Member

I have also an lsp-server with CIR enabled which shows this kind of problems. I wonder how it is possible to have a CI that will parse again the CIR generated by all the existing tests.

That'd be cool, I'm not sure how to do that though, would love suggestions!

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.

Awesome, thank you!

@bcardosolopes bcardosolopes merged commit 5961a8d into llvm:main May 3, 2024
7 checks passed
bruteforceboy pushed a commit to bruteforceboy/clangir that referenced this pull request Oct 2, 2024
Do not print in cir.func definition the 'attr { ... }' with coroutine or
lambda attributes since they are already printed before the function
name. Otherwise redundancy breaks a future parsing. Sort the attributes
to be skipped so it is more obvious to see the list of attributes.
Improve the tests to check there are no spurious attributes anymore.
Hugobros3 pushed a commit to shady-gang/clangir that referenced this pull request Oct 2, 2024
Do not print in cir.func definition the 'attr { ... }' with coroutine or
lambda attributes since they are already printed before the function
name. Otherwise redundancy breaks a future parsing. Sort the attributes
to be skipped so it is more obvious to see the list of attributes.
Improve the tests to check there are no spurious attributes anymore.
keryell added a commit to keryell/clangir that referenced this pull request Oct 19, 2024
Do not print in cir.func definition the 'attr { ... }' with coroutine or
lambda attributes since they are already printed before the function
name. Otherwise redundancy breaks a future parsing. Sort the attributes
to be skipped so it is more obvious to see the list of attributes.
Improve the tests to check there are no spurious attributes anymore.
lanza pushed a commit that referenced this pull request Nov 5, 2024
Do not print in cir.func definition the 'attr { ... }' with coroutine or
lambda attributes since they are already printed before the function
name. Otherwise redundancy breaks a future parsing. Sort the attributes
to be skipped so it is more obvious to see the list of attributes.
Improve the tests to check there are no spurious attributes anymore.
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