Halide 19.0.0
Halide compiler and libraries
Loading...
Searching...
No Matches
Halide::Internal::IRMatcher::Rewriter< Instance > Struct Template Reference

#include <IRMatch.h>

Public Member Functions

HALIDE_ALWAYS_INLINE Rewriter (Instance instance, halide_type_t ot, halide_type_t wt)
 
template<typename After >
HALIDE_NEVER_INLINE void build_replacement (After after)
 
template<typename Before , typename After , typename = typename enable_if_pattern<Before>::type, typename = typename enable_if_pattern<After>::type>
HALIDE_ALWAYS_INLINE bool operator() (Before before, After after)
 
template<typename Before , typename = typename enable_if_pattern<Before>::type>
HALIDE_ALWAYS_INLINE bool operator() (Before before, const Expr &after) noexcept
 
template<typename Before , typename = typename enable_if_pattern<Before>::type>
HALIDE_ALWAYS_INLINE bool operator() (Before before, int64_t after) noexcept
 
template<typename Before , typename After , typename Predicate , typename = typename enable_if_pattern<Before>::type, typename = typename enable_if_pattern<After>::type, typename = typename enable_if_pattern<Predicate>::type>
HALIDE_ALWAYS_INLINE bool operator() (Before before, After after, Predicate pred)
 
template<typename Before , typename Predicate , typename = typename enable_if_pattern<Before>::type, typename = typename enable_if_pattern<Predicate>::type>
HALIDE_ALWAYS_INLINE bool operator() (Before before, const Expr &after, Predicate pred)
 
template<typename Before , typename Predicate , typename = typename enable_if_pattern<Before>::type, typename = typename enable_if_pattern<Predicate>::type>
HALIDE_ALWAYS_INLINE bool operator() (Before before, int64_t after, Predicate pred)
 

Public Attributes

Instance instance
 
Expr result
 
MatcherState state
 
halide_type_t output_type
 
halide_type_t wildcard_type
 
bool validate
 

Detailed Description

template<typename Instance>
struct Halide::Internal::IRMatcher::Rewriter< Instance >

Definition at line 2853 of file IRMatch.h.

Constructor & Destructor Documentation

◆ Rewriter()

template<typename Instance >
HALIDE_ALWAYS_INLINE Halide::Internal::IRMatcher::Rewriter< Instance >::Rewriter ( Instance instance,
halide_type_t ot,
halide_type_t wt )
inline

Definition at line 2861 of file IRMatch.h.

Member Function Documentation

◆ build_replacement()

◆ operator()() [1/6]

◆ operator()() [2/6]

template<typename Instance >
template<typename Before , typename = typename enable_if_pattern<Before>::type>
HALIDE_ALWAYS_INLINE bool Halide::Internal::IRMatcher::Rewriter< Instance >::operator() ( Before before,
const Expr & after )
inlinenoexcept

◆ operator()() [3/6]

◆ operator()() [4/6]

◆ operator()() [5/6]

template<typename Instance >
template<typename Before , typename Predicate , typename = typename enable_if_pattern<Before>::type, typename = typename enable_if_pattern<Predicate>::type>
HALIDE_ALWAYS_INLINE bool Halide::Internal::IRMatcher::Rewriter< Instance >::operator() ( Before before,
const Expr & after,
Predicate pred )
inline

◆ operator()() [6/6]

Member Data Documentation

◆ instance

◆ result

◆ state

◆ output_type

◆ wildcard_type

◆ validate

template<typename Instance >
bool Halide::Internal::IRMatcher::Rewriter< Instance >::validate

Definition at line 2858 of file IRMatch.h.


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