Halide
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

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

Detailed Description

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

Definition at line 2147 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 2184 of file IRMatch.h.

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

Member Data Documentation

◆ a

◆ binds

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

Definition at line 2151 of file IRMatch.h.

◆ min_node_type

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

Definition at line 2153 of file IRMatch.h.

◆ max_node_type

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

Definition at line 2154 of file IRMatch.h.

◆ canonical

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

Definition at line 2155 of file IRMatch.h.

◆ foldable

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

Definition at line 2181 of file IRMatch.h.


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