tvm
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
tvm::PVarWithDataType< T, DType, typename > Class Template Reference

Pattern variable container with expr type check. More...

#include <pattern_match.h>

Inheritance diagram for tvm::PVarWithDataType< T, DType, typename >:
Collaboration diagram for tvm::PVarWithDataType< T, DType, typename >:

Public Member Functions

 PVarWithDataType (const DType &dtype)
 
bool Match_ (const T &value) const
 
- Public Member Functions inherited from tvm::PVarWithCheck< PVarWithDataType< T, DType >, T >
void InitMatch_ () const
 
bool Match_ (const T &value) const
 
bool Match_ (const NodeRefType &value) const
 
T Eval () const
 
- Public Member Functions inherited from tvm::Pattern< Derived >
template<typename NodeType >
bool Match (const NodeType &value) const
 Check if value matches the current pattern.
 
template<typename NodeType , typename Condition >
bool Match (const NodeType &value, Condition cond) const
 Check if value matches the current pattern.
 
const Derived & derived () const
 

Protected Attributes

DType::Nested dtype_
 
- Protected Attributes inherited from tvm::PVarWithCheck< PVarWithDataType< T, DType >, T >
PVar< T > pvar_
 

Additional Inherited Members

- Public Types inherited from tvm::PVarWithCheck< PVarWithDataType< T, DType >, T >
using Nested = const PVarWithCheck< PVarWithDataType< T, DType >, T > &
 
- Public Types inherited from tvm::Pattern< Derived >
using Nested = Derived
 Nested storage type in the expression.
 

Detailed Description

template<typename T, typename DType, typename = std::enable_if<std::is_base_of<T, PrimExpr>::value>>
class tvm::PVarWithDataType< T, DType, typename >

Pattern variable container with expr type check.

Template Parameters
Tthe type of the hole.
DTypethe Pattern type of dtype.

Constructor & Destructor Documentation

◆ PVarWithDataType()

template<typename T , typename DType , typename = std::enable_if<std::is_base_of<T, PrimExpr>::value>>
tvm::PVarWithDataType< T, DType, typename >::PVarWithDataType ( const DType &  dtype)
inlineexplicit

Member Function Documentation

◆ Match_()

template<typename T , typename DType , typename = std::enable_if<std::is_base_of<T, PrimExpr>::value>>
bool tvm::PVarWithDataType< T, DType, typename >::Match_ ( const T &  value) const
inline

Member Data Documentation

◆ dtype_

template<typename T , typename DType , typename = std::enable_if<std::is_base_of<T, PrimExpr>::value>>
DType::Nested tvm::PVarWithDataType< T, DType, typename >::dtype_
protected

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