Halide
Halide::Internal::GeneratorStub Class Reference

#include <Generator.h>

Inherits Halide::NamesInterface.

Classes

struct  Names
 

Public Member Functions

 GeneratorStub (const GeneratorContext &context, const GeneratorFactory &generator_factory)
 
 GeneratorStub (const GeneratorContext &context, const GeneratorFactory &generator_factory, const GeneratorParamsMap &generator_params, const std::vector< std::vector< Internal::StubInput >> &inputs)
 
std::vector< std::vector< Func > > generate (const GeneratorParamsMap &generator_params, const std::vector< std::vector< Internal::StubInput >> &inputs)
 
Func get_output (const std::string &n) const
 
template<typename T2 >
T2 get_output_buffer (const std::string &n) const
 
template<typename T2 >
std::vector< T2 > get_array_output_buffer (const std::string &n) const
 
std::vector< Funcget_array_output (const std::string &n) const
 
Names get_names () const
 

Static Public Member Functions

static std::vector< StubInputto_stub_input_vector (const Expr &e)
 
static std::vector< StubInputto_stub_input_vector (const Func &f)
 
template<typename T = void>
static std::vector< StubInputto_stub_input_vector (const StubInputBuffer< T > &b)
 
template<typename T >
static std::vector< StubInputto_stub_input_vector (const std::vector< T > &v)
 

Public Attributes

std::shared_ptr< GeneratorBasegenerator
 

Additional Inherited Members

- Protected Types inherited from Halide::NamesInterface
using Expr = Halide::Expr
 
using ExternFuncArgument = Halide::ExternFuncArgument
 
using Func = Halide::Func
 
using GeneratorContext = Halide::GeneratorContext
 
using ImageParam = Halide::ImageParam
 
using LoopLevel = Halide::LoopLevel
 
using MemoryType = Halide::MemoryType
 
using NameMangling = Halide::NameMangling
 
using Pipeline = Halide::Pipeline
 
using PrefetchBoundStrategy = Halide::PrefetchBoundStrategy
 
using RDom = Halide::RDom
 
using RVar = Halide::RVar
 
using TailStrategy = Halide::TailStrategy
 
using Target = Halide::Target
 
using Tuple = Halide::Tuple
 
using Type = Halide::Type
 
using Var = Halide::Var
 
template<typename T >
using GeneratorParam = Halide::GeneratorParam< T >
 
template<typename T = void>
using Buffer = Halide::Buffer< T >
 
template<typename T >
using Param = Halide::Param< T >
 
- Static Protected Member Functions inherited from Halide::NamesInterface
template<typename T >
static Expr cast (Expr e)
 
static Expr cast (Halide::Type t, Expr e)
 
static Type Bool (int lanes=1)
 
static Type Float (int bits, int lanes=1)
 
static Type Int (int bits, int lanes=1)
 
static Type UInt (int bits, int lanes=1)
 

Detailed Description

Definition at line 3697 of file Generator.h.

Constructor & Destructor Documentation

◆ GeneratorStub() [1/2]

Halide::Internal::GeneratorStub::GeneratorStub ( const GeneratorContext context,
const GeneratorFactory generator_factory 
)

◆ GeneratorStub() [2/2]

Halide::Internal::GeneratorStub::GeneratorStub ( const GeneratorContext context,
const GeneratorFactory generator_factory,
const GeneratorParamsMap generator_params,
const std::vector< std::vector< Internal::StubInput >> &  inputs 
)

Member Function Documentation

◆ generate()

std::vector<std::vector<Func> > Halide::Internal::GeneratorStub::generate ( const GeneratorParamsMap generator_params,
const std::vector< std::vector< Internal::StubInput >> &  inputs 
)

◆ get_output()

Func Halide::Internal::GeneratorStub::get_output ( const std::string &  n) const
inline

Definition at line 3711 of file Generator.h.

References generator.

Referenced by get_output_buffer().

◆ get_output_buffer()

template<typename T2 >
T2 Halide::Internal::GeneratorStub::get_output_buffer ( const std::string &  n) const
inline

Definition at line 3716 of file Generator.h.

References generator, and get_output().

◆ get_array_output_buffer()

template<typename T2 >
std::vector<T2> Halide::Internal::GeneratorStub::get_array_output_buffer ( const std::string &  n) const
inline

Definition at line 3721 of file Generator.h.

References generator.

◆ get_array_output()

std::vector<Func> Halide::Internal::GeneratorStub::get_array_output ( const std::string &  n) const
inline

Definition at line 3730 of file Generator.h.

References generator.

◆ to_stub_input_vector() [1/4]

static std::vector<StubInput> Halide::Internal::GeneratorStub::to_stub_input_vector ( const Expr e)
inlinestatic

Definition at line 3734 of file Generator.h.

◆ to_stub_input_vector() [2/4]

static std::vector<StubInput> Halide::Internal::GeneratorStub::to_stub_input_vector ( const Func f)
inlinestatic

Definition at line 3738 of file Generator.h.

◆ to_stub_input_vector() [3/4]

template<typename T = void>
static std::vector<StubInput> Halide::Internal::GeneratorStub::to_stub_input_vector ( const StubInputBuffer< T > &  b)
inlinestatic

Definition at line 3743 of file Generator.h.

◆ to_stub_input_vector() [4/4]

template<typename T >
static std::vector<StubInput> Halide::Internal::GeneratorStub::to_stub_input_vector ( const std::vector< T > &  v)
inlinestatic

Definition at line 3748 of file Generator.h.

◆ get_names()

Names Halide::Internal::GeneratorStub::get_names ( ) const

Member Data Documentation

◆ generator

std::shared_ptr<GeneratorBase> Halide::Internal::GeneratorStub::generator

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