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 1896 of file IRMatch.h.

Member Function Documentation

◆ make()

template<typename A >
HALIDE_ALWAYS_INLINE Expr Halide::Internal::IRMatcher::Fold< A >::make ( MatcherState state,
halide_type_t  type_hint 
) const
inlinenoexcept

◆ 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 1917 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 1900 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 1902 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 1903 of file IRMatch.h.

◆ canonical

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

Definition at line 1904 of file IRMatch.h.

◆ foldable

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

Definition at line 1914 of file IRMatch.h.


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