reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/IR/PatternMatch.h
   48   return const_cast<Pattern &>(P).match(V);
   57     return V->hasOneUse() && SubPattern.match(V);
  102   template <typename ITy> bool match(ITy *V) { return !M.match(V); }
  118     if (L.match(V))
  120     if (R.match(V))
  133     if (L.match(V))
  716       return (L.match(I->getOperand(0)) && R.match(I->getOperand(1))) ||
  716       return (L.match(I->getOperand(0)) && R.match(I->getOperand(1))) ||
  717              (Commutable && L.match(I->getOperand(1)) &&
  718               R.match(I->getOperand(0)));
  745       return (L.match(I->getOperand(0)) && R.match(I->getOperand(1))) ||
  745       return (L.match(I->getOperand(0)) && R.match(I->getOperand(1))) ||
  746              (Commutable && L.match(I->getOperand(1)) &&
  747               R.match(I->getOperand(0)));
  751              ((L.match(CE->getOperand(0)) && R.match(CE->getOperand(1))) ||
  751              ((L.match(CE->getOperand(0)) && R.match(CE->getOperand(1))) ||
  752               (Commutable && L.match(CE->getOperand(1)) &&
  753                R.match(CE->getOperand(0))));
 1012       return this->isOpType(I->getOpcode()) && L.match(I->getOperand(0)) &&
 1015       return this->isOpType(CE->getOpcode()) && L.match(CE->getOperand(0)) &&
 1107       return PEO->isExact() && SubPattern.match(V);
 1134       if ((L.match(I->getOperand(0)) && R.match(I->getOperand(1))) ||
 1134       if ((L.match(I->getOperand(0)) && R.match(I->getOperand(1))) ||
 1135           (Commutable && L.match(I->getOperand(1)) &&
 1136            R.match(I->getOperand(0)))) {
 1210       return Op1.match(I->getOperand(0)) && Op2.match(I->getOperand(1)) &&
 1211              Op3.match(I->getOperand(2));
 1281       return O->getOpcode() == Opcode && Op.match(O->getOperand(0));
 1406       if (BI->isConditional() && Cond.match(BI->getCondition()))
 1462     return (L.match(LHS) && R.match(RHS)) ||
 1463            (Commutable && L.match(RHS) && R.match(LHS));
 1631       if (AddExpr.match(ICmpLHS) && (ICmpRHS == AddLHS || ICmpRHS == AddRHS))
 1636       if (AddExpr.match(ICmpRHS) && (ICmpLHS == AddLHS || ICmpLHS == AddRHS))
 1643       if (AddExpr.match(ICmpLHS) && m_ZeroInt().match(ICmpRHS) &&
 1648       if (m_ZeroInt().match(ICmpLHS) && AddExpr.match(ICmpRHS) &&
 1926     return Signum.match(V) && OpL == OpR && Val.match(OpL);
lib/Analysis/IVDescriptors.cpp
  545   if ((m_FAdd(m_Value(Op1), m_Value(Op2)).match(I1)  ||
  546        m_FSub(m_Value(Op1), m_Value(Op2)).match(I1)) &&
  550   if (m_FMul(m_Value(Op1), m_Value(Op2)).match(I1) && (I1->isFast()))
lib/Transforms/Utils/PredicateInfo.cpp
  360           .match(II->getOperand(0))) {
unittests/IR/PatternMatch.cpp
  461   EXPECT_TRUE(m_Add(m_One(), m_Zero()).match(X));
  462   EXPECT_FALSE(m_Add(m_Zero(), m_One()).match(X));
  467   EXPECT_TRUE(m_c_Add(m_One(), m_Zero()).match(X));
  468   EXPECT_TRUE(m_c_Add(m_Zero(), m_One()).match(X));