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][CodeGen][NFC] centralized split std::initializer_list field #1235

Conversation

HerrCai0907
Copy link
Contributor

Use iterator to visit std::initializer_list field reduce the readability

Use iterator to visit std::initializer_list field reduce the readability
@bcardosolopes
Copy link
Member

Is this just moving the content from the declaration to the outline definition or is there anything else going on? It's hard to spot. If so, this LGTM. If not, is this making code more similar to CGExprAg.cpp skeleton?

@HerrCai0907
Copy link
Contributor Author

If not, is this making code more similar to CGExprAg.cpp skeleton?

The code do the same thing with before. What I do is dereferencing mutable iterator to immutable field pointers to improve readability. I think it does not related to skeleton since codegen logic is still in place.

@bcardosolopes bcardosolopes merged commit d3193f8 into llvm:main Dec 18, 2024
7 checks passed
@HerrCai0907 HerrCai0907 deleted the cir/refactor-VisitCXXStdInitializerListExpr branch December 19, 2024 03:03
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