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;
512 Comparison::Kind Cmp = (Comparison::Kind)0; in getComparisonKind() local
517 Cmp = Comparison::EQ; in getComparisonKind()
521 Cmp = Comparison::NE; in getComparisonKind()
524 Cmp = Comparison::LTs; in getComparisonKind()
527 Cmp = Comparison::LTu; in getComparisonKind()
531 Cmp = Comparison::LEs; in getComparisonKind()
535 Cmp = Comparison::LEu; in getComparisonKind()
540 Cmp = Comparison::GTs; in getComparisonKind()
545 Cmp = Comparison::GTu; in getComparisonKind()
548 Cmp = Comparison::GEs; in getComparisonKind()
551 Cmp = Comparison::GEs; in getComparisonKind()
556 return Cmp; in getComparisonKind()
671 Comparison::Kind Cmp; in getLoopTripCount() local
689 Cmp = getComparisonKind(CondOpc, InitialValue, EndValue, IVBump); in getLoopTripCount()
690 if (!Cmp) in getLoopTripCount()
693 Cmp = Comparison::getNegatedComparison(Cmp); in getLoopTripCount()
695 Cmp = Comparison::getSwappedComparison(Cmp); in getLoopTripCount()
718 return computeCount(L, InitialValue, EndValue, IVReg, IVBump, Cmp); in getLoopTripCount()
730 Comparison::Kind Cmp) const { in computeCount()
732 if (Cmp == Comparison::EQ) in computeCount()
755 bool CmpLess = Cmp & Comparison::L; in computeCount()
756 bool CmpGreater = Cmp & Comparison::G; in computeCount()
757 bool CmpHasEqual = Cmp & Comparison::EQ; in computeCount()
788 if (Cmp == Comparison::NE) { in computeCount()
878 if (Cmp != Comparison::NE) { in computeCount()
1462 Comparison::Kind Cmp = in loopCountMayWrapOrUnderFlow() local
1464 if (Cmp == 0) in loopCountMayWrapOrUnderFlow()
1467 Cmp = Comparison::getNegatedComparison(Cmp); in loopCountMayWrapOrUnderFlow()
1469 Cmp = Comparison::getSwappedComparison(Cmp); in loopCountMayWrapOrUnderFlow()
1472 if (Comparison::isSigned(Cmp)) in loopCountMayWrapOrUnderFlow()
1478 if ((Cmp & Comparison::G) || Cmp == Comparison::NE) in loopCountMayWrapOrUnderFlow()
1787 Comparison::Kind Cmp = in fixupInductionVariable() local
1789 if (!Cmp || Comparison::isUnsigned(Cmp)) in fixupInductionVariable()