Halide 19.0.0
Halide compiler and libraries
Loading...
Searching...
No Matches
Halide::Internal::IRMatcher::Fold< A > Struct Template Reference

#include <IRMatch.h>

Classes

struct  pattern_tag
 

Public Member Functions

HALIDE_ALWAYS_INLINE Expr make (MatcherState &state, halide_type_t type_hint) const noexcept
 
template<typename A1 = A>
HALIDE_ALWAYS_INLINE void make_folded_const (halide_scalar_value_t &val, halide_type_t &ty, MatcherState &state) const noexcept
 

Public Attributes

a
 

Static Public Attributes

static constexpr uint32_t binds = bindings<A>::mask
 
static constexpr IRNodeType min_node_type = IRNodeType::IntImm
 
static constexpr IRNodeType max_node_type = IRNodeType::FloatImm
 
static constexpr bool canonical = true
 
static constexpr bool foldable = A::foldable
 

Detailed Description

template<typename A>
struct Halide::Internal::IRMatcher::Fold< A >

Definition at line 2183 of file IRMatch.h.

Member Function Documentation

◆ make()

◆ make_folded_const()

template<typename A >
template<typename A1 = A>
HALIDE_ALWAYS_INLINE void Halide::Internal::IRMatcher::Fold< A >::make_folded_const ( halide_scalar_value_t & val,
halide_type_t & ty,
MatcherState & state ) const
inlinenoexcept

Definition at line 2220 of file IRMatch.h.

References Halide::Internal::IRMatcher::Fold< A >::a.

Member Data Documentation

◆ a

◆ binds

template<typename A >
uint32_t Halide::Internal::IRMatcher::Fold< A >::binds = bindings<A>::mask
staticconstexpr

Definition at line 2187 of file IRMatch.h.

◆ min_node_type

template<typename A >
IRNodeType Halide::Internal::IRMatcher::Fold< A >::min_node_type = IRNodeType::IntImm
staticconstexpr

Definition at line 2189 of file IRMatch.h.

◆ max_node_type

template<typename A >
IRNodeType Halide::Internal::IRMatcher::Fold< A >::max_node_type = IRNodeType::FloatImm
staticconstexpr

Definition at line 2190 of file IRMatch.h.

◆ canonical

template<typename A >
bool Halide::Internal::IRMatcher::Fold< A >::canonical = true
staticconstexpr

Definition at line 2191 of file IRMatch.h.

◆ foldable

template<typename A >
bool Halide::Internal::IRMatcher::Fold< A >::foldable = A::foldable
staticconstexpr

Definition at line 2217 of file IRMatch.h.


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