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

Pattern select expression. More...

#include <pattern_match.h>

Inheritance diagram for tvm::PSelectExpr< TCond, TA, TB >:
Collaboration diagram for tvm::PSelectExpr< TCond, TA, TB >:

Public Member Functions

 PSelectExpr (const TCond &condition, const TA &true_value, const TB &false_value)
 
void InitMatch_ () const
 
bool Match_ (const ffi::ObjectRef &node) const
 
PrimExpr Eval () const
 
- Public Member Functions inherited from tvm::Pattern< PSelectExpr< TCond, TA, TB > >
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 PSelectExpr< TCond, TA, TB > & derived () const
 

Additional Inherited Members

- Public Types inherited from tvm::Pattern< PSelectExpr< TCond, TA, TB > >
using Nested = PSelectExpr< TCond, TA, TB >
 Nested storage type in the expression.
 

Detailed Description

template<typename TCond, typename TA, typename TB>
class tvm::PSelectExpr< TCond, TA, TB >

Pattern select expression.

Template Parameters
TCondThe pattern type of the condition.
TAThe pattern type of the true operand.
TBThe pattern type of the false operand.

Constructor & Destructor Documentation

◆ PSelectExpr()

template<typename TCond , typename TA , typename TB >
tvm::PSelectExpr< TCond, TA, TB >::PSelectExpr ( const TCond &  condition,
const TA &  true_value,
const TB &  false_value 
)
inline

Member Function Documentation

◆ Eval()

template<typename TCond , typename TA , typename TB >
PrimExpr tvm::PSelectExpr< TCond, TA, TB >::Eval ( ) const
inline

◆ InitMatch_()

template<typename TCond , typename TA , typename TB >
void tvm::PSelectExpr< TCond, TA, TB >::InitMatch_ ( ) const
inline

◆ Match_()

template<typename TCond , typename TA , typename TB >
bool tvm::PSelectExpr< TCond, TA, TB >::Match_ ( const ffi::ObjectRef &  node) const
inline

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