Halide 18.0.0
Halide compiler and libraries
|
A mutator that caches and reapplies previously-done mutations, so that it can handle graphs of IR that have not had CSE done to them. More...
#include <IRMutator.h>
Public Member Functions | |
Stmt | mutate (const Stmt &s) override |
Expr | mutate (const Expr &e) override |
This is the main interface for using a mutator. | |
std::vector< Expr > | mutate (const std::vector< Expr > &exprs) |
![]() | |
IRMutator ()=default | |
virtual | ~IRMutator ()=default |
std::pair< std::vector< Expr >, bool > | mutate_with_changes (const std::vector< Expr > &) |
std::vector< Expr > | mutate (const std::vector< Expr > &exprs) |
Protected Attributes | |
std::map< Expr, Expr, ExprCompare > | expr_replacements |
std::map< Stmt, Stmt, Stmt::Compare > | stmt_replacements |
A mutator that caches and reapplies previously-done mutations, so that it can handle graphs of IR that have not had CSE done to them.
Definition at line 108 of file IRMutator.h.
Reimplemented from Halide::Internal::IRMutator.
This is the main interface for using a mutator.
Also call these in your subclass to mutate sub-expressions and sub-statements.
Reimplemented from Halide::Internal::IRMutator.
|
inline |
Definition at line 117 of file IRMutator.h.
References Halide::Internal::IRMutator::mutate().
|
protected |
Definition at line 110 of file IRMutator.h.
|
protected |
Definition at line 111 of file IRMutator.h.