-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Convert some other local mutators and visitors to mutate_with and visit_with #8894
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
base: main
Are you sure you want to change the base?
Conversation
| [&](auto *self, const For *op) { | ||
| // At this stage of lowering, loop_min and loop_max | ||
| // conveniently exist in scope. | ||
| Interval in(Variable::make(Int(32), op->name + ".loop_min"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI: This is likely to have a merge conflict with #8858
| private: | ||
| Stmt inject_marker(const Stmt &stmt, const string &func, const Stmt &last_use) { | ||
| bool injected = false; | ||
| return mutate_with(stmt, [&](auto *self, const Block *block) -> Stmt { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do_injection could take a const Stmt & (an inefficiency, if it is one, also exists in the original). I can't figure out why clang-tidy isn't complaining about it already. Is there something I'm missing?
|
There are some clang-tidy things to fix, but I believe the failures are unrelated. |
A concurrent complement to #8893
AddAtomicMutex.cpp is a little scary, actually.