Halide
Halide::ParamMap Class Reference

#include <ParamMap.h>

Classes

struct  ParamMapping
 

Public Member Functions

 ParamMap ()=default
 
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. More...
 
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. More...
 

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

Member Function Documentation

◆ set_scalar()

v Halide::ParamMap::set_scalar ( val  )

◆ HALIDE_ATTRIBUTE_DEPRECATED()

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.

◆ map() [2/2]

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

◆ empty_map()

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

A const ref to an empty ParamMap.

Useful for default function arguments, which would otherwise require a copy constructor (with llvm in c++98 mode)

Definition at line 110 of file ParamMap.h.

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())

Definition at line 80 of file ParamMap.h.

Referenced by Halide::ParamMap::ParamMapping::ParamMapping().

◆ 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.

◆ 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)

Definition at line 91 of file ParamMap.h.


The documentation for this class was generated from the following file:
Halide::ParamMap::buf
const Buffer & buf
Definition: ParamMap.h:91