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] Replace CIR attr visitor base class with a type switch #1330

Merged
merged 2 commits into from
Feb 11, 2025

Conversation

andykaylor
Copy link
Collaborator

This change refactors the CirAttrVisitor use to eliminate the base class and instead use an llvm::TypeSwitch in the derived class to visit CIR attributes.

No observable change is intended.

This change refactors the CirAttrVisitor use to eliminate the base
class and instead use an llvm::TypeSwitch in the derived class to
visit CIR attributes.
@andykaylor
Copy link
Collaborator Author

This change is motivated by review feedback received when I tried to upstream the mlir-tblegen change for the visitor (llvm/llvm-project#126332). (And I just realized that means I also need to back out those changes in this branch.)

@Lancern Lancern changed the title [CIR] Replace CIR attr visitor base class with a type switch [CIR][NFC] Replace CIR attr visitor base class with a type switch Feb 11, 2025
@bcardosolopes bcardosolopes merged commit dde0549 into llvm:main Feb 11, 2025
6 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.

2 participants