Skip to content

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

Merged
alexreinking merged 8 commits intohalide:mainfrom
mcourteaux:mutator-entrypoint
Mar 25, 2026
Merged

Change entry point of IRMutator and IRVisitor to operator().#9023
alexreinking merged 8 commits intohalide:mainfrom
mcourteaux:mutator-entrypoint

Conversation

@mcourteaux
Copy link
Copy Markdown
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

Comment thread src/Expr.h Outdated
Comment thread src/IRMutator.cpp
@alexreinking alexreinking self-requested a review March 14, 2026 20:24
@mcourteaux
Copy link
Copy Markdown
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
Comment thread src/Lower.cpp Outdated
@abadams
Copy link
Copy Markdown
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
Copy Markdown
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.

@alexreinking
Copy link
Copy Markdown
Member

Glad I remembered to enable the buildbots here! Only they test the apps at the moment...

@alexreinking alexreinking merged commit b73f63b into halide:main Mar 25, 2026
24 checks passed
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