Halide 16.0.0
Halide compiler and libraries
 
Loading...
Searching...
No Matches
Halide::ParamMap Class Reference

#include <ParamMap.h>

Classes

struct  ParamMapping
 

Public Member Functions

 ParamMap ()=default
 
template<typename T>
HALIDE_ATTRIBUTE_DEPRECATED("ParamMap is deprecated in Halide 16 and will be removed in Halide 17. " "Callers requiring threadsafe JIT calls should migrate to use compile_to_callable() instead.") ParamMap(const std HALIDE_ATTRIBUTE_DEPRECATED ("ParamMap is deprecated in Halide 16 and will be removed in Halide 17. " "Callers requiring threadsafe JIT calls should migrate to use compile_to_callable() instead.") void set(const Param< T > &p
 
set_scalar (val)
 
 HALIDE_ATTRIBUTE_DEPRECATED ("ParamMap is deprecated in Halide 16 and will be removed in Halide 17. " "Callers requiring threadsafe JIT calls should migrate to use compile_to_callable() instead.") void set(const ImageParam &p
 
size_t size () const
 
const Internal::Parametermap (const Internal::Parameter &p, Buffer<> *&buf_out_param) const
 If there is an entry in the ParamMap for this Parameter, return it.
 
Internal::Parametermap (Internal::Parameter &p, Buffer<> *&buf_out_param) const
 

Static Public Member Functions

static const ParamMapempty_map ()
 A const ref to an empty ParamMap.
 

Public Attributes

HALIDE_ATTRIBUTE_DEPRECATED("ParamMap is deprecated in Halide 16 and will be removed in Halide 17. " "Callers requiring threadsafe JIT calls should migrate to use compile_to_callable() instead.") ParamMap(const std T val
 
ParamArg pa
 
pa mapped_param = v
 
pa buf_out_param = nullptr
 
 mapping [p.parameter()] = pa
 
const Bufferbuf
 

Detailed Description

Definition at line 17 of file ParamMap.h.

Constructor & Destructor Documentation

◆ ParamMap()

Halide::ParamMap::ParamMap ( )
default

References ParamMap().

Referenced by empty_map(), and ParamMap().

Member Function Documentation

◆ HALIDE_ATTRIBUTE_DEPRECATED() [1/2]

template<typename T>
HALIDE_ATTRIBUTE_DEPRECATED("ParamMap is deprecated in Halide 16 and will be removed in Halide 17. " "Callers requiring threadsafe JIT calls should migrate to use compile_to_callable() instead.") ParamMap(const std Halide::ParamMap::HALIDE_ATTRIBUTE_DEPRECATED ( "ParamMap is deprecated in Halide 16 and will be removed in Halide 17. " "Callers requiring threadsafe JIT calls should migrate to use compile_to_callable() instead." ) const &

◆ set_scalar()

v Halide::ParamMap::set_scalar ( val )

References val.

◆ HALIDE_ATTRIBUTE_DEPRECATED() [2/2]

Halide::ParamMap::HALIDE_ATTRIBUTE_DEPRECATED ( "ParamMap is deprecated in Halide 16 and will be removed in Halide 17. " "Callers requiring threadsafe JIT calls should migrate to use compile_to_callable() instead." ) const &

◆ size()

size_t Halide::ParamMap::size ( ) const
inline

Definition at line 95 of file ParamMap.h.

◆ map() [1/2]

const Internal::Parameter & Halide::ParamMap::map ( const Internal::Parameter & p,
Buffer<> *& buf_out_param ) const

If there is an entry in the ParamMap for this Parameter, return it.

Otherwise return the parameter itself.

References buf_out_param.

◆ map() [2/2]

Internal::Parameter & Halide::ParamMap::map ( Internal::Parameter & p,
Buffer<> *& buf_out_param ) const

References buf_out_param.

◆ empty_map()

static const ParamMap & Halide::ParamMap::empty_map ( )
inlinestatic

Member Data Documentation

◆ val

HALIDE_ATTRIBUTE_DEPRECATED("ParamMap is deprecated in Halide 16 and will be removed in Halide 17. " "Callers requiring threadsafe JIT calls should migrate to use compile_to_callable() instead.") ParamMap(const std T Halide::ParamMap::val
Initial value:
{
Internal::Parameter v(p.type(), false, 0, p.name())
A reference-counted handle to a parameter to a halide pipeline.
Definition Parameter.h:28

Definition at line 80 of file ParamMap.h.

Referenced by Halide::ParamMap::ParamMapping::ParamMapping(), and set_scalar().

◆ pa

ParamArg Halide::ParamMap::pa

Definition at line 83 of file ParamMap.h.

◆ mapped_param

pa Halide::ParamMap::mapped_param = v

Definition at line 84 of file ParamMap.h.

◆ buf_out_param

pa Halide::ParamMap::buf_out_param = nullptr

Definition at line 85 of file ParamMap.h.

Referenced by map(), and map().

◆ mapping

Halide::ParamMap::mapping[p.parameter()] = pa

Definition at line 86 of file ParamMap.h.

◆ buf

const Buffer& Halide::ParamMap::buf
Initial value:
{
set(p, buf, nullptr)
const Buffer & buf
Definition ParamMap.h:91

Definition at line 91 of file ParamMap.h.


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