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);
  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)) &&
 1013              R.match(I->getOperand(1));
 1015       return this->isOpType(CE->getOpcode()) && L.match(CE->getOperand(0)) &&
 1016              R.match(CE->getOperand(1));
 1134       if ((L.match(I->getOperand(0)) && R.match(I->getOperand(1))) ||
 1135           (Commutable && L.match(I->getOperand(1)) &&
unittests/IR/PatternMatch.cpp
  493   EXPECT_TRUE(m_ZExtOrSelf(m_One()).match(One32));
  494   EXPECT_TRUE(m_ZExtOrSelf(m_One()).match(One64Z));
  495   EXPECT_FALSE(m_ZExtOrSelf(m_One()).match(One64S));
  497   EXPECT_TRUE(m_SExtOrSelf(m_One()).match(One32));
  498   EXPECT_FALSE(m_SExtOrSelf(m_One()).match(One64Z));
  499   EXPECT_TRUE(m_SExtOrSelf(m_One()).match(One64S));
  501   EXPECT_FALSE(m_ZExtOrSExt(m_One()).match(One32));
  502   EXPECT_TRUE(m_ZExtOrSExt(m_One()).match(One64Z));
  503   EXPECT_TRUE(m_ZExtOrSExt(m_One()).match(One64S));
  505   EXPECT_TRUE(m_ZExtOrSExtOrSelf(m_One()).match(One32));
  506   EXPECT_TRUE(m_ZExtOrSExtOrSelf(m_One()).match(One64Z));
  507   EXPECT_TRUE(m_ZExtOrSExtOrSelf(m_One()).match(One64S));