Halide 19.0.0
Halide compiler and libraries
Loading...
Searching...
No Matches
Substitute.h File Reference

Defines methods for substituting out variables in expressions and statements. More...

#include <map>
#include "Expr.h"

Go to the source code of this file.

Namespaces

namespace  Halide
 This file defines the class FunctionDAG, which is our representation of a Halide pipeline, and contains methods to using Halide's bounds tools to query properties of it.
 
namespace  Halide::Internal
 

Functions

Expr Halide::Internal::substitute (const std::string &name, const Expr &replacement, const Expr &expr)
 Substitute variables with the given name with the replacement expression within expr.
 
Stmt Halide::Internal::substitute (const std::string &name, const Expr &replacement, const Stmt &stmt)
 Substitute variables with the given name with the replacement expression within stmt.
 
Expr Halide::Internal::substitute (const std::map< std::string, Expr > &replacements, const Expr &expr)
 Substitute variables with names in the map.
 
Stmt Halide::Internal::substitute (const std::map< std::string, Expr > &replacements, const Stmt &stmt)
 
Expr Halide::Internal::substitute (const Expr &find, const Expr &replacement, const Expr &expr)
 Substitute expressions for other expressions.
 
Stmt Halide::Internal::substitute (const Expr &find, const Expr &replacement, const Stmt &stmt)
 
Expr Halide::Internal::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).
 
Stmt Halide::Internal::graph_substitute (const std::string &name, const Expr &replacement, const Stmt &stmt)
 
Expr Halide::Internal::graph_substitute (const Expr &find, const Expr &replacement, const Expr &expr)
 
Stmt Halide::Internal::graph_substitute (const Expr &find, const Expr &replacement, const Stmt &stmt)
 
Expr Halide::Internal::substitute_in_all_lets (const Expr &expr)
 Substitute in all let Exprs in a piece of IR.
 
Stmt Halide::Internal::substitute_in_all_lets (const Stmt &stmt)
 

Detailed Description

Defines methods for substituting out variables in expressions and statements.

Definition in file Substitute.h.