|
reference, declaration → definition
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);
118 if (L.match(V))
120 if (R.match(V))
745 return (L.match(I->getOperand(0)) && R.match(I->getOperand(1))) ||
746 (Commutable && L.match(I->getOperand(1)) &&
751 ((L.match(CE->getOperand(0)) && R.match(CE->getOperand(1))) ||
752 (Commutable && L.match(CE->getOperand(1)) &&
lib/Analysis/IVDescriptors.cpp 489 if (m_UMin(m_Value(CmpLeft), m_Value(CmpRight)).match(Select))
491 else if (m_UMax(m_Value(CmpLeft), m_Value(CmpRight)).match(Select))
493 else if (m_SMax(m_Value(CmpLeft), m_Value(CmpRight)).match(Select))
495 else if (m_SMin(m_Value(CmpLeft), m_Value(CmpRight)).match(Select))
497 else if (m_OrdFMin(m_Value(CmpLeft), m_Value(CmpRight)).match(Select))
499 else if (m_OrdFMax(m_Value(CmpLeft), m_Value(CmpRight)).match(Select))
501 else if (m_UnordFMin(m_Value(CmpLeft), m_Value(CmpRight)).match(Select))
503 else if (m_UnordFMax(m_Value(CmpLeft), m_Value(CmpRight)).match(Select))
lib/Analysis/TargetTransformInfo.cpp 899 if (m_SMin(m_Value(L), m_Value(R)).match(SI) ||
900 m_SMax(m_Value(L), m_Value(R)).match(SI) ||
901 m_OrdFMin(m_Value(L), m_Value(R)).match(SI) ||
902 m_OrdFMax(m_Value(L), m_Value(R)).match(SI) ||
903 m_UnordFMin(m_Value(L), m_Value(R)).match(SI) ||
904 m_UnordFMax(m_Value(L), m_Value(R)).match(SI)) {
908 if (m_UMin(m_Value(L), m_Value(R)).match(SI) ||
909 m_UMax(m_Value(L), m_Value(R)).match(SI)) {
lib/Transforms/Vectorize/SLPVectorizer.cpp 6146 if (m_UMin(m_Value(LHS), m_Value(RHS)).match(Select)) {
6148 } else if (m_SMin(m_Value(LHS), m_Value(RHS)).match(Select)) {
6150 } else if (m_OrdFMin(m_Value(LHS), m_Value(RHS)).match(Select) ||
6151 m_UnordFMin(m_Value(LHS), m_Value(RHS)).match(Select)) {
6155 } else if (m_UMax(m_Value(LHS), m_Value(RHS)).match(Select)) {
6157 } else if (m_SMax(m_Value(LHS), m_Value(RHS)).match(Select)) {
6159 } else if (m_OrdFMax(m_Value(LHS), m_Value(RHS)).match(Select) ||
6160 m_UnordFMax(m_Value(LHS), m_Value(RHS)).match(Select)) {
unittests/IR/PatternMatch.cpp 588 .match(IRB.CreateSelect(IRB.CreateFCmpOLT(L, R), L, R)));
594 .match(IRB.CreateSelect(IRB.CreateFCmpOLE(L, R), L, R)));
600 .match(IRB.CreateSelect(IRB.CreateFCmpOGE(L, R), L, R)));
604 .match(IRB.CreateSelect(IRB.CreateFCmpOGT(L, R), L, R)));
615 .match(IRB.CreateSelect(IRB.CreateFCmpOGE(L, R), R, L)));
617 .match(IRB.CreateSelect(IRB.CreateFCmpUGE(L, R), R, L)));
623 .match(IRB.CreateSelect(IRB.CreateFCmpOGT(L, R), R, L)));
625 .match(IRB.CreateSelect(IRB.CreateFCmpUGT(L, R), R, L)));
638 .match(IRB.CreateSelect(IRB.CreateFCmpOGT(L, R), L, R)));
644 .match(IRB.CreateSelect(IRB.CreateFCmpOGE(L, R), L, R)));
650 .match(IRB.CreateSelect(IRB.CreateFCmpOLE(L, R), L, R)));
654 .match(IRB.CreateSelect(IRB.CreateFCmpOLT(L, R), L, R)));
666 .match(IRB.CreateSelect(IRB.CreateFCmpOLE(L, R), R, L)));
668 .match(IRB.CreateSelect(IRB.CreateFCmpULE(L, R), R, L)));
674 .match(IRB.CreateSelect(IRB.CreateFCmpOLT(L, R), R, L)));
676 .match(IRB.CreateSelect(IRB.CreateFCmpULT(L, R), R, L)));
689 .match(IRB.CreateSelect(IRB.CreateFCmpULT(L, R), L, R)));
695 .match(IRB.CreateSelect(IRB.CreateFCmpULE(L, R), L, R)));
701 .match(IRB.CreateSelect(IRB.CreateFCmpUGE(L, R), L, R)));
705 .match(IRB.CreateSelect(IRB.CreateFCmpUGT(L, R), L, R)));
716 .match(IRB.CreateSelect(IRB.CreateFCmpUGE(L, R), R, L)));
718 .match(IRB.CreateSelect(IRB.CreateFCmpOGE(L, R), R, L)));
724 .match(IRB.CreateSelect(IRB.CreateFCmpUGT(L, R), R, L)));
726 .match(IRB.CreateSelect(IRB.CreateFCmpOGT(L, R), R, L)));
739 .match(IRB.CreateSelect(IRB.CreateFCmpUGT(L, R), L, R)));
745 .match(IRB.CreateSelect(IRB.CreateFCmpUGE(L, R), L, R)));
751 .match(IRB.CreateSelect(IRB.CreateFCmpULE(L, R), L, R)));
755 .match(IRB.CreateSelect(IRB.CreateFCmpULT(L, R), L, R)));
766 .match(IRB.CreateSelect(IRB.CreateFCmpULE(L, R), R, L)));
768 .match(IRB.CreateSelect(IRB.CreateFCmpOLE(L, R), R, L)));
774 .match(IRB.CreateSelect(IRB.CreateFCmpULT(L, R), R, L)));
776 .match(IRB.CreateSelect(IRB.CreateFCmpOLT(L, R), R, L)));