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