Template Class PBinaryExpr#

Inheritance Relationships#

Base Type#

Class Documentation#

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

Pattern binary expression.

Template Parameters:
  • OpType – The AST noderef type.

  • TA – The pattern type of the first operand.

  • TB – The pattern type of the second operand.

  • kFoldConstants – Whether evaluation folds constant operands.

Public Functions

inline PBinaryExpr(const TA &a, const TB &b)#
inline void InitMatch_() const#
inline bool Match_(const ffi::ObjectRef &node) const#
inline PrimExpr Eval() const#