/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | CmpInstAnalysis.cpp | 22 unsigned llvm::getICmpCode(const ICmpInst *ICI, bool InvertPred) { in getICmpCode() 23 ICmpInst::Predicate Pred = InvertPred ? ICI->getInversePredicate() in getICmpCode() 27 case ICmpInst::ICMP_UGT: return 1; // 001 in getICmpCode() 28 case ICmpInst::ICMP_SGT: return 1; // 001 in getICmpCode() 29 case ICmpInst::ICMP_EQ: return 2; // 010 in getICmpCode() 30 case ICmpInst::ICMP_UGE: return 3; // 011 in getICmpCode() 31 case ICmpInst::ICMP_SGE: return 3; // 011 in getICmpCode() 32 case ICmpInst::ICMP_ULT: return 4; // 100 in getICmpCode() 33 case ICmpInst::ICMP_SLT: return 4; // 100 in getICmpCode() 34 case ICmpInst::ICMP_NE: return 5; // 101 in getICmpCode() [all …]
|
D | InstructionSimplify.cpp | 78 ExpectedPred = ICmpInst::ICMP_NE; in foldSelectWithBinaryOp() 80 ExpectedPred = ICmpInst::ICMP_EQ; in foldSelectWithBinaryOp() 963 static bool isICmpTrue(ICmpInst::Predicate Pred, Value *LHS, Value *RHS, in isICmpTrue() 1019 return isICmpTrue(ICmpInst::ICMP_ULT, X, Y, Q, MaxRecurse); in isDivZero() 1386 static Value *simplifyUnsignedRangeCheck(ICmpInst *ZeroICmp, in simplifyUnsignedRangeCheck() 1387 ICmpInst *UnsignedICmp, bool IsAnd) { in simplifyUnsignedRangeCheck() 1390 ICmpInst::Predicate EqPred; in simplifyUnsignedRangeCheck() 1392 !ICmpInst::isEquality(EqPred)) in simplifyUnsignedRangeCheck() 1395 ICmpInst::Predicate UnsignedPred; in simplifyUnsignedRangeCheck() 1397 ICmpInst::isUnsigned(UnsignedPred)) in simplifyUnsignedRangeCheck() [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | CmpInstAnalysis.cpp | 44 unsigned llvm::getICmpCode(const ICmpInst *ICI, bool InvertPred) { in getICmpCode() 45 ICmpInst::Predicate Pred = InvertPred ? ICI->getInversePredicate() in getICmpCode() 49 case ICmpInst::ICMP_UGT: return 1; // 001 in getICmpCode() 50 case ICmpInst::ICMP_SGT: return 1; // 001 in getICmpCode() 51 case ICmpInst::ICMP_EQ: return 2; // 010 in getICmpCode() 52 case ICmpInst::ICMP_UGE: return 3; // 011 in getICmpCode() 53 case ICmpInst::ICMP_SGE: return 3; // 011 in getICmpCode() 54 case ICmpInst::ICMP_ULT: return 4; // 100 in getICmpCode() 55 case ICmpInst::ICMP_SLT: return 4; // 100 in getICmpCode() 56 case ICmpInst::ICMP_NE: return 5; // 101 in getICmpCode() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 66 static bool hasBranchUse(ICmpInst &I) { in hasBranchUse() 76 static bool isSignBitCheck(ICmpInst::Predicate Pred, const APInt &RHS, in isSignBitCheck() 79 case ICmpInst::ICMP_SLT: // True if LHS s< 0 in isSignBitCheck() 82 case ICmpInst::ICMP_SLE: // True if LHS s<= RHS and RHS == -1 in isSignBitCheck() 85 case ICmpInst::ICMP_SGT: // True if LHS s> -1 in isSignBitCheck() 88 case ICmpInst::ICMP_UGT: in isSignBitCheck() 92 case ICmpInst::ICMP_UGE: in isSignBitCheck() 105 static bool isSignTest(ICmpInst::Predicate &Pred, const APInt &C) { in isSignTest() 106 if (!ICmpInst::isSigned(Pred)) in isSignTest() 110 return ICmpInst::isRelational(Pred); in isSignTest() [all …]
|
D | InstCombineInternal.h | 359 Value *simplifyRangeCheck(ICmpInst *Cmp0, ICmpInst *Cmp1, bool Inverted); 368 Instruction *visitICmpInst(ICmpInst &I); 422 bool replacedSelectWithOperand(SelectInst *SI, const ICmpInst *Icmp, 482 Instruction *transformZExtICmp(ICmpInst *ICI, ZExtInst &CI, 485 Instruction *transformSExtICmp(ICmpInst *ICI, Instruction &CI); 545 Value *foldAndOfICmps(ICmpInst *LHS, ICmpInst *RHS, Instruction &CxtI); 546 Value *foldOrOfICmps(ICmpInst *LHS, ICmpInst *RHS, Instruction &CxtI); 547 Value *foldXorOfICmps(ICmpInst *LHS, ICmpInst *RHS); 554 Value *foldAndOrOfICmpsOfAndWithPow2(ICmpInst *LHS, ICmpInst *RHS, 808 ICmpInst::Predicate Cond, Instruction &I); [all …]
|
D | InstCombineAndOrXor.cpp | 58 ICmpInst::Predicate NewPred; in getNewICmpValue() 177 ICmpInst::Predicate Pred = Inside ? ICmpInst::ICMP_ULT : ICmpInst::ICMP_UGE; in insertRangeTest() 179 Pred = isSigned ? ICmpInst::getSignedPredicate(Pred) : Pred; in insertRangeTest() 234 ICmpInst::Predicate Pred) { in getMaskedICmpType() 238 bool IsEq = (Pred == ICmpInst::ICMP_EQ); in getMaskedICmpType() 315 Value *&D, Value *&E, ICmpInst *LHS, in getMaskedTypeForICmpPair() 316 ICmpInst *RHS, in getMaskedTypeForICmpPair() 317 ICmpInst::Predicate &PredL, in getMaskedTypeForICmpPair() 318 ICmpInst::Predicate &PredR) { in getMaskedTypeForICmpPair() 352 if (!ICmpInst::isEquality(PredL)) in getMaskedTypeForICmpPair() [all …]
|
D | InstCombineSelect.cpp | 72 !ICmpInst::isEquality(Pred)) in foldSelectBinOpIdentity() 75 bool IsEq = Pred == ICmpInst::ICMP_EQ; in foldSelectBinOpIdentity() 96 static Value *foldSelectICmpAnd(SelectInst &Sel, ICmpInst *Cmp, in foldSelectICmpAnd() 111 ICmpInst::Predicate Pred = Cmp->getPredicate(); in foldSelectICmpAnd() 112 if (ICmpInst::isEquality(Pred)) { in foldSelectICmpAnd() 124 assert(ICmpInst::isEquality(Pred) && "Not equality test?"); in foldSelectICmpAnd() 153 if (Pred == ICmpInst::ICMP_EQ) { in foldSelectICmpAnd() 160 if (Pred == ICmpInst::ICMP_NE) { in foldSelectICmpAnd() 199 ShouldNotVal ^= Pred == ICmpInst::ICMP_NE; in foldSelectICmpAnd() 451 static Instruction *foldSelectICmpAndAnd(Type *SelType, const ICmpInst *Cmp, in foldSelectICmpAndAnd() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 116 static bool isSignBitCheck(ICmpInst::Predicate pred, ConstantInt *RHS, in isSignBitCheck() 119 case ICmpInst::ICMP_SLT: // True if LHS s< 0 in isSignBitCheck() 122 case ICmpInst::ICMP_SLE: // True if LHS s<= RHS and RHS == -1 in isSignBitCheck() 125 case ICmpInst::ICMP_SGT: // True if LHS s> -1 in isSignBitCheck() 128 case ICmpInst::ICMP_UGT: in isSignBitCheck() 132 case ICmpInst::ICMP_UGE: in isSignBitCheck() 380 return new ICmpInst(ICmpInst::ICMP_EQ, Idx, FirstTrueIdx); in FoldCmpLoadFromIndexedGlobal() 400 return new ICmpInst(ICmpInst::ICMP_NE, Idx, FirstFalseIdx); in FoldCmpLoadFromIndexedGlobal() 422 return new ICmpInst(ICmpInst::ICMP_ULT, Idx, End); in FoldCmpLoadFromIndexedGlobal() 436 return new ICmpInst(ICmpInst::ICMP_UGT, Idx, End); in FoldCmpLoadFromIndexedGlobal() [all …]
|
D | InstCombineAndOrXor.cpp | 89 static unsigned getICmpCode(const ICmpInst *ICI) { in getICmpCode() 92 case ICmpInst::ICMP_UGT: return 1; // 001 in getICmpCode() 93 case ICmpInst::ICMP_SGT: return 1; // 001 in getICmpCode() 94 case ICmpInst::ICMP_EQ: return 2; // 010 in getICmpCode() 95 case ICmpInst::ICMP_UGE: return 3; // 011 in getICmpCode() 96 case ICmpInst::ICMP_SGE: return 3; // 011 in getICmpCode() 97 case ICmpInst::ICMP_ULT: return 4; // 100 in getICmpCode() 98 case ICmpInst::ICMP_SLT: return 4; // 100 in getICmpCode() 99 case ICmpInst::ICMP_NE: return 5; // 101 in getICmpCode() 100 case ICmpInst::ICMP_ULE: return 6; // 110 in getICmpCode() [all …]
|
D | InstCombineSelect.cpp | 29 ICmpInst *ICI = dyn_cast<ICmpInst>(SI->getCondition()); in MatchSelectPattern() 40 case ICmpInst::ICMP_UGT: in MatchSelectPattern() 41 case ICmpInst::ICMP_UGE: return SPF_UMAX; in MatchSelectPattern() 42 case ICmpInst::ICMP_SGT: in MatchSelectPattern() 43 case ICmpInst::ICMP_SGE: return SPF_SMAX; in MatchSelectPattern() 44 case ICmpInst::ICMP_ULT: in MatchSelectPattern() 45 case ICmpInst::ICMP_ULE: return SPF_UMIN; in MatchSelectPattern() 46 case ICmpInst::ICMP_SLT: in MatchSelectPattern() 47 case ICmpInst::ICMP_SLE: return SPF_SMIN; in MatchSelectPattern() 56 case ICmpInst::ICMP_UGT: in MatchSelectPattern() [all …]
|
D | InstCombine.h | 123 Value *FoldAndOfICmps(ICmpInst *LHS, ICmpInst *RHS); 126 Value *FoldOrOfICmps(ICmpInst *LHS, ICmpInst *RHS); 142 Instruction *visitICmpInst(ICmpInst &I); 143 Instruction *visitICmpInstWithCastAndCast(ICmpInst &ICI); 144 Instruction *visitICmpInstWithInstAndIntCst(ICmpInst &ICI, 147 Instruction *FoldICmpDivCst(ICmpInst &ICI, BinaryOperator *DivI, 149 Instruction *FoldICmpShrCst(ICmpInst &ICI, BinaryOperator *DivI, 151 Instruction *FoldICmpAddOpCst(ICmpInst &ICI, Value *X, ConstantInt *CI, 152 ICmpInst::Predicate Pred, Value *TheAdd); 154 ICmpInst::Predicate Cond, Instruction &I); [all …]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 119 static bool isBranchOnSignBitCheck(ICmpInst &I, bool isSignBit) { in isBranchOnSignBitCheck() 129 static bool isSignBitCheck(ICmpInst::Predicate Pred, ConstantInt *RHS, in isSignBitCheck() 132 case ICmpInst::ICMP_SLT: // True if LHS s< 0 in isSignBitCheck() 135 case ICmpInst::ICMP_SLE: // True if LHS s<= RHS and RHS == -1 in isSignBitCheck() 138 case ICmpInst::ICMP_SGT: // True if LHS s> -1 in isSignBitCheck() 141 case ICmpInst::ICMP_UGT: in isSignBitCheck() 145 case ICmpInst::ICMP_UGE: in isSignBitCheck() 157 static bool isSignTest(ICmpInst::Predicate &Pred, const ConstantInt *RHS) { in isSignTest() 158 if (!ICmpInst::isSigned(Pred)) in isSignTest() 162 return ICmpInst::isRelational(Pred); in isSignTest() [all …]
|
D | InstCombineAndOrXor.cpp | 73 ICmpInst::Predicate NewPred; in getNewICmpValue() 293 ICmpInst::ICMP_SLE:ICmpInst::ICMP_ULE), Lo, Hi))->getZExtValue() && in InsertRangeTest() 302 ICmpInst::Predicate pred = (isSigned ? in InsertRangeTest() 303 ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT); in InsertRangeTest() 320 ICmpInst::Predicate pred = (isSigned ? in InsertRangeTest() 321 ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT); in InsertRangeTest() 443 ICmpInst::Predicate SCC) in getTypeOfMaskedICmp() 448 bool icmp_eq = (SCC == ICmpInst::ICMP_EQ); in getTypeOfMaskedICmp() 530 static bool decomposeBitTestICmp(const ICmpInst *I, ICmpInst::Predicate &Pred, in decomposeBitTestICmp() 539 case ICmpInst::ICMP_SLT: in decomposeBitTestICmp() [all …]
|
D | InstCombineInternal.h | 249 Value *simplifyRangeCheck(ICmpInst *Cmp0, ICmpInst *Cmp1, bool Inverted); 250 Value *FoldAndOfICmps(ICmpInst *LHS, ICmpInst *RHS); 253 Value *FoldOrOfICmps(ICmpInst *LHS, ICmpInst *RHS, Instruction *CxtI); 271 Instruction *visitICmpInst(ICmpInst &I); 272 Instruction *visitICmpInstWithCastAndCast(ICmpInst &ICI); 273 Instruction *visitICmpInstWithInstAndIntCst(ICmpInst &ICI, Instruction *LHS, 275 Instruction *FoldICmpDivCst(ICmpInst &ICI, BinaryOperator *DivI, 277 Instruction *FoldICmpShrCst(ICmpInst &ICI, BinaryOperator *DivI, 279 Instruction *FoldICmpCstShrCst(ICmpInst &I, Value *Op, Value *A, 281 Instruction *FoldICmpCstShlCst(ICmpInst &I, Value *Op, Value *A, [all …]
|
D | InstCombineSelect.cpp | 48 return ICmpInst::ICMP_SLT; in getCmpPredicateForMinMax() 50 return ICmpInst::ICMP_ULT; in getCmpPredicateForMinMax() 52 return ICmpInst::ICMP_SGT; in getCmpPredicateForMinMax() 54 return ICmpInst::ICMP_UGT; in getCmpPredicateForMinMax() 312 const ICmpInst *IC = dyn_cast<ICmpInst>(SI.getCondition()); in foldSelectICmpAndOr() 350 ICmpInst::Predicate Pred = IC->getPredicate(); in foldSelectICmpAndOr() 351 if ((Pred == ICmpInst::ICMP_NE && OrOnFalseVal) || in foldSelectICmpAndOr() 352 (Pred == ICmpInst::ICMP_EQ && OrOnTrueVal)) in foldSelectICmpAndOr() 370 static Value *foldSelectCttzCtlz(ICmpInst *ICI, Value *TrueVal, Value *FalseVal, in foldSelectCttzCtlz() 372 ICmpInst::Predicate Pred = ICI->getPredicate(); in foldSelectCttzCtlz() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | ConstantFold.cpp | 1411 static ICmpInst::Predicate areGlobalsPotentiallyEqual(const GlobalValue *GV1, in areGlobalsPotentiallyEqual() 1431 return ICmpInst::ICMP_NE; in areGlobalsPotentiallyEqual() 1432 return ICmpInst::BAD_ICMP_PREDICATE; in areGlobalsPotentiallyEqual() 1447 static ICmpInst::Predicate evaluateICmpRelation(Constant *V1, Constant *V2, in evaluateICmpRelation() 1451 if (V1 == V2) return ICmpInst::ICMP_EQ; in evaluateICmpRelation() 1460 ICmpInst::Predicate pred = ICmpInst::ICMP_EQ; in evaluateICmpRelation() 1464 pred = isSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT; in evaluateICmpRelation() 1468 pred = isSigned ? ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT; in evaluateICmpRelation() 1474 return ICmpInst::BAD_ICMP_PREDICATE; in evaluateICmpRelation() 1478 ICmpInst::Predicate SwappedRelation = in evaluateICmpRelation() [all …]
|
/external/llvm/lib/IR/ |
D | ConstantFold.cpp | 1395 static ICmpInst::Predicate areGlobalsPotentiallyEqual(const GlobalValue *GV1, in areGlobalsPotentiallyEqual() 1415 return ICmpInst::ICMP_NE; in areGlobalsPotentiallyEqual() 1416 return ICmpInst::BAD_ICMP_PREDICATE; in areGlobalsPotentiallyEqual() 1431 static ICmpInst::Predicate evaluateICmpRelation(Constant *V1, Constant *V2, in evaluateICmpRelation() 1435 if (V1 == V2) return ICmpInst::ICMP_EQ; in evaluateICmpRelation() 1444 ICmpInst::Predicate pred = ICmpInst::ICMP_EQ; in evaluateICmpRelation() 1448 pred = isSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT; in evaluateICmpRelation() 1452 pred = isSigned ? ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT; in evaluateICmpRelation() 1458 return ICmpInst::BAD_ICMP_PREDICATE; in evaluateICmpRelation() 1462 ICmpInst::Predicate SwappedRelation = in evaluateICmpRelation() [all …]
|
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
D | ConstantFold.cpp | 1600 static ICmpInst::Predicate evaluateICmpRelation(Constant *V1, Constant *V2, in evaluateICmpRelation() 1604 if (V1 == V2) return ICmpInst::ICMP_EQ; in evaluateICmpRelation() 1613 ICmpInst::Predicate pred = ICmpInst::ICMP_EQ; in evaluateICmpRelation() 1617 pred = isSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT; in evaluateICmpRelation() 1621 pred = isSigned ? ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT; in evaluateICmpRelation() 1627 return ICmpInst::BAD_ICMP_PREDICATE; in evaluateICmpRelation() 1631 ICmpInst::Predicate SwappedRelation = in evaluateICmpRelation() 1633 if (SwappedRelation != ICmpInst::BAD_ICMP_PREDICATE) in evaluateICmpRelation() 1634 return ICmpInst::getSwappedPredicate(SwappedRelation); in evaluateICmpRelation() 1638 ICmpInst::Predicate SwappedRelation = in evaluateICmpRelation() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | LoopPredication.cpp | 225 ICmpInst::Predicate Pred; 228 LoopICmp(ICmpInst::Predicate Pred, const SCEVAddRecExpr *IV, in LoopICmp() 247 Optional<LoopICmp> parseLoopICmp(ICmpInst *ICI) { in parseLoopICmp() 251 Optional<LoopICmp> parseLoopICmp(ICmpInst::Predicate Pred, Value *LHS, 258 ICmpInst::Predicate Pred, const SCEV *LHS, const SCEV *RHS, 261 Optional<Value *> widenICmpRangeCheck(ICmpInst *ICI, SCEVExpander &Expander, 354 LoopPredication::parseLoopICmp(ICmpInst::Predicate Pred, Value *LHS, in parseLoopICmp() 367 Pred = ICmpInst::getSwappedPredicate(Pred); in parseLoopICmp() 379 ICmpInst::Predicate Pred, const SCEV *LHS, in expandCheck() 455 ICmpInst::getFlippedStrictnessPredicate(LatchCheck.Pred); in widenICmpRangeCheckIncrementingLoop() [all …]
|
D | InductiveRangeCheckElimination.cpp | 161 static RangeCheckKind parseRangeCheckICmp(Loop *L, ICmpInst *ICI, 216 return SE.isKnownPredicate(ICmpInst::ICMP_SGE, Begin, End); in isEmpty() 218 return SE.isKnownPredicate(ICmpInst::ICMP_UGE, Begin, End); in isEmpty() 312 InductiveRangeCheck::parseRangeCheckICmp(Loop *L, ICmpInst *ICI, in parseRangeCheckICmp() 319 ICmpInst::Predicate Pred = ICI->getPredicate(); in parseRangeCheckICmp() 327 case ICmpInst::ICMP_SLE: in parseRangeCheckICmp() 330 case ICmpInst::ICMP_SGE: in parseRangeCheckICmp() 338 case ICmpInst::ICMP_SLT: in parseRangeCheckICmp() 341 case ICmpInst::ICMP_SGT: in parseRangeCheckICmp() 355 case ICmpInst::ICMP_ULT: in parseRangeCheckICmp() [all …]
|
/external/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 1459 static Value *simplifyUnsignedRangeCheck(ICmpInst *ZeroICmp, in simplifyUnsignedRangeCheck() 1460 ICmpInst *UnsignedICmp, bool IsAnd) { in simplifyUnsignedRangeCheck() 1463 ICmpInst::Predicate EqPred; in simplifyUnsignedRangeCheck() 1465 !ICmpInst::isEquality(EqPred)) in simplifyUnsignedRangeCheck() 1468 ICmpInst::Predicate UnsignedPred; in simplifyUnsignedRangeCheck() 1470 ICmpInst::isUnsigned(UnsignedPred)) in simplifyUnsignedRangeCheck() 1474 ICmpInst::isUnsigned(UnsignedPred)) in simplifyUnsignedRangeCheck() 1475 UnsignedPred = ICmpInst::getSwappedPredicate(UnsignedPred); in simplifyUnsignedRangeCheck() 1481 if (UnsignedPred == ICmpInst::ICMP_ULT && EqPred == ICmpInst::ICMP_NE) in simplifyUnsignedRangeCheck() 1486 if (UnsignedPred == ICmpInst::ICMP_UGE && !IsAnd) { in simplifyUnsignedRangeCheck() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | SimplifyIndVar.cpp | 79 void eliminateIVComparison(ICmpInst *ICmp, Value *IVOperand); 153 void SimplifyIndvar::eliminateIVComparison(ICmpInst *ICmp, Value *IVOperand) { in eliminateIVComparison() 155 ICmpInst::Predicate Pred = ICmp->getPredicate(); in eliminateIVComparison() 160 Pred = ICmpInst::getSwappedPredicate(Pred); in eliminateIVComparison() 176 else if (SE->isKnownPredicate(ICmpInst::getInversePredicate(Pred), S, X)) in eliminateIVComparison() 208 SE->isKnownPredicate(IsSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT, in eliminateIVRemainder() 219 ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT, in eliminateIVRemainder() 223 ICmpInst *ICmp = new ICmpInst(Rem, ICmpInst::ICMP_EQ, in eliminateIVRemainder() 248 if (ICmpInst *ICmp = dyn_cast<ICmpInst>(UseInst)) { in eliminateIVUser() 417 if (ICmpInst *ICmp = dyn_cast<ICmpInst>(UseInst)) { in simplifyIVUsers()
|
D | LowerSwitch.cpp | 162 ICmpInst* Comp = new ICmpInst(ICmpInst::ICMP_SLT, in switchConvert() 185 ICmpInst* Comp = NULL; in newLeafBlock() 188 Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_EQ, Val, in newLeafBlock() 194 Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_SLE, Val, Leaf.High, in newLeafBlock() 198 Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_ULE, Val, Leaf.High, in newLeafBlock() 207 Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_ULE, Add, UpperBound, in newLeafBlock()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | SimplifyIndVar.cpp | 86 bool makeIVComparisonInvariant(ICmpInst *ICmp, Value *IVOperand); 87 void eliminateIVComparison(ICmpInst *ICmp, Value *IVOperand); 165 bool SimplifyIndvar::makeIVComparisonInvariant(ICmpInst *ICmp, in makeIVComparisonInvariant() 168 ICmpInst::Predicate Pred = ICmp->getPredicate(); in makeIVComparisonInvariant() 173 Pred = ICmpInst::getSwappedPredicate(Pred); in makeIVComparisonInvariant() 182 ICmpInst::Predicate InvariantPredicate; in makeIVComparisonInvariant() 235 void SimplifyIndvar::eliminateIVComparison(ICmpInst *ICmp, Value *IVOperand) { in eliminateIVComparison() 237 ICmpInst::Predicate Pred = ICmp->getPredicate(); in eliminateIVComparison() 238 ICmpInst::Predicate OriginalPred = Pred; in eliminateIVComparison() 243 Pred = ICmpInst::getSwappedPredicate(Pred); in eliminateIVComparison() [all …]
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | Analysis.cpp | 184 ISD::CondCode llvm::getICmpCondCode(ICmpInst::Predicate Pred) { in getICmpCondCode() 186 case ICmpInst::ICMP_EQ: return ISD::SETEQ; in getICmpCondCode() 187 case ICmpInst::ICMP_NE: return ISD::SETNE; in getICmpCondCode() 188 case ICmpInst::ICMP_SLE: return ISD::SETLE; in getICmpCondCode() 189 case ICmpInst::ICMP_ULE: return ISD::SETULE; in getICmpCondCode() 190 case ICmpInst::ICMP_SGE: return ISD::SETGE; in getICmpCondCode() 191 case ICmpInst::ICMP_UGE: return ISD::SETUGE; in getICmpCondCode() 192 case ICmpInst::ICMP_SLT: return ISD::SETLT; in getICmpCondCode() 193 case ICmpInst::ICMP_ULT: return ISD::SETULT; in getICmpCondCode() 194 case ICmpInst::ICMP_SGT: return ISD::SETGT; in getICmpCondCode() [all …]
|