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.
Region buffer_estimates
If this is a buffer argument, these are the estimated min and extent for each dimension.
A fragment of Halide syntax.
ArgumentEstimates argument_estimates
bool operator==(const Argument &rhs) const
A struct representing an argument to a halide-generated function.
A Halide::Buffer is a named shared reference to a Halide::Runtime::Buffer.
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.
unsigned __INT8_TYPE__ uint8_t
Base classes for Halide expressions (Halide::Expr) and statements (Halide::Internal::Stmt) ...
This file declares the routines used by Halide internally in its runtime.
std::string name
The name of the argument.
uint8_t dimensions
If kind == InputBuffer|OutputBuffer, this is the dimensionality of the buffer.
Types in the halide type system.
Expr scalar_def
If this is a scalar argument, then these are its default, min, max, and estimated values...
Type type
If this is a scalar parameter, then this is its type.
Kind
An argument is either a primitive type (for parameters), or a buffer pointer.
Argument(Buffer< T, Dims > im)
bool operator==(const ArgumentEstimates &rhs) const