/macosx-10.9.5/llvmCore-3425.0.33/lib/Transforms/Utils/ |
H A D | 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 [all...] |
H A D | 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 *ICm [all...] |
H A D | 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 [all...] |
H A D | 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,
|
H A D | LowerExpectIntrinsic.cpp | 101 ICmpInst *CmpI = dyn_cast<ICmpInst>(BI->getCondition());
|
/macosx-10.9.5/llvmCore-3425.0.33/include/llvm/Transforms/Utils/ |
H A D | CmpInstAnalysis.h | 21 class ICmpInst; 47 unsigned getICmpCode(const ICmpInst *ICI, bool InvertPred = false);
|
/macosx-10.9.5/llvmCore-3425.0.33/lib/Transforms/InstCombine/ |
H A D | 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 [all...] |
H A D | 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 [all...] |
H A D | 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 [all...] |
H A D | 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 [all...] |
H A D | 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) 824 if (ICmpInst *ICI = dyn_cast<ICmpInst>(Sr [all...] |
/macosx-10.9.5/llvmCore-3425.0.33/lib/VMCore/ |
H A D | ConstantFold.cpp | 1333 /// predicate, otherwise return ICmpInst::BAD_ICMP_PREDICATE. 1340 static ICmpInst::Predicate evaluateICmpRelation(Constant *V1, Constant *V2, 1344 if (V1 == V2) return ICmpInst::ICMP_EQ; 1353 ICmpInst::Predicate pred = ICmpInst::ICMP_EQ; 1357 pred = isSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT; 1361 pred = isSigned ? ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT; 1367 return ICmpInst [all...] |
/macosx-10.9.5/llvmCore-3425.0.33/lib/CodeGen/ |
H A D | 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 [all...] |
/macosx-10.9.5/llvmCore-3425.0.33/lib/Analysis/ |
H A D | ScalarEvolution.cpp | 1012 if (isLoopBackedgeGuardedByCond(L, ICmpInst::ICMP_ULT, AR, N) || 1013 (isLoopEntryGuardedByCond(L, ICmpInst::ICMP_ULT, Start, N) && 1014 isLoopBackedgeGuardedByCond(L, ICmpInst::ICMP_ULT, 1026 if (isLoopBackedgeGuardedByCond(L, ICmpInst::ICMP_UGT, AR, N) || 1027 (isLoopEntryGuardedByCond(L, ICmpInst::ICMP_UGT, Start, N) && 1028 isLoopBackedgeGuardedByCond(L, ICmpInst::ICMP_UGT, 1055 ICmpInst::Predicate *Pred, 1059 *Pred = ICmpInst::ICMP_SLT; 1064 *Pred = ICmpInst::ICMP_SGT; 1128 ICmpInst [all...] |
H A D | InstructionSimplify.cpp | 1615 Pred = ICmpInst::getSignedPredicate(Pred); 1634 /// SimplifyICmpInst - Given operands for an ICmpInst, see if we can 1663 case ICmpInst::ICMP_EQ: 1668 case ICmpInst::ICMP_NE: 1673 case ICmpInst::ICMP_UGT: 1678 case ICmpInst::ICMP_UGE: 1683 case ICmpInst::ICMP_SLT: 1688 case ICmpInst::ICMP_SLE: 1757 case ICmpInst::ICMP_ULT: 1759 case ICmpInst [all...] |
H A D | 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) 1084 if (Pred == ICmpInst::ICMP_EQ) { 1090 } else if (Pred == ICmpInst::ICMP_NE) { 1100 ICmpInst::makeConstantRange((ICmpInst::Predicate)Pred, CI->getValue()); 1111 if (Pred == ICmpInst::ICMP_EQ) { 1113 Res = ConstantFoldCompareInstOperands(ICmpInst [all...] |
H A D | BranchProbabilityInfo.cpp | 204 ICmpInst *CI = dyn_cast<ICmpInst>(Cond); 220 bool isProb = CI->getPredicate() == ICmpInst::ICMP_NE; 291 ICmpInst *CI = dyn_cast<ICmpInst>(Cond);
|
/macosx-10.9.5/llvmCore-3425.0.33/unittests/VMCore/ |
H A D | InstructionsTest.cpp | 161 ICmpInst *ICmp0 = new ICmpInst(ICmpInst::ICMP_SGT, PtrVecA, PtrVecB); 162 ICmpInst *ICmp1 = new ICmpInst(ICmpInst::ICMP_ULT, PtrVecA, PtrVecB);
|
/macosx-10.9.5/llvmCore-3425.0.33/examples/Fibonacci/ |
H A D | fibonacci.cpp | 64 Value *CondInst = new ICmpInst(*BB, ICmpInst::ICMP_SLE, ArgX, Two, "cond");
|
/macosx-10.9.5/llvmCore-3425.0.33/include/llvm/CodeGen/ |
H A D | Analysis.h | 81 ISD::CondCode getICmpCondCode(ICmpInst::Predicate Pred);
|
/macosx-10.9.5/llvmCore-3425.0.33/include/llvm/Analysis/ |
H A D | 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, 830 bool isKnownPredicate(ICmpInst [all...] |
/macosx-10.9.5/llvmCore-3425.0.33/include/llvm/Support/ |
H A D | 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 [all...] |
/macosx-10.9.5/llvmCore-3425.0.33/lib/ExecutionEngine/Interpreter/ |
H A D | 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 [all...] |
/macosx-10.9.5/llvmCore-3425.0.33/examples/BrainF/ |
H A D | BrainF.cpp | 439 ICmpInst *test_0 = new ICmpInst(*testbb, ICmpInst::ICMP_EQ, tape_0,
|
/macosx-10.9.5/llvmCore-3425.0.33/lib/Transforms/Scalar/ |
H A D | IndVarSimplify.cpp | 407 ICmpInst *NewCompare = new ICmpInst(TheBr, NewPred, NewAdd, 1117 ICmpInst *OrigCond = dyn_cast<ICmpInst>(BI->getCondition()); 1223 static ICmpInst *getLoopTest(Loop *L) { 1234 return dyn_cast<ICmpInst>(BI->getCondition()); 1241 ICmpInst *Cond = getLoopTest(L); 1246 ICmpInst::Predicate Pred = Cond->getPredicate(); 1247 if (Pred != ICmpInst::ICMP_NE && Pred != ICmpInst [all...] |