Template Function tvm::select#
Defined in File pattern_match.h
Function Documentation#
-
template<typename TCond, typename TA, typename TB>
inline PSelectExpr<TCond, TA, TB> tvm::select(const Pattern<TCond> &condition, const Pattern<TA> &true_value, const Pattern<TB> &false_value)# Construct a select pattern.
- Parameters:
condition – The condition expression.
true_value – The value when condition is true.
false_value – The value when condition is false.
- Template Parameters:
TCond – The pattern type of the condition.
TA – The pattern type of the true operand.
TB – The pattern type of the false operand.
- Returns:
The result pattern.