/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); 149 void SimplifyIndvar::eliminateIVComparison(ICmpInst *ICmp, Value *IVOperand) { 151 ICmpInst::Predicate Pred = ICmp->getPredicate(); 156 Pred = ICmpInst::getSwappedPredicate(Pred); 172 else if (SE->isKnownPredicate(ICmpInst::getInversePredicate(Pred), S, X)) 204 SE->isKnownPredicate(IsSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT, 215 ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT, 219 ICmpInst *ICmp = new ICmpInst(Rem, ICmpInst::ICMP_EQ [all...] |
LowerSwitch.cpp | 150 ICmpInst* Comp = new ICmpInst(ICmpInst::ICMP_ULT, 173 ICmpInst* Comp = NULL; 176 Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_EQ, Val, 182 Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_SLE, Val, Leaf.High, 186 Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_ULE, Val, Leaf.High [all...] |
LoopUnrollRuntime.cpp | 110 new ICmpInst(InsertPt, ICmpInst::ICMP_ULT, TripCount, 290 Value *BranchVal = new ICmpInst(PreHeaderBR, 291 ICmpInst::ICMP_NE, ModVal, 346 Value *BranchVal = new ICmpInst(*NewBB, ICmpInst::ICMP_EQ, ModVal,
|
LowerExpectIntrinsic.cpp | 101 ICmpInst *CmpI = dyn_cast<ICmpInst>(BI->getCondition());
|
/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 | 117 static bool isSignBitCheck(ICmpInst::Predicate pred, ConstantInt *RHS, 120 case ICmpInst::ICMP_SLT: // True if LHS s< 0 123 case ICmpInst::ICMP_SLE: // True if LHS s<= RHS and RHS == -1 126 case ICmpInst::ICMP_SGT: // True if LHS s> -1 129 case ICmpInst::ICMP_UGT: 133 case ICmpInst::ICMP_UGE: 145 static bool isSignTest(ICmpInst::Predicate &pred, const ConstantInt *RHS) { 146 if (!ICmpInst::isSigned(pred)) 150 return ICmpInst::isRelational(pred); 153 if (pred == ICmpInst::ICMP_SLT) [all...] |
InstCombineSelect.cpp | 29 ICmpInst *ICI = dyn_cast<ICmpInst>(SI->getCondition()); 40 case ICmpInst::ICMP_UGT: 41 case ICmpInst::ICMP_UGE: return SPF_UMAX; 42 case ICmpInst::ICMP_SGT: 43 case ICmpInst::ICMP_SGE: return SPF_SMAX; 44 case ICmpInst::ICMP_ULT: 45 case ICmpInst::ICMP_ULE: return SPF_UMIN; 46 case ICmpInst::ICMP_SLT: 47 case ICmpInst::ICMP_SLE: return SPF_SMIN [all...] |
InstCombineAndOrXor.cpp | 99 ICmpInst::Predicate NewPred; 274 ICmpInst::ICMP_SLE:ICmpInst::ICMP_ULE), Lo, Hi))->getZExtValue() && 283 ICmpInst::Predicate pred = (isSigned ? 284 ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT); 301 ICmpInst::Predicate pred = (isSigned ? 302 ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT); 425 ICmpInst::Predicate SCC [all...] |
InstCombine.h | 133 Value *FoldAndOfICmps(ICmpInst *LHS, ICmpInst *RHS); 136 Value *FoldOrOfICmps(ICmpInst *LHS, ICmpInst *RHS); 152 Instruction *visitICmpInst(ICmpInst &I); 153 Instruction *visitICmpInstWithCastAndCast(ICmpInst &ICI); 154 Instruction *visitICmpInstWithInstAndIntCst(ICmpInst &ICI, 157 Instruction *FoldICmpDivCst(ICmpInst &ICI, BinaryOperator *DivI, 159 Instruction *FoldICmpShrCst(ICmpInst &ICI, BinaryOperator *DivI, 161 Instruction *FoldICmpAddOpCst(ICmpInst &ICI, Value *X, ConstantInt *CI [all...] |
InstCombineCasts.cpp | 469 return new ICmpInst(ICmpInst::ICMP_NE, Src, Zero); 510 Instruction *InstCombiner::transformZExtICmp(ICmpInst *ICI, Instruction &CI, 520 if ((ICI->getPredicate() == ICmpInst::ICMP_SLT && Op1CV == 0) || 521 (ICI->getPredicate() == ICmpInst::ICMP_SGT &&Op1CV.isAllOnesValue())) { 531 if (ICI->getPredicate() == ICmpInst::ICMP_SGT) { 559 bool isNE = ICI->getPredicate() == ICmpInst::ICMP_NE; 621 if (ICI->getPredicate() == ICmpInst::ICMP_EQ) [all...] |
InstructionCombining.cpp | 572 if (ICmpInst *CI = dyn_cast<ICmpInst>(&I)) 715 else if (isa<ICmpInst>(CI)) [all...] |
/external/llvm/lib/IR/ |
ConstantFold.cpp | [all...] |
Instructions.cpp | [all...] |
/external/llvm/include/llvm/CodeGen/ |
Analysis.h | 81 ISD::CondCode getICmpCondCode(ICmpInst::Predicate Pred);
|
/external/llvm/lib/Analysis/ |
ScalarEvolution.cpp | [all...] |
InstructionSimplify.cpp | [all...] |
LazyValueInfo.cpp | 802 ICmpInst *ICI = dyn_cast<ICmpInst>(BI->getCondition()); 807 if (isTrueDest == (ICI->getPredicate() == ICmpInst::ICMP_EQ)) 817 if (ICI->getPredicate() == ICmpInst::ICMP_ULT) [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 | 187 ISD::CondCode llvm::getICmpCondCode(ICmpInst::Predicate Pred) { 189 case ICmpInst::ICMP_EQ: return ISD::SETEQ; 190 case ICmpInst::ICMP_NE: return ISD::SETNE; 191 case ICmpInst::ICMP_SLE: return ISD::SETLE; 192 case ICmpInst::ICMP_ULE: return ISD::SETULE; 193 case ICmpInst::ICMP_SGE: return ISD::SETGE; 194 case ICmpInst::ICMP_UGE: return ISD::SETUGE; 195 case ICmpInst::ICMP_SLT: return ISD::SETLT; 196 case ICmpInst::ICMP_ULT: return ISD::SETULT; 197 case ICmpInst::ICMP_SGT: return ISD::SETGT [all...] |
/external/llvm/include/llvm/Analysis/ |
ScalarEvolution.h | 461 /// branch of the ICmpInst ExitCond, TBB, and FBB. 463 ICmpInst *ExitCond, 474 ICmpInst::Predicate p); 511 bool isImpliedCond(ICmpInst::Predicate Pred, 519 bool isImpliedCondOperands(ICmpInst::Predicate Pred, 526 bool isImpliedCondOperandsHelper(ICmpInst::Predicate Pred, 542 bool isKnownPredicateWithRanges(ICmpInst::Predicate Pred, 735 bool isLoopEntryGuardedByCond(const Loop *L, ICmpInst::Predicate Pred, 741 bool isLoopBackedgeGuardedByCond(const Loop *L, ICmpInst::Predicate Pred, [all...] |
/external/llvm/unittests/IR/ |
InstructionsTest.cpp | 235 ICmpInst *ICmp0 = new ICmpInst(ICmpInst::ICMP_SGT, PtrVecA, PtrVecB); 236 ICmpInst *ICmp1 = new ICmpInst(ICmpInst::ICMP_ULT, PtrVecA, PtrVecB); 240 // Test InsertAtEnd ICmpInst constructor. 241 ICmpInst *ICmp2 = new ICmpInst(*BB0, ICmpInst::ICMP_SGE, PtrVecA, PtrVecB) [all...] |
/external/llvm/include/llvm/Support/ |
PatternMatch.h | 591 inline CmpClass_match<LHS, RHS, ICmpInst, ICmpInst::Predicate> 592 m_ICmp(ICmpInst::Predicate &Pred, const LHS &L, const RHS &R) { 594 ICmpInst, ICmpInst::Predicate>(Pred, L, R); 884 static bool match(ICmpInst::Predicate Pred) { 891 static bool match(ICmpInst::Predicate Pred) { 898 static bool match(ICmpInst::Predicate Pred) { 905 static bool match(ICmpInst::Predicate Pred) { 939 inline MaxMin_match<ICmpInst, LHS, RHS, smax_pred_ty [all...] |
/external/llvm/lib/Transforms/Scalar/ |
LoopIdiomRecognize.cpp | 351 ICmpInst *Cond = dyn_cast<ICmpInst>(Br->getCondition()); 359 ICmpInst::Predicate Pred = Cond->getPredicate(); 360 if ((Pred == ICmpInst::ICMP_NE && Br->getSuccessor(0) == LoopEntry) || 361 (Pred == ICmpInst::ICMP_EQ && Br->getSuccessor(1) == LoopEntry)) 536 ICmpInst *PreCond = cast<ICmpInst>(PreCondBr->getCondition()); 543 ICmpInst *NewPreCond = 544 cast<ICmpInst>(Builder.CreateICmp(PreCond->getPredicate(), Opnd0, Opnd1)); 573 ICmpInst *LbCond = cast<ICmpInst>(LbBr->getCondition()) [all...] |
/external/llvm/examples/BrainF/ |
BrainF.cpp | 439 ICmpInst *test_0 = new ICmpInst(*testbb, ICmpInst::ICMP_EQ, tape_0,
|