tvm
Loading...
Searching...
No Matches
Public Member Functions | List of all members
tvm::PBinaryExpr< OpType, TA, TB, kFoldConstants > Class Template Reference

Pattern binary expression. More...

#include <pattern_match.h>

Inheritance diagram for tvm::PBinaryExpr< OpType, TA, TB, kFoldConstants >:
Collaboration diagram for tvm::PBinaryExpr< OpType, TA, TB, kFoldConstants >:

Public Member Functions

 PBinaryExpr (const TA &a, const TB &b)
 
void InitMatch_ () const
 
bool Match_ (const ffi::ObjectRef &node) const
 
PrimExpr 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
 

Additional Inherited Members

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

Detailed Description

template<typename OpType, typename TA, typename TB, bool kFoldConstants = true>
class tvm::PBinaryExpr< OpType, TA, TB, kFoldConstants >

Pattern binary expression.

Template Parameters
OpTypeThe AST noderef type.
TAThe pattern type of the first operand.
TBThe pattern type of the second operand.
kFoldConstantsWhether evaluation folds constant operands.

Constructor & Destructor Documentation

◆ PBinaryExpr()

template<typename OpType , typename TA , typename TB , bool kFoldConstants = true>
tvm::PBinaryExpr< OpType, TA, TB, kFoldConstants >::PBinaryExpr ( const TA &  a,
const TB &  b 
)
inline

Member Function Documentation

◆ Eval()

template<typename OpType , typename TA , typename TB , bool kFoldConstants = true>
PrimExpr tvm::PBinaryExpr< OpType, TA, TB, kFoldConstants >::Eval ( ) const
inline

◆ InitMatch_()

template<typename OpType , typename TA , typename TB , bool kFoldConstants = true>
void tvm::PBinaryExpr< OpType, TA, TB, kFoldConstants >::InitMatch_ ( ) const
inline

◆ Match_()

template<typename OpType , typename TA , typename TB , bool kFoldConstants = true>
bool tvm::PBinaryExpr< OpType, TA, TB, kFoldConstants >::Match_ ( const ffi::ObjectRef &  node) const
inline

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