Skip to content

[CIR] Make ZeroAttr use AttrBuilderWithInferredContext #1576

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

Merged

Conversation

xlauko
Copy link
Collaborator

@xlauko xlauko commented Apr 21, 2025

No description provided.

@xlauko
Copy link
Collaborator Author

xlauko commented Apr 21, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@xlauko xlauko marked this pull request as ready for review April 21, 2025 08:55
@xlauko
Copy link
Collaborator Author

xlauko commented Apr 21, 2025

@bcardosolopes I would also suggest to rename the attribute to ZeroInitAttr to clarify more that it is meant for container-like types.

I can also add verifier in followup PR to check that it is used only with these types.

@xlauko xlauko requested a review from andykaylor April 21, 2025 17:15
@bcardosolopes
Copy link
Member

@bcardosolopes I would also suggest to rename the attribute to ZeroInitAttr to clarify more that it is meant for container-like types.

Sounds good to me!

I can also add verifier in followup PR to check that it is used only with these types.

Awesome

@xlauko xlauko force-pushed the users/xlauko/cir-zero-attr-builder-with-inferred-context branch from 5f092ef to 4b17e83 Compare April 21, 2025 19:44
@xlauko xlauko merged commit efc735d into main Apr 21, 2025
8 of 9 checks passed
xlauko added a commit to llvm/llvm-project that referenced this pull request Apr 22, 2025
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