Internal::IRMutator#
-
class IRMutator#
A base class for passes over the IR which modify it (e.g.
replacing a variable with a value (Substitute.h), or constant-folding).
Your mutator should override the visit() methods you care about and return the new expression or stmt. The default implementations recursively mutate their children. To mutate sub-expressions and sub-statements you should override the mutate() method, which will dispatch to the appropriate visit() method and then return the value of expr or stmt after the call to visit.
Subclassed by Halide::Internal::IRGraphMutator, Halide::Internal::Inliner, Halide::Internal::LambdaMutator< Lambdas >, Halide::Internal::LambdaMutatorGeneric< Lambdas >