Halide  12.0.1
Halide compiler and libraries
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)
 
std::vector< Funcget_outputs (const std::string &n) const
 
template<typename T2 >
std::vector< T2 > get_output_buffers (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 EvictionKey = Halide::EvictionKey
 
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 3729 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_outputs()

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

Definition at line 3742 of file Generator.h.

References generator.

◆ get_output_buffers()

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

Definition at line 3747 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 3756 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 3760 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 3765 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 3770 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

Definition at line 3781 of file Generator.h.

Referenced by get_output_buffers(), and get_outputs().


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