Lines Matching refs:Cmp

119       static Kind getSwappedComparison(Kind Cmp) {  in getSwappedComparison()
120 assert ((!((Cmp & L) && (Cmp & G))) && "Malformed comparison operator"); in getSwappedComparison()
121 if ((Cmp & L) || (Cmp & G)) in getSwappedComparison()
122 return (Kind)(Cmp ^ (L|G)); in getSwappedComparison()
123 return Cmp; in getSwappedComparison()
126 static Kind getNegatedComparison(Kind Cmp) { in getNegatedComparison()
127 if ((Cmp & L) || (Cmp & G)) in getNegatedComparison()
128 return (Kind)((Cmp ^ (L | G)) ^ EQ); in getNegatedComparison()
129 if ((Cmp & NE) || (Cmp & EQ)) in getNegatedComparison()
130 return (Kind)(Cmp ^ (EQ | NE)); in getNegatedComparison()
134 static bool isSigned(Kind Cmp) { in isSigned()
135 return (Cmp & (L | G) && !(Cmp & U)); in isSigned()
138 static bool isUnsigned(Kind Cmp) { in isUnsigned()
139 return (Cmp & U); in isUnsigned()
180 int64_t IVBump, Comparison::Kind Cmp) const;
491 Comparison::Kind Cmp = (Comparison::Kind)0; in getComparisonKind() local
496 Cmp = Comparison::EQ; in getComparisonKind()
500 Cmp = Comparison::NE; in getComparisonKind()
503 Cmp = Comparison::LEs; in getComparisonKind()
506 Cmp = Comparison::LEu; in getComparisonKind()
511 Cmp = Comparison::GTu; in getComparisonKind()
516 Cmp = Comparison::GTs; in getComparisonKind()
521 return Cmp; in getComparisonKind()
636 Comparison::Kind Cmp; in getLoopTripCount() local
654 Cmp = getComparisonKind(CondOpc, InitialValue, EndValue, IVBump); in getLoopTripCount()
655 if (!Cmp) in getLoopTripCount()
658 Cmp = Comparison::getNegatedComparison(Cmp); in getLoopTripCount()
660 Cmp = Comparison::getSwappedComparison(Cmp); in getLoopTripCount()
677 return computeCount(L, InitialValue, EndValue, IVReg, IVBump, Cmp); in getLoopTripCount()
689 Comparison::Kind Cmp) const { in computeCount()
691 if (Cmp == Comparison::EQ) in computeCount()
714 bool CmpLess = Cmp & Comparison::L; in computeCount()
715 bool CmpGreater = Cmp & Comparison::G; in computeCount()
716 bool CmpHasEqual = Cmp & Comparison::EQ; in computeCount()
747 if (Cmp == Comparison::NE) { in computeCount()
837 if (Cmp != Comparison::NE) { in computeCount()
1429 Comparison::Kind Cmp = getComparisonKind(MI->getOpcode(), 0, 0, 0); in loopCountMayWrapOrUnderFlow() local
1430 if (Cmp == 0) in loopCountMayWrapOrUnderFlow()
1433 Cmp = Comparison::getNegatedComparison(Cmp); in loopCountMayWrapOrUnderFlow()
1435 Cmp = Comparison::getSwappedComparison(Cmp); in loopCountMayWrapOrUnderFlow()
1438 if (Comparison::isSigned(Cmp)) in loopCountMayWrapOrUnderFlow()
1444 if ((Cmp & Comparison::G) || Cmp == Comparison::NE) in loopCountMayWrapOrUnderFlow()
1765 Comparison::Kind Cmp = getComparisonKind(PredDef->getOpcode(), 0, 0, 0); in fixupInductionVariable() local
1766 if (!Cmp || Comparison::isUnsigned(Cmp)) in fixupInductionVariable()