Halide 14.0.0
Halide compiler and libraries
|
GeneratorContext is a class that is used when using Generators (or Stubs) directly; it is used to allow the outer context (typically, either a Generator or "top-level" code) to specify certain information to the inner context to ensure that inner and outer Generators are compiled in a compatible way. More...
#include <Generator.h>
Public Types | |
using | ExternsMap = std::map< std::string, ExternalCode > |
Public Member Functions | |
GeneratorContext (const Target &t, bool auto_schedule=false, const MachineParams &machine_params=MachineParams::generic()) | |
GeneratorContext ()=default | |
GeneratorContext (const GeneratorContext &)=default | |
GeneratorContext & | operator= (const GeneratorContext &)=default |
GeneratorContext (GeneratorContext &&)=default | |
GeneratorContext & | operator= (GeneratorContext &&)=default |
const Target & | get_target () const |
bool | get_auto_schedule () const |
const MachineParams & | get_machine_params () const |
template<typename T > | |
std::unique_ptr< T > | create () const |
template<typename T , typename... Args> | |
std::unique_ptr< T > | apply (const Args &...args) const |
GeneratorContext is a class that is used when using Generators (or Stubs) directly; it is used to allow the outer context (typically, either a Generator or "top-level" code) to specify certain information to the inner context to ensure that inner and outer Generators are compiled in a compatible way.
If you are using this at "top level" (e.g. with the JIT), you can construct a GeneratorContext with a Target:
Note that all Generators embed a GeneratorContext, so if you are using a Stub from within a Generator, you can just pass 'contex()' for the GeneratorContext:
Definition at line 2934 of file Generator.h.
using Halide::GeneratorContext::ExternsMap = std::map<std::string, ExternalCode> |
Definition at line 2938 of file Generator.h.
|
explicit |
|
default |
|
default |
|
default |
|
default |
|
default |
|
inline |
Definition at line 2950 of file Generator.h.
|
inline |
Definition at line 2953 of file Generator.h.
|
inline |
Definition at line 2956 of file Generator.h.
|
inline |
Definition at line 2961 of file Generator.h.
|
inline |
Definition at line 2965 of file Generator.h.