Go to the documentation of this file. 1 #ifndef HALIDE_SUBSTITUTE_H
2 #define HALIDE_SUBSTITUTE_H
22 Expr
substitute(
const std::string &name,
const Expr &replacement,
const Expr &expr);
26 Stmt
substitute(
const std::string &name,
const Expr &replacement,
const Stmt &stmt);
30 Expr
substitute(
const std::map<std::string, Expr> &replacements,
const Expr &expr);
31 Stmt
substitute(
const std::map<std::string, Expr> &replacements,
const Stmt &stmt);
36 Expr
substitute(
const Expr &find,
const Expr &replacement,
const Expr &expr);
37 Stmt
substitute(
const Expr &find,
const Expr &replacement,
const Stmt &stmt);
43 Expr
graph_substitute(
const std::string &name,
const Expr &replacement,
const Expr &expr);
44 Stmt
graph_substitute(
const std::string &name,
const Expr &replacement,
const Stmt &stmt);
45 Expr
graph_substitute(
const Expr &find,
const Expr &replacement,
const Expr &expr);
46 Stmt
graph_substitute(
const Expr &find,
const Expr &replacement,
const Stmt &stmt);
Expr substitute(const std::string &name, const Expr &replacement, const Expr &expr)
Substitute variables with the given name with the replacement expression within expr.
Expr substitute_in_all_lets(const Expr &expr)
Substitute in all let Exprs in a piece of IR.
This file defines the class FunctionDAG, which is our representation of a Halide pipeline,...
@ Internal
Not visible externally, similar to 'static' linkage in C.
Expr graph_substitute(const std::string &name, const Expr &replacement, const Expr &expr)
Substitutions where the IR may be a general graph (and not just a DAG).