Halide 18.0.0
Halide compiler and libraries
|
#include <Generator.h>
Public Member Functions | |
GeneratorInput_Scalar (const std::string &name) | |
GeneratorInput_Scalar (const std::string &name, const TBase &def) | |
GeneratorInput_Scalar (size_t array_size, const std::string &name) | |
GeneratorInput_Scalar (size_t array_size, const std::string &name, const TBase &def) | |
operator Expr () const | |
You can use this Input as an expression in a halide function definition. | |
operator ExternFuncArgument () const | |
Using an Input as the argument to an external stage treats it as an Expr. | |
template<typename T2 = T, typename std::enable_if< std::is_pointer< T2 >::value >::type * = nullptr> | |
void | set_estimate (const TBase &value) |
template<typename T2 = T, typename std::enable_if<!std::is_array< T2 >::value &&!std::is_pointer< T2 >::value >::type * = nullptr> | |
void | set_estimate (const TBase &value) |
template<typename T2 = T, typename std::enable_if< std::is_array< T2 >::value >::type * = nullptr> | |
void | set_estimate (size_t index, const TBase &value) |
Type | type () const |
![]() | |
size_t | size () const |
const Expr & | operator[] (size_t i) const |
const Expr & | at (size_t i) const |
std::vector< Expr >::const_iterator | begin () const |
std::vector< Expr >::const_iterator | end () const |
![]() | |
~GeneratorInputBase () override | |
![]() | |
virtual | ~GIOBase ()=default |
void | set_type (const Type &type) |
void | set_dimensions (int dims) |
void | set_array_size (int size) |
GIOBase (const GIOBase &)=delete | |
GIOBase & | operator= (const GIOBase &)=delete |
GIOBase (GIOBase &&)=delete | |
GIOBase & | operator= (GIOBase &&)=delete |
Protected Types | |
using | TBase = typename Super::TBase |
![]() | |
using | TBase = typename std::remove_all_extents< T >::type |
Static Protected Member Functions | |
template<typename TBase2 = TBase, typename std::enable_if<!std::is_pointer< TBase2 >::value >::type * = nullptr> | |
static Expr | TBaseToExpr (const TBase2 &value) |
template<typename TBase2 = TBase, typename std::enable_if< std::is_pointer< TBase2 >::value >::type * = nullptr> | |
static Expr | TBaseToExpr (const TBase2 &value) |
Protected Attributes | |
const TBase | def_ {TBase()} |
const Expr | def_expr_ |
![]() | |
std::vector< Parameter > | parameters_ |
bool | inputs_set = false |
![]() | |
int | array_size_ |
const std::string | name_ |
const ArgInfoKind | kind_ |
std::vector< Type > | types_ |
int | dims_ |
std::vector< Func > | funcs_ |
std::vector< Expr > | exprs_ |
GeneratorBase * | generator {nullptr} |
Definition at line 1995 of file Generator.h.
|
protected |
Definition at line 2000 of file Generator.h.
|
inlineexplicit |
Definition at line 2031 of file Generator.h.
References Halide::cast().
|
inline |
Definition at line 2035 of file Generator.h.
References Halide::cast().
|
inline |
Definition at line 2039 of file Generator.h.
References Halide::cast().
|
inline |
Definition at line 2044 of file Generator.h.
References Halide::cast().
|
inlineoverrideprotectedvirtual |
Reimplemented from Halide::Internal::GeneratorInputBase.
Definition at line 2005 of file Generator.h.
References Halide::cast(), Halide::Internal::GeneratorInput_Scalar< T >::def_expr_, Halide::Internal::GeneratorInputBase::parameters_, and Halide::Parameter::set_default_value().
Referenced by Halide::Internal::GeneratorInput_Arithmetic< T >::set_def_min_max().
|
inlineoverrideprotectedvirtual |
Implements Halide::Internal::GeneratorInputBase.
Definition at line 2013 of file Generator.h.
|
inlinestaticprotected |
Definition at line 2020 of file Generator.h.
References Halide::cast().
|
inlinestaticprotected |
Definition at line 2025 of file Generator.h.
References user_assert.
|
inline |
You can use this Input as an expression in a halide function definition.
Definition at line 2052 of file Generator.h.
References Halide::Internal::GIOBase::check_gio_access(), and Halide::Internal::GIOBase::exprs().
|
inline |
Using an Input as the argument to an external stage treats it as an Expr.
Definition at line 2059 of file Generator.h.
References Halide::Internal::GeneratorInputImpl< T, Expr >::at(), Halide::Internal::GIOBase::check_gio_access(), and Halide::Internal::GIOBase::exprs().
|
inline |
Definition at line 2065 of file Generator.h.
References Halide::cast(), Halide::Internal::GIOBase::check_gio_access(), Halide::Internal::GeneratorInputBase::parameters_, Halide::reinterpret(), Halide::Parameter::set_estimate(), and user_assert.
|
inline |
Definition at line 2075 of file Generator.h.
References Halide::cast(), Halide::Internal::GIOBase::check_gio_access(), Halide::Internal::GeneratorInputBase::parameters_, and Halide::Parameter::set_estimate().
|
inline |
Definition at line 2087 of file Generator.h.
References Halide::cast(), Halide::Internal::GIOBase::check_gio_access(), and Halide::Internal::GeneratorInputBase::parameters_.
|
inline |
Definition at line 2096 of file Generator.h.
References Halide::Expr::type().
|
protected |
Definition at line 2002 of file Generator.h.
|
protected |
Definition at line 2003 of file Generator.h.
Referenced by Halide::Internal::GeneratorInput_Scalar< T >::set_def_min_max().