/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: 386 return new ICmpInst(ICmpInst::ICMP_EQ, Idx, FirstTrueIdx); 406 return new ICmpInst(ICmpInst::ICMP_NE, Idx, FirstFalseIdx) [all...] |
InstCombineAndOrXor.cpp | 99 ICmpInst::Predicate NewPred; 278 ICmpInst::ICMP_SLE:ICmpInst::ICMP_ULE), Lo, Hi))->getZExtValue() && 287 ICmpInst::Predicate pred = (isSigned ? 288 ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT); 305 ICmpInst::Predicate pred = (isSigned ? 306 ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT); 429 ICmpInst::Predicate SCC [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...] |
InstCombine.h | 127 Value *FoldAndOfICmps(ICmpInst *LHS, ICmpInst *RHS); 130 Value *FoldOrOfICmps(ICmpInst *LHS, ICmpInst *RHS); 146 Instruction *visitICmpInst(ICmpInst &I); 147 Instruction *visitICmpInstWithCastAndCast(ICmpInst &ICI); 148 Instruction *visitICmpInstWithInstAndIntCst(ICmpInst &ICI, 151 Instruction *FoldICmpDivCst(ICmpInst &ICI, BinaryOperator *DivI, 153 Instruction *FoldICmpShrCst(ICmpInst &ICI, BinaryOperator *DivI, 155 Instruction *FoldICmpAddOpCst(ICmpInst &ICI, Value *X, ConstantInt *CI [all...] |
InstCombineCasts.cpp | 460 return new ICmpInst(ICmpInst::ICMP_NE, Src, Zero); 501 Instruction *InstCombiner::transformZExtICmp(ICmpInst *ICI, Instruction &CI, 511 if ((ICI->getPredicate() == ICmpInst::ICMP_SLT && Op1CV == 0) || 512 (ICI->getPredicate() == ICmpInst::ICMP_SGT &&Op1CV.isAllOnesValue())) { 522 if (ICI->getPredicate() == ICmpInst::ICMP_SGT) { 550 bool isNE = ICI->getPredicate() == ICmpInst::ICMP_NE; 612 if (ICI->getPredicate() == ICmpInst::ICMP_EQ) [all...] |
/external/llvm/lib/VMCore/ |
ConstantFold.cpp | [all...] |
/external/llvm/lib/CodeGen/ |
Analysis.cpp | 189 ISD::CondCode llvm::getICmpCondCode(ICmpInst::Predicate Pred) { 191 case ICmpInst::ICMP_EQ: return ISD::SETEQ; 192 case ICmpInst::ICMP_NE: return ISD::SETNE; 193 case ICmpInst::ICMP_SLE: return ISD::SETLE; 194 case ICmpInst::ICMP_ULE: return ISD::SETULE; 195 case ICmpInst::ICMP_SGE: return ISD::SETGE; 196 case ICmpInst::ICMP_UGE: return ISD::SETUGE; 197 case ICmpInst::ICMP_SLT: return ISD::SETLT; 198 case ICmpInst::ICMP_ULT: return ISD::SETULT; 199 case ICmpInst::ICMP_SGT: return ISD::SETGT [all...] |
/external/llvm/lib/Analysis/ |
ScalarEvolution.cpp | [all...] |
InstructionSimplify.cpp | [all...] |
LazyValueInfo.cpp | 798 ICmpInst *ICI = dyn_cast<ICmpInst>(BI->getCondition()); 803 if (isTrueDest == (ICI->getPredicate() == ICmpInst::ICMP_EQ)) 813 if (ICI->getPredicate() == ICmpInst::ICMP_ULT) [all...] |
BranchProbabilityInfo.cpp | 204 ICmpInst *CI = dyn_cast<ICmpInst>(Cond); 220 bool isProb = CI->getPredicate() == ICmpInst::ICMP_NE; 291 ICmpInst *CI = dyn_cast<ICmpInst>(Cond);
|
/external/llvm/unittests/VMCore/ |
InstructionsTest.cpp | 161 ICmpInst *ICmp0 = new ICmpInst(ICmpInst::ICMP_SGT, PtrVecA, PtrVecB); 162 ICmpInst *ICmp1 = new ICmpInst(ICmpInst::ICMP_ULT, PtrVecA, PtrVecB);
|
/external/llvm/examples/Fibonacci/ |
fibonacci.cpp | 64 Value *CondInst = new ICmpInst(*BB, ICmpInst::ICMP_SLE, ArgX, Two, "cond");
|
/external/llvm/include/llvm/CodeGen/ |
Analysis.h | 81 ISD::CondCode getICmpCondCode(ICmpInst::Predicate Pred);
|
/external/llvm/include/llvm/Analysis/ |
ScalarEvolution.h | 457 /// branch of the ICmpInst ExitCond, TBB, and FBB. 459 ICmpInst *ExitCond, 469 ICmpInst::Predicate p); 506 bool isImpliedCond(ICmpInst::Predicate Pred, 514 bool isImpliedCondOperands(ICmpInst::Predicate Pred, 521 bool isImpliedCondOperandsHelper(ICmpInst::Predicate Pred, 537 bool isKnownPredicateWithRanges(ICmpInst::Predicate Pred, 726 bool isLoopEntryGuardedByCond(const Loop *L, ICmpInst::Predicate Pred, 732 bool isLoopBackedgeGuardedByCond(const Loop *L, ICmpInst::Predicate Pred, [all...] |
/external/llvm/include/llvm/Support/ |
PatternMatch.h | 510 inline CmpClass_match<LHS, RHS, ICmpInst, ICmpInst::Predicate> 511 m_ICmp(ICmpInst::Predicate &Pred, const LHS &L, const RHS &R) { 513 ICmpInst, ICmpInst::Predicate>(Pred, L, R); 747 ICmpInst *Cmp = dyn_cast<ICmpInst>(SI->getCondition()); 759 ICmpInst::Predicate Pred = LHS == TrueVal ? 771 static bool match(ICmpInst::Predicate Pred) { 778 static bool match(ICmpInst::Predicate Pred) [all...] |
/external/llvm/lib/ExecutionEngine/Interpreter/ |
Execution.cpp | 257 void Interpreter::visitICmpInst(ICmpInst &I) { 265 case ICmpInst::ICMP_EQ: R = executeICMP_EQ(Src1, Src2, Ty); break; 266 case ICmpInst::ICMP_NE: R = executeICMP_NE(Src1, Src2, Ty); break; 267 case ICmpInst::ICMP_ULT: R = executeICMP_ULT(Src1, Src2, Ty); break; 268 case ICmpInst::ICMP_SLT: R = executeICMP_SLT(Src1, Src2, Ty); break; 269 case ICmpInst::ICMP_UGT: R = executeICMP_UGT(Src1, Src2, Ty); break; 270 case ICmpInst::ICMP_SGT: R = executeICMP_SGT(Src1, Src2, Ty); break; 271 case ICmpInst::ICMP_ULE: R = executeICMP_ULE(Src1, Src2, Ty); break; 272 case ICmpInst::ICMP_SLE: R = executeICMP_SLE(Src1, Src2, Ty); break; 273 case ICmpInst::ICMP_UGE: R = executeICMP_UGE(Src1, Src2, Ty); break [all...] |
/external/llvm/examples/BrainF/ |
BrainF.cpp | 439 ICmpInst *test_0 = new ICmpInst(*testbb, ICmpInst::ICMP_EQ, tape_0,
|
/external/llvm/lib/Transforms/Scalar/ |
IndVarSimplify.cpp | 407 ICmpInst *NewCompare = new ICmpInst(TheBr, NewPred, NewAdd, [all...] |