Halide
Halide::Internal::GeneratorInputBase Class Referenceabstract

#include <Generator.h>

Inherits Halide::Internal::GIOBase.

Inherited by Halide::Internal::GeneratorInputImpl< T, Expr >, Halide::Internal::GeneratorInputImpl< T, Func >, and Halide::Internal::GeneratorInputImpl< T, ValueType >.

Public Member Functions

 ~GeneratorInputBase () override
 
- Public Member Functions inherited from Halide::Internal::GIOBase
bool array_size_defined () const
 
size_t array_size () const
 
virtual bool is_array () const
 
const std::string & name () const
 
IOKind kind () const
 
bool types_defined () const
 
const std::vector< Type > & types () const
 
Type type () const
 
bool dims_defined () const
 
int dims () const
 
const std::vector< Func > & funcs () const
 
const std::vector< Expr > & exprs () const
 
virtual ~GIOBase ()
 

Protected Member Functions

 GeneratorInputBase (size_t array_size, const std::string &name, IOKind kind, const std::vector< Type > &t, int d)
 
 GeneratorInputBase (const std::string &name, IOKind kind, const std::vector< Type > &t, int d)
 
Parameter parameter () const
 
void init_internals ()
 
void set_inputs (const std::vector< StubInput > &inputs)
 
virtual void set_def_min_max ()
 
virtual Expr get_def_expr () const
 
void verify_internals () override
 
virtual std::string get_c_type () const =0
 
void check_value_writable () const override
 
const char * input_or_output () const override
 
void set_estimate_impl (const Var &var, const Expr &min, const Expr &extent)
 
void set_estimates_impl (const Region &estimates)
 
- Protected Member Functions inherited from Halide::Internal::GIOBase
 GIOBase (size_t array_size, const std::string &name, IOKind kind, const std::vector< Type > &types, int dims)
 
std::string array_name (size_t i) const
 
void check_matching_array_size (size_t size) const
 
void check_matching_types (const std::vector< Type > &t) const
 
void check_matching_dims (int d) const
 
template<typename ElemType >
const std::vector< ElemType > & get_values () const
 
void check_gio_access () const
 
template<>
const std::vector< Expr > & get_values () const
 
template<>
const std::vector< Func > & get_values () const
 

Protected Attributes

std::vector< Parameterparameters_
 
- Protected Attributes inherited from Halide::Internal::GIOBase
int array_size_
 
const std::string name_
 
const IOKind kind_
 
std::vector< Typetypes_
 
int dims_
 
std::vector< Funcfuncs_
 
std::vector< Exprexprs_
 
GeneratorBasegenerator {nullptr}
 

Detailed Description

Definition at line 1519 of file Generator.h.

Constructor & Destructor Documentation

◆ GeneratorInputBase() [1/2]

Halide::Internal::GeneratorInputBase::GeneratorInputBase ( size_t  array_size,
const std::string &  name,
IOKind  kind,
const std::vector< Type > &  t,
int  d 
)
protected

◆ GeneratorInputBase() [2/2]

Halide::Internal::GeneratorInputBase::GeneratorInputBase ( const std::string &  name,
IOKind  kind,
const std::vector< Type > &  t,
int  d 
)
protected

◆ ~GeneratorInputBase()

Halide::Internal::GeneratorInputBase::~GeneratorInputBase ( )
override

Member Function Documentation

◆ parameter()

Parameter Halide::Internal::GeneratorInputBase::parameter ( ) const
protected

◆ init_internals()

void Halide::Internal::GeneratorInputBase::init_internals ( )
protected

◆ set_inputs()

void Halide::Internal::GeneratorInputBase::set_inputs ( const std::vector< StubInput > &  inputs)
protected

◆ set_def_min_max()

virtual void Halide::Internal::GeneratorInputBase::set_def_min_max ( )
protectedvirtual

◆ get_def_expr()

virtual Expr Halide::Internal::GeneratorInputBase::get_def_expr ( ) const
protectedvirtual

◆ verify_internals()

void Halide::Internal::GeneratorInputBase::verify_internals ( )
overrideprotectedvirtual

Reimplemented from Halide::Internal::GIOBase.

◆ get_c_type()

virtual std::string Halide::Internal::GeneratorInputBase::get_c_type ( ) const
protectedpure virtual

◆ check_value_writable()

void Halide::Internal::GeneratorInputBase::check_value_writable ( ) const
overrideprotectedvirtual

◆ input_or_output()

const char* Halide::Internal::GeneratorInputBase::input_or_output ( ) const
inlineoverrideprotectedvirtual

Implements Halide::Internal::GIOBase.

Definition at line 1550 of file Generator.h.

◆ set_estimate_impl()

void Halide::Internal::GeneratorInputBase::set_estimate_impl ( const Var var,
const Expr min,
const Expr extent 
)
protected

◆ set_estimates_impl()

void Halide::Internal::GeneratorInputBase::set_estimates_impl ( const Region estimates)
protected

Member Data Documentation

◆ parameters_


The documentation for this class was generated from the following file: