Halide
Halide::Internal::IRMatcher::Const Struct Reference

#include <IRMatch.h>

Classes

struct  pattern_tag
 

Public Member Functions

HALIDE_ALWAYS_INLINE Const (int64_t v)
 
template<uint32_t bound>
HALIDE_ALWAYS_INLINE bool match (const BaseExprNode &e, MatcherState &state) const noexcept
 
template<uint32_t bound>
HALIDE_ALWAYS_INLINE bool match (const Const &b, 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
 

Public Attributes

int64_t v
 

Static Public Attributes

constexpr static uint32_t binds = 0
 
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

Definition at line 497 of file IRMatch.h.

Constructor & Destructor Documentation

◆ Const()

HALIDE_ALWAYS_INLINE Halide::Internal::IRMatcher::Const::Const ( int64_t  v)
inline

Definition at line 508 of file IRMatch.h.

Member Function Documentation

◆ match() [1/2]

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

◆ match() [2/2]

template<uint32_t bound>
HALIDE_ALWAYS_INLINE bool Halide::Internal::IRMatcher::Const::match ( const Const b,
MatcherState state 
) const
inlinenoexcept

Definition at line 531 of file IRMatch.h.

References v.

◆ make()

HALIDE_ALWAYS_INLINE Expr Halide::Internal::IRMatcher::Const::make ( MatcherState state,
halide_type_t  type_hint 
) const
inline

Definition at line 536 of file IRMatch.h.

References Halide::Internal::make_const(), and v.

◆ make_folded_const()

HALIDE_ALWAYS_INLINE void Halide::Internal::IRMatcher::Const::make_folded_const ( halide_scalar_value_t val,
halide_type_t ty,
MatcherState state 
) const
inlinenoexcept

Definition at line 543 of file IRMatch.h.

References halide_type_bfloat, halide_type_float, halide_type_int, halide_type_uint, and v.

Member Data Documentation

◆ v

int64_t Halide::Internal::IRMatcher::Const::v

Definition at line 499 of file IRMatch.h.

Referenced by make(), make_folded_const(), match(), and Halide::Internal::IRMatcher::operator<<().

◆ binds

constexpr static uint32_t Halide::Internal::IRMatcher::Const::binds = 0
staticconstexpr

Definition at line 501 of file IRMatch.h.

◆ min_node_type

constexpr static IRNodeType Halide::Internal::IRMatcher::Const::min_node_type = IRNodeType::IntImm
staticconstexpr

Definition at line 503 of file IRMatch.h.

◆ max_node_type

constexpr static IRNodeType Halide::Internal::IRMatcher::Const::max_node_type = IRNodeType::FloatImm
staticconstexpr

Definition at line 504 of file IRMatch.h.

◆ canonical

constexpr static bool Halide::Internal::IRMatcher::Const::canonical = true
staticconstexpr

Definition at line 505 of file IRMatch.h.

◆ foldable

constexpr static bool Halide::Internal::IRMatcher::Const::foldable = true
staticconstexpr

Definition at line 540 of file IRMatch.h.


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