Halide
Halide::Internal::IRMatcher::IntLiteral Struct Reference

#include <IRMatch.h>

Classes

struct  pattern_tag
 

Public Member Functions

HALIDE_ALWAYS_INLINE IntLiteral (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 (int64_t val, MatcherState &state) const noexcept
 
template<uint32_t bound>
HALIDE_ALWAYS_INLINE bool match (const IntLiteral &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 500 of file IRMatch.h.

Constructor & Destructor Documentation

◆ IntLiteral()

HALIDE_ALWAYS_INLINE Halide::Internal::IRMatcher::IntLiteral::IntLiteral ( int64_t  v)
inlineexplicit

Definition at line 511 of file IRMatch.h.

Member Function Documentation

◆ match() [1/3]

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

◆ match() [2/3]

template<uint32_t bound>
HALIDE_ALWAYS_INLINE bool Halide::Internal::IRMatcher::IntLiteral::match ( int64_t  val,
MatcherState state 
) const
inlinenoexcept

Definition at line 534 of file IRMatch.h.

References v.

◆ match() [3/3]

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

Definition at line 539 of file IRMatch.h.

References v.

◆ make()

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

Definition at line 544 of file IRMatch.h.

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

◆ make_folded_const()

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

Definition at line 551 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::IntLiteral::v

◆ binds

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

Definition at line 504 of file IRMatch.h.

◆ min_node_type

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

Definition at line 506 of file IRMatch.h.

◆ max_node_type

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

Definition at line 507 of file IRMatch.h.

◆ canonical

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

Definition at line 508 of file IRMatch.h.

◆ foldable

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

Definition at line 548 of file IRMatch.h.


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