tvm
Loading...
Searching...
No Matches
Public Member Functions | List of all members
tvm::PConst< T > Class Template Reference

Constant Pattern variable container. More...

#include <pattern_match.h>

Inheritance diagram for tvm::PConst< T >:
Collaboration diagram for tvm::PConst< T >:

Public Member Functions

 PConst (T value)
 
void InitMatch_ () const
 
bool Match_ (const T &value) const
 
T Eval () const
 
- Public Member Functions inherited from tvm::Pattern< PConst< T > >
bool Match (const NodeType &value) const
 Check if value matches the current pattern.
 
bool Match (const NodeType &value, Condition cond) const
 Check if value matches the current pattern.
 
const PConst< T > & derived () const
 

Additional Inherited Members

- Public Types inherited from tvm::Pattern< PConst< T > >
using Nested = PConst< T >
 Nested storage type in the expression.
 

Detailed Description

template<typename T>
class tvm::PConst< T >

Constant Pattern variable container.

Template Parameters
Tthe type of the hole.

Constructor & Destructor Documentation

◆ PConst()

template<typename T >
tvm::PConst< T >::PConst ( T  value)
inline

Member Function Documentation

◆ Eval()

template<typename T >
T tvm::PConst< T >::Eval ( ) const
inline

◆ InitMatch_()

template<typename T >
void tvm::PConst< T >::InitMatch_ ( ) const
inline

◆ Match_()

template<typename T >
bool tvm::PConst< T >::Match_ ( const T &  value) const
inline

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