Skip to content

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
lanza pushed a commit that referenced this pull request Mar 18, 2025
)

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.
terapines-osc-cir pushed a commit to Terapines/clangir that referenced this pull request Sep 2, 2025
…vm#1330)

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.
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