Halide
Halide::Internal::IRMatcher::WildConst< i > Struct Template Reference

#include <IRMatch.h>

Classes

struct  pattern_tag
 

Public Member Functions

template<uint32_t bound>
HALIDE_ALWAYS_INLINE bool match (const BaseExprNode &e, MatcherState &state) const noexcept
 
HALIDE_ALWAYS_INLINE Expr make (MatcherState &state, halide_type_t type_hint) const
 
HALIDE_ALWAYS_INLINE void make_folded_const (halide_scalar_value_t &val, halide_type_t &ty, MatcherState &state) const noexcept
 

Static Public Attributes

constexpr static uint32_t binds = 1 << i
 
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 = true
 

Detailed Description

template<int i>
struct Halide::Internal::IRMatcher::WildConst< i >

Definition at line 388 of file IRMatch.h.

Member Function Documentation

◆ match()

template<int i>
template<uint32_t bound>
HALIDE_ALWAYS_INLINE bool Halide::Internal::IRMatcher::WildConst< i >::match ( const BaseExprNode e,
MatcherState state 
) const
inlinenoexcept

Definition at line 398 of file IRMatch.h.

◆ make()

template<int i>
HALIDE_ALWAYS_INLINE Expr Halide::Internal::IRMatcher::WildConst< i >::make ( MatcherState state,
halide_type_t  type_hint 
) const
inline

Definition at line 417 of file IRMatch.h.

◆ make_folded_const()

template<int i>
HALIDE_ALWAYS_INLINE void Halide::Internal::IRMatcher::WildConst< i >::make_folded_const ( halide_scalar_value_t val,
halide_type_t ty,
MatcherState state 
) const
inlinenoexcept

Definition at line 427 of file IRMatch.h.

Member Data Documentation

◆ binds

template<int i>
constexpr static uint32_t Halide::Internal::IRMatcher::WildConst< i >::binds = 1 << i
staticconstexpr

Definition at line 391 of file IRMatch.h.

◆ min_node_type

template<int i>
constexpr static IRNodeType Halide::Internal::IRMatcher::WildConst< i >::min_node_type = IRNodeType::IntImm
staticconstexpr

Definition at line 393 of file IRMatch.h.

◆ max_node_type

template<int i>
constexpr static IRNodeType Halide::Internal::IRMatcher::WildConst< i >::max_node_type = IRNodeType::FloatImm
staticconstexpr

Definition at line 394 of file IRMatch.h.

◆ canonical

template<int i>
constexpr static bool Halide::Internal::IRMatcher::WildConst< i >::canonical = true
staticconstexpr

Definition at line 395 of file IRMatch.h.

◆ foldable

template<int i>
constexpr static bool Halide::Internal::IRMatcher::WildConst< i >::foldable = true
staticconstexpr

Definition at line 424 of file IRMatch.h.


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