/external/llvm/lib/Transforms/Utils/ |
CmpInstAnalysis.cpp | 44 unsigned llvm::getICmpCode(const ICmpInst *ICI, bool InvertPred) { 45 ICmpInst::Predicate Pred = InvertPred ? ICI->getInversePredicate() 49 case ICmpInst::ICMP_UGT: return 1; // 001 50 case ICmpInst::ICMP_SGT: return 1; // 001 51 case ICmpInst::ICMP_EQ: return 2; // 010 52 case ICmpInst::ICMP_UGE: return 3; // 011 53 case ICmpInst::ICMP_SGE: return 3; // 011 54 case ICmpInst::ICMP_ULT: return 4; // 100 55 case ICmpInst::ICMP_SLT: return 4; // 100 56 case ICmpInst::ICMP_NE: return 5; // 10 [all...] |
SimplifyIndVar.cpp | 75 void eliminateIVComparison(ICmpInst *ICmp, Value *IVOperand); 153 void SimplifyIndvar::eliminateIVComparison(ICmpInst *ICmp, Value *IVOperand) { 155 ICmpInst::Predicate Pred = ICmp->getPredicate(); 160 Pred = ICmpInst::getSwappedPredicate(Pred); 172 ICmpInst::Predicate InvariantPredicate; 181 } else if (SE->isKnownPredicate(ICmpInst::getInversePredicate(Pred), S, X)) { 254 SE->isKnownPredicate(IsSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT, 264 ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT [all...] |
LowerSwitch.cpp | 280 ICmpInst* Comp = new ICmpInst(ICmpInst::ICMP_SLT, 310 ICmpInst* Comp = nullptr; 313 Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_EQ, Val, 319 Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_SLE, Val, Leaf.High, 323 Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_ULE, Val, Leaf.High [all...] |
LoopUtils.cpp | 249 !isa<ICmpInst>(Cur) && !isa<FCmpInst>(Cur) && 272 (isa<ICmpInst>(Cur) || isa<SelectInst>(Cur))) 318 ((!isa<FCmpInst>(UI) && !isa<ICmpInst>(UI) && 368 assert((isa<ICmpInst>(I) || isa<FCmpInst>(I) || isa<SelectInst>(I)) && 375 if ((Cmp = dyn_cast<ICmpInst>(I)) || (Cmp = dyn_cast<FCmpInst>(I))) { 384 if (!(Cmp = dyn_cast<ICmpInst>(I->getOperand(0))) &&
|
/external/llvm/include/llvm/Transforms/Utils/ |
CmpInstAnalysis.h | 21 class ICmpInst; 47 unsigned getICmpCode(const ICmpInst *ICI, bool InvertPred = false);
|
/external/llvm/lib/Transforms/InstCombine/ |
InstCombineCompares.cpp | 120 static bool isSignBitCheck(ICmpInst::Predicate pred, ConstantInt *RHS, 123 case ICmpInst::ICMP_SLT: // True if LHS s< 0 126 case ICmpInst::ICMP_SLE: // True if LHS s<= RHS and RHS == -1 129 case ICmpInst::ICMP_SGT: // True if LHS s> -1 132 case ICmpInst::ICMP_UGT: 136 case ICmpInst::ICMP_UGE: 148 static bool isSignTest(ICmpInst::Predicate &pred, const ConstantInt *RHS) { 149 if (!ICmpInst::isSigned(pred)) 153 return ICmpInst::isRelational(pred); 156 if (pred == ICmpInst::ICMP_SLT) [all...] |
InstCombineAndOrXor.cpp | 73 ICmpInst::Predicate NewPred; 303 ICmpInst::ICMP_SLE:ICmpInst::ICMP_ULE), Lo, Hi))->getZExtValue() && 312 ICmpInst::Predicate pred = (isSigned ? 313 ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT); 330 ICmpInst::Predicate pred = (isSigned ? 331 ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT); 453 ICmpInst::Predicate SCC [all...] |
InstCombineInternal.h | 246 Value *simplifyRangeCheck(ICmpInst *Cmp0, ICmpInst *Cmp1, bool Inverted); 247 Value *FoldAndOfICmps(ICmpInst *LHS, ICmpInst *RHS); 250 Value *FoldOrOfICmps(ICmpInst *LHS, ICmpInst *RHS, Instruction *CxtI); 268 Instruction *visitICmpInst(ICmpInst &I); 269 Instruction *visitICmpInstWithCastAndCast(ICmpInst &ICI); 270 Instruction *visitICmpInstWithInstAndIntCst(ICmpInst &ICI, Instruction *LHS, 272 Instruction *FoldICmpDivCst(ICmpInst &ICI, BinaryOperator *DivI [all...] |
InstCombineSelect.cpp | 48 return ICmpInst::ICMP_SLT; 50 return ICmpInst::ICMP_ULT; 52 return ICmpInst::ICMP_SGT; 54 return ICmpInst::ICMP_UGT; 301 const ICmpInst *IC = dyn_cast<ICmpInst>(SI.getCondition()); 339 ICmpInst::Predicate Pred = IC->getPredicate(); 340 if ((Pred == ICmpInst::ICMP_NE && OrOnFalseVal) || 341 (Pred == ICmpInst::ICMP_EQ && OrOnTrueVal)) 359 static Value *foldSelectCttzCtlz(ICmpInst *ICI, Value *TrueVal, Value *FalseVal [all...] |
/external/llvm/lib/IR/ |
ConstantFold.cpp | [all...] |
/external/llvm/lib/Analysis/ |
InstructionSimplify.cpp | [all...] |
ScalarEvolution.cpp | [all...] |
LazyValueInfo.cpp | 778 static bool getValueFromFromCondition(Value *Val, ICmpInst *ICI, 800 if (ICmpInst *ICI = dyn_cast<ICmpInst>(C)) { 896 bool getValueFromFromCondition(Value *Val, ICmpInst *ICI, 902 if (isTrueDest == (ICI->getPredicate() == ICmpInst::ICMP_EQ)) 912 if (ICI->getPredicate() == ICmpInst::ICMP_ULT) 962 if (ICmpInst *ICI = dyn_cast<ICmpInst>(BI->getCondition())) [all...] |
ValueTracking.cpp | 515 inline match_combine_or<CmpClass_match<LHS, RHS, ICmpInst, ICmpInst::Predicate>, 516 CmpClass_match<RHS, LHS, ICmpInst, ICmpInst::Predicate>> 517 m_c_ICmp(ICmpInst::Predicate &Pred, const LHS &L, const RHS &R) { 545 static void computeKnownBitsFromTrueCondition(Value *V, ICmpInst *Cmp, 567 case ICmpInst::ICMP_SGT: 577 case ICmpInst::ICMP_EQ: 590 case ICmpInst::ICMP_ULE: 599 case ICmpInst::ICMP_ULT [all...] |
/external/llvm/include/llvm/Analysis/ |
ScalarEvolution.h | 611 /// execute if its exit condition were a conditional branch of the ICmpInst 614 ICmpInst *ExitCond, 631 ICmpInst::Predicate p); 642 ICmpInst::Predicate Pred); 678 bool isImpliedCond(ICmpInst::Predicate Pred, 686 bool isImpliedCond(ICmpInst::Predicate Pred, const SCEV *LHS, 687 const SCEV *RHS, ICmpInst::Predicate FoundPred, 693 bool isImpliedCondOperands(ICmpInst::Predicate Pred, 700 bool isImpliedCondOperandsHelper(ICmpInst::Predicate Pred, 708 bool isImpliedCondOperandsViaRanges(ICmpInst::Predicate Pred [all...] |
/external/llvm/lib/Target/NVPTX/ |
NVPTXLowerAggrCopies.cpp | 144 ICmpInst *PtrCompare = new ICmpInst(ConvertedInst, ICmpInst::ICMP_ULT, 164 ICmpInst *CompareN = 165 new ICmpInst(OrigBB->getTerminator(), ICmpInst::ICMP_EQ, CopyLen,
|
/external/llvm/lib/Transforms/Scalar/ |
InductiveRangeCheckElimination.cpp | 125 static RangeCheckKind parseRangeCheckICmp(Loop *L, ICmpInst *ICI, 266 InductiveRangeCheck::parseRangeCheckICmp(Loop *L, ICmpInst *ICI, 281 ICmpInst::Predicate Pred = ICI->getPredicate(); 289 case ICmpInst::ICMP_SLE: 292 case ICmpInst::ICMP_SGE: 299 case ICmpInst::ICMP_SLT: 302 case ICmpInst::ICMP_SGT: 315 case ICmpInst::ICMP_ULT: 318 case ICmpInst::ICMP_UGT: 344 ICmpInst *ICmpA = dyn_cast<ICmpInst>(A), *ICmpB = dyn_cast<ICmpInst>(B) [all...] |
LowerExpectIntrinsic.cpp | 89 ICmpInst *CmpI = dyn_cast<ICmpInst>(BI.getCondition());
|
LoopIdiomRecognize.cpp | 732 ICmpInst *Cond = dyn_cast<ICmpInst>(BI->getCondition()); 740 ICmpInst::Predicate Pred = Cond->getPredicate(); 741 if ((Pred == ICmpInst::ICMP_NE && BI->getSuccessor(0) == LoopEntry) || 742 (Pred == ICmpInst::ICMP_EQ && BI->getSuccessor(1) == LoopEntry)) [all...] |
/external/llvm/examples/Fibonacci/ |
fibonacci.cpp | 64 Value *CondInst = new ICmpInst(*BB, ICmpInst::ICMP_SLE, ArgX, Two, "cond");
|
/external/llvm/lib/CodeGen/ |
Analysis.cpp | 200 ISD::CondCode llvm::getICmpCondCode(ICmpInst::Predicate Pred) { 202 case ICmpInst::ICMP_EQ: return ISD::SETEQ; 203 case ICmpInst::ICMP_NE: return ISD::SETNE; 204 case ICmpInst::ICMP_SLE: return ISD::SETLE; 205 case ICmpInst::ICMP_ULE: return ISD::SETULE; 206 case ICmpInst::ICMP_SGE: return ISD::SETGE; 207 case ICmpInst::ICMP_UGE: return ISD::SETUGE; 208 case ICmpInst::ICMP_SLT: return ISD::SETLT; 209 case ICmpInst::ICMP_ULT: return ISD::SETULT; 210 case ICmpInst::ICMP_SGT: return ISD::SETGT [all...] |
/external/llvm/include/llvm/CodeGen/ |
Analysis.h | 96 ISD::CondCode getICmpCondCode(ICmpInst::Predicate Pred);
|
/external/llvm/include/llvm/IR/ |
PatternMatch.h | 725 inline CmpClass_match<LHS, RHS, ICmpInst, ICmpInst::Predicate> 726 m_ICmp(ICmpInst::Predicate &Pred, const LHS &L, const RHS &R) { 727 return CmpClass_match<LHS, RHS, ICmpInst, ICmpInst::Predicate>(Pred, L, R); [all...] |
/external/llvm/examples/BrainF/ |
BrainF.cpp | 436 ICmpInst *test_0 = new ICmpInst(*testbb, ICmpInst::ICMP_EQ, tape_0,
|
/external/llvm/unittests/IR/ |
ConstantRangeTest.cpp | 516 EXPECT_TRUE(ConstantRange::makeAllowedICmpRegion(ICmpInst::ICMP_SGT, SMax) 525 EXPECT_EQ(ConstantRange::makeSatisfyingICmpRegion(ICmpInst::ICMP_NE, LowHalf), 529 ConstantRange::makeSatisfyingICmpRegion(ICmpInst::ICMP_NE, HighHalf), 532 EXPECT_TRUE(ConstantRange::makeSatisfyingICmpRegion(ICmpInst::ICMP_EQ, 537 EXPECT_EQ(ConstantRange::makeSatisfyingICmpRegion(ICmpInst::ICMP_ULT, 541 EXPECT_EQ(ConstantRange::makeSatisfyingICmpRegion(ICmpInst::ICMP_ULE, 545 EXPECT_EQ(ConstantRange::makeSatisfyingICmpRegion(ICmpInst::ICMP_UGT, 549 EXPECT_EQ(ConstantRange::makeSatisfyingICmpRegion(ICmpInst::ICMP_UGE, 556 ConstantRange::makeSatisfyingICmpRegion(ICmpInst::ICMP_SLT, SignedSample), 560 ConstantRange::makeSatisfyingICmpRegion(ICmpInst::ICMP_SLE, SignedSample) [all...] |