29 Var(
const std::string &n);
35 const std::string &
name()
const;
158 operator const Expr &()
const {
164 return Var(
"__outermost");
187static constexpr ImplicitVar<> _;
191static constexpr ImplicitVar<0> _0;
192static constexpr ImplicitVar<1> _1;
193static constexpr ImplicitVar<2> _2;
194static constexpr ImplicitVar<3> _3;
195static constexpr ImplicitVar<4> _4;
196static constexpr ImplicitVar<5> _5;
197static constexpr ImplicitVar<6> _6;
198static constexpr ImplicitVar<7> _7;
199static constexpr ImplicitVar<8> _8;
200static constexpr ImplicitVar<9> _9;
Base classes for Halide expressions (Halide::Expr) and statements (Halide::Internal::Stmt)
A Halide variable, to be used when defining functions.
Var(const std::string &n)
Construct a Var with the given name.
static Var implicit(int n)
Implicit var constructor.
static int implicit_index(const std::string &name)
Return the argument index for a placeholder argument given its name.
bool is_placeholder() const
const std::string & name() const
Get the name of a Var.
static bool is_placeholder(const std::string &name)
Test if a var is the placeholder variable _.
static bool is_implicit(const std::string &name)
Return whether a variable name is of the form for an implicit argument.
int implicit_index() const
static Var outermost()
A Var that represents the location outside the outermost loop.
Var()
Construct a Var with an automatically-generated unique name.
bool same_as(const Var &other) const
Test if two Vars are the same.
std::vector< Var > make_argument_list(int dimensionality)
Make a list of unique arguments for definitions with unnamed arguments.
This file defines the class FunctionDAG, which is our representation of a Halide pipeline,...
A fragment of Halide syntax.