Halide 19.0.0
Halide compiler and libraries
|
#include <Generator.h>
Public Types | |
using | type = T |
Public Member Functions | |
GeneratorParamImpl (const std::string &name, const T &value) | |
T | value () const |
operator T () const | |
operator Expr () const | |
void | set (const std::string &new_value) |
Public Member Functions inherited from Halide::Internal::GeneratorParamBase | |
GeneratorParamBase (const std::string &name) | |
virtual | ~GeneratorParamBase () |
const std::string & | name () const |
void | set (const std::string &new_value) |
void | set (const char *new_value) |
GeneratorParamBase (const GeneratorParamBase &)=delete | |
GeneratorParamBase & | operator= (const GeneratorParamBase &)=delete |
GeneratorParamBase (GeneratorParamBase &&)=delete | |
GeneratorParamBase & | operator= (GeneratorParamBase &&)=delete |
Protected Member Functions | |
virtual void | set_impl (const T &new_value) |
Protected Member Functions inherited from Halide::Internal::GeneratorParamBase | |
void | check_value_readable () const |
void | check_value_writable () const |
virtual void | set_from_string (const std::string &value_string)=0 |
virtual std::string | call_to_string (const std::string &v) const =0 |
virtual std::string | get_c_type () const =0 |
virtual std::string | get_type_decls () const |
virtual std::string | get_default_value () const =0 |
virtual bool | is_synthetic_param () const |
virtual bool | is_looplevel_param () const |
void | fail_wrong_type (const char *type) |
Protected Attributes | |
T | value_ |
Definition at line 503 of file Generator.h.
using Halide::Internal::GeneratorParamImpl< T >::type = T |
Definition at line 505 of file Generator.h.
|
inline |
Definition at line 507 of file Generator.h.
|
inline |
Definition at line 511 of file Generator.h.
References Halide::Internal::GeneratorParamBase::check_value_readable(), and Halide::Internal::GeneratorParamImpl< T >::value_.
Referenced by Halide::Internal::GeneratorParam_Arithmetic< T >::get_default_value(), Halide::Internal::GeneratorParam_Bool< T >::get_default_value(), Halide::Internal::GeneratorParam_Enum< T >::get_default_value(), Halide::Internal::GeneratorParam_String< T >::get_default_value(), Halide::Internal::GeneratorParam_Target< T >::get_default_value(), Halide::Internal::GeneratorParam_Type< T >::get_default_value(), Halide::Internal::GeneratorParamImpl< AutoschedulerParams >::operator AutoschedulerParams(), and Halide::Internal::GeneratorParamImpl< T >::operator Expr().
|
inline |
Definition at line 516 of file Generator.h.
|
inline |
Definition at line 520 of file Generator.h.
References Halide::Internal::make_const(), Halide::type_of(), and Halide::Internal::GeneratorParamImpl< T >::value().
|
inline |
Definition at line 548 of file Generator.h.
References Halide::Internal::GeneratorParamBase::check_value_writable(), and Halide::Internal::GeneratorParamImpl< T >::value_.
Referenced by Halide::Internal::GeneratorParam_Arithmetic< T >::GeneratorParam_Arithmetic(), Halide::Internal::GeneratorParam_Arithmetic< T >::set_from_string(), Halide::Internal::GeneratorParam_Bool< T >::set_from_string(), Halide::Internal::GeneratorParam_String< T >::set_from_string(), and Halide::Internal::GeneratorParam_Target< T >::set_from_string().
|
inlineprotectedvirtual |
Reimplemented in Halide::Internal::GeneratorParam_Arithmetic< T >.
Definition at line 554 of file Generator.h.
References Halide::Internal::GeneratorParamBase::check_value_writable(), and Halide::Internal::GeneratorParamImpl< T >::value_.
Referenced by Halide::Internal::GeneratorParam_Enum< T >::set(), Halide::Internal::GeneratorParam_Enum< T >::set_from_string(), and Halide::Internal::GeneratorParam_Arithmetic< T >::set_impl().
|
protected |
Definition at line 560 of file Generator.h.
Referenced by Halide::Internal::GeneratorParamImpl< T >::set(), Halide::Internal::GeneratorParamImpl< T >::set_impl(), and Halide::Internal::GeneratorParamImpl< T >::value().