Go to the documentation of this file. 1 #ifndef HALIDE_ARGUMENT_H
2 #define HALIDE_ARGUMENT_H
15 template<
typename T,
int Dims>
75 Argument(
const std::string &_name,
Kind _kind,
const Type &_type,
int _dimensions,
81 template<
typename T,
int Dims>
std::vector< Range > Region
A multi-dimensional box.
@ halide_argument_kind_output_buffer
unsigned __INT8_TYPE__ uint8_t
A struct representing an argument to a halide-generated function.
bool operator==(const Argument &rhs) const
Types in the halide type system.
This file defines the class FunctionDAG, which is our representation of a Halide pipeline,...
A Halide::Buffer is a named shared reference to a Halide::Runtime::Buffer.
Kind
An argument is either a primitive type (for parameters), or a buffer pointer.
@ halide_argument_kind_input_scalar
std::string name
The name of the argument.
@ halide_argument_kind_input_buffer
Type type
If this is a scalar parameter, then this is its type.
uint8_t dimensions
If kind == InputBuffer|OutputBuffer, this is the dimensionality of the buffer.
Expr scalar_def
If this is a scalar argument, then these are its default, min, max, and estimated values.
A fragment of Halide syntax.
Region buffer_estimates
If this is a buffer argument, these are the estimated min and extent for each dimension.
bool operator==(const ArgumentEstimates &rhs) const
Argument(Buffer< T, Dims > im)
ArgumentEstimates argument_estimates