Lines Matching refs:Cmp

147       static Kind getSwappedComparison(Kind Cmp) {  in getSwappedComparison()
148 assert ((!((Cmp & L) && (Cmp & G))) && "Malformed comparison operator"); in getSwappedComparison()
149 if ((Cmp & L) || (Cmp & G)) in getSwappedComparison()
150 return (Kind)(Cmp ^ (L|G)); in getSwappedComparison()
151 return Cmp; in getSwappedComparison()
154 static Kind getNegatedComparison(Kind Cmp) { in getNegatedComparison()
155 if ((Cmp & L) || (Cmp & G)) in getNegatedComparison()
156 return (Kind)((Cmp ^ (L | G)) ^ EQ); in getNegatedComparison()
157 if ((Cmp & NE) || (Cmp & EQ)) in getNegatedComparison()
158 return (Kind)(Cmp ^ (EQ | NE)); in getNegatedComparison()
162 static bool isSigned(Kind Cmp) { in isSigned()
163 return (Cmp & (L | G) && !(Cmp & U)); in isSigned()
166 static bool isUnsigned(Kind Cmp) { in isUnsigned()
167 return (Cmp & U); in isUnsigned()
207 int64_t IVBump, Comparison::Kind Cmp) const;
515 Comparison::Kind Cmp = (Comparison::Kind)0; in getComparisonKind() local
520 Cmp = Comparison::EQ; in getComparisonKind()
524 Cmp = Comparison::NE; in getComparisonKind()
527 Cmp = Comparison::LTs; in getComparisonKind()
530 Cmp = Comparison::LTu; in getComparisonKind()
534 Cmp = Comparison::LEs; in getComparisonKind()
538 Cmp = Comparison::LEu; in getComparisonKind()
543 Cmp = Comparison::GTs; in getComparisonKind()
548 Cmp = Comparison::GTu; in getComparisonKind()
551 Cmp = Comparison::GEs; in getComparisonKind()
554 Cmp = Comparison::GEs; in getComparisonKind()
559 return Cmp; in getComparisonKind()
675 Comparison::Kind Cmp; in getLoopTripCount() local
693 Cmp = getComparisonKind(CondOpc, InitialValue, EndValue, IVBump); in getLoopTripCount()
694 if (!Cmp) in getLoopTripCount()
697 Cmp = Comparison::getNegatedComparison(Cmp); in getLoopTripCount()
699 Cmp = Comparison::getSwappedComparison(Cmp); in getLoopTripCount()
722 return computeCount(L, InitialValue, EndValue, IVReg, IVBump, Cmp); in getLoopTripCount()
734 Comparison::Kind Cmp) const { in computeCount()
736 if (Cmp == Comparison::EQ) in computeCount()
759 bool CmpLess = Cmp & Comparison::L; in computeCount()
760 bool CmpGreater = Cmp & Comparison::G; in computeCount()
761 bool CmpHasEqual = Cmp & Comparison::EQ; in computeCount()
792 if (Cmp == Comparison::NE) { in computeCount()
882 if (Cmp != Comparison::NE) { in computeCount()
1463 Comparison::Kind Cmp = in loopCountMayWrapOrUnderFlow() local
1465 if (Cmp == 0) in loopCountMayWrapOrUnderFlow()
1468 Cmp = Comparison::getNegatedComparison(Cmp); in loopCountMayWrapOrUnderFlow()
1470 Cmp = Comparison::getSwappedComparison(Cmp); in loopCountMayWrapOrUnderFlow()
1473 if (Comparison::isSigned(Cmp)) in loopCountMayWrapOrUnderFlow()
1479 if ((Cmp & Comparison::G) || Cmp == Comparison::NE) in loopCountMayWrapOrUnderFlow()
1787 Comparison::Kind Cmp = in fixupInductionVariable() local
1789 if (!Cmp || Comparison::isUnsigned(Cmp)) in fixupInductionVariable()