Skip to content

Change entry point of IRMutator and IRVisitor to operator().#9023

Open
mcourteaux wants to merge 7 commits intohalide:mainfrom
mcourteaux:mutator-entrypoint
Open

Change entry point of IRMutator and IRVisitor to operator().#9023
mcourteaux wants to merge 7 commits intohalide:mainfrom
mcourteaux:mutator-entrypoint

Conversation

@mcourteaux
Copy link
Contributor

@mcourteaux mcourteaux commented Mar 14, 2026

The only place in production code where changes might be required is in custom lowering passes calling custom mutators/visitors. See for example: correctness/specialize.cpp

@alexreinking alexreinking self-requested a review March 14, 2026 20:24
@mcourteaux
Copy link
Contributor Author

Will wait for @vksnk to judge whether Google can handle this change.

@mcourteaux mcourteaux added the release_notes For changes that may warrant a note in README for official releases. label Mar 16, 2026
@abadams
Copy link
Member

abadams commented Mar 23, 2026

I don't think we should make the logging changes in Lower.cpp in the same PR as changing the mutator entrypoint. We should discuss that separately.

@alexreinking
Copy link
Member

I don't think we should make the logging changes in Lower.cpp in the same PR as changing the mutator entrypoint. We should discuss that separately.

I made this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_notes For changes that may warrant a note in README for official releases.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants