Halide 19.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 Member Functions | |
GeneratorContext (const Target &t) | |
GeneratorContext (const Target &t, const AutoschedulerParams &autoscheduler_params) | |
GeneratorContext ()=default | |
GeneratorContext (const GeneratorContext &)=default | |
GeneratorContext & | operator= (const GeneratorContext &)=default |
GeneratorContext (GeneratorContext &&)=default | |
GeneratorContext & | operator= (GeneratorContext &&)=default |
const Target & | target () const |
const AutoschedulerParams & | autoscheduler_params () const |
GeneratorContext | with_target (const Target &t) 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 'context()' for the GeneratorContext:
Definition at line 3007 of file Generator.h.
|
explicit |
|
explicit |
|
default |
|
default |
|
default |
|
default |
|
default |
|
inline |
Definition at line 3021 of file Generator.h.
|
inline |
Definition at line 3024 of file Generator.h.
GeneratorContext Halide::GeneratorContext::with_target | ( | const Target & | t | ) | const |
|
inline |
Definition at line 3034 of file Generator.h.
|
inline |
Definition at line 3038 of file Generator.h.