Halide 19.0.0
Halide compiler and libraries
|
A fragment of front-end syntax of the form f(x, y, z), where x, y, z are Vars or Exprs. More...
#include <Func.h>
Public Member Functions | |
FuncRef (const Internal::Function &, const std::vector< Expr > &, int placeholder_pos=-1, int count=0) | |
FuncRef (Internal::Function, const std::vector< Var > &, int placeholder_pos=-1, int count=0) | |
Stage | operator= (const Expr &) |
Use this as the left-hand-side of a definition or an update definition (see RDom). | |
Stage | operator= (const Tuple &) |
Use this as the left-hand-side of a definition or an update definition for a Func with multiple outputs. | |
Stage | operator+= (Expr) |
Define a stage that adds the given expression to this Func. | |
Stage | operator+= (const Tuple &) |
Stage | operator+= (const FuncRef &) |
Stage | operator-= (Expr) |
Define a stage that adds the negative of the given expression to this Func. | |
Stage | operator-= (const Tuple &) |
Stage | operator-= (const FuncRef &) |
Stage | operator*= (Expr) |
Define a stage that multiplies this Func by the given expression. | |
Stage | operator*= (const Tuple &) |
Stage | operator*= (const FuncRef &) |
Stage | operator/= (Expr) |
Define a stage that divides this Func by the given expression. | |
Stage | operator/= (const Tuple &) |
Stage | operator/= (const FuncRef &) |
Stage | operator= (const FuncRef &) |
operator Expr () const | |
Use this as a call to the function, and not the left-hand-side of a definition. | |
FuncTupleElementRef | operator[] (int) const |
When a FuncRef refers to a function that provides multiple outputs, you can access each output as an Expr using operator[]. | |
size_t | size () const |
How many outputs does the function this refers to produce. | |
Internal::Function | function () const |
What function is this calling? | |
A fragment of front-end syntax of the form f(x, y, z), where x, y, z are Vars or Exprs.
If could be the left hand side of a definition or an update definition, or it could be a call to a function. We don't know until we see how this object gets used.
Halide::FuncRef::FuncRef | ( | const Internal::Function & | , |
const std::vector< Expr > & | , | ||
int | placeholder_pos = -1, | ||
int | count = 0 ) |
Halide::FuncRef::FuncRef | ( | Internal::Function | , |
const std::vector< Var > & | , | ||
int | placeholder_pos = -1, | ||
int | count = 0 ) |
Use this as the left-hand-side of a definition or an update definition (see RDom).
Use this as the left-hand-side of a definition or an update definition for a Func with multiple outputs.
Halide::FuncRef::operator Expr | ( | ) | const |
Use this as a call to the function, and not the left-hand-side of a definition.
Only works for single-output Funcs.
FuncTupleElementRef Halide::FuncRef::operator[] | ( | int | ) | const |
size_t Halide::FuncRef::size | ( | ) | const |
How many outputs does the function this refers to produce.
|
inline |
What function is this calling?
Definition at line 588 of file Func.h.
Referenced by Halide::FuncTupleElementRef::function().