Skip to content

[SandboxIR][Region][NFC] Change visibility of Region::add()/remove() #129277

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
merged 1 commit into from
Feb 28, 2025

Conversation

vporpo
Copy link
Contributor

@vporpo vporpo commented Feb 28, 2025

The vectorizer's passes should not be allowed to manually add/remove elements. This should only be done automatically by the callbacks.

The vectorizer's passes should not be allowed to manually add/remove elements.
This should only be done automatically by the callbacks.
Copy link
Collaborator

@slackito slackito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Attorney stuff in the test looks a bit uglier now, but if it helps prevent accidental misuse I'm fine with it.

@vporpo
Copy link
Contributor Author

vporpo commented Feb 28, 2025

The Attorney stuff in the test looks a bit uglier now, but if it helps prevent accidental misuse I'm fine with it.

Yeah, not sure if there is a better way around it. There may be a way to friend the tests perhaps?

@vporpo vporpo merged commit d2cbd5f into llvm:main Feb 28, 2025
13 checks passed
jph-13 pushed a commit to jph-13/llvm-project that referenced this pull request Mar 21, 2025
…lvm#129277)

The vectorizer's passes should not be allowed to manually add/remove
elements. This should only be done automatically by the callbacks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants