/macosx-10.9.5/llvmCore-3425.0.33/include/llvm/Transforms/Utils/ |
H A D | CmpInstAnalysis.h | 47 unsigned getICmpCode(const ICmpInst *ICI, bool InvertPred = false);
|
/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) { argument 45 ICmpInst::Predicate Pred = InvertPred ? ICI->getInversePredicate() 46 : ICI->getPredicate();
|
H A D | SimplifyCFG.cpp | 424 if (ICmpInst *ICI = dyn_cast<ICmpInst>(I)) { 426 if (ICI->getPredicate() == (isEQ ? ICmpInst::ICMP_EQ:ICmpInst::ICMP_NE)) { 435 ConstantRange::makeICmpRegion(ICI->getPredicate(), C->getValue()); 526 if (ICmpInst *ICI = dyn_cast<ICmpInst>(BI->getCondition())) 527 if ((ICI->getPredicate() == ICmpInst::ICMP_EQ || 528 ICI->getPredicate() == ICmpInst::ICMP_NE) && 529 GetConstantInt(ICI->getOperand(1), TD)) 530 CV = ICI->getOperand(0); 554 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition()); local 555 BasicBlock *Succ = BI->getSuccessor(ICI 798 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition()); local 2524 TryToSimplifyUncondBranchWithICmpInIt(ICmpInst *ICI, const TargetData *TD, IRBuilder<> &Builder) argument [all...] |
/macosx-10.9.5/llvmCore-3425.0.33/lib/Transforms/InstCombine/ |
H A D | InstCombineCompares.cpp | 203 CmpInst &ICI, ConstantInt *AndCst) { 279 Constant *CompareRHS = cast<Constant>(ICI.getOperand(1)); 292 Constant *C = ConstantFoldCompareInstOperands(ICI.getPredicate(), Elt, 380 return ReplaceInstUsesWith(ICI, ConstantInt::getFalse(GEP->getContext())); 400 return ReplaceInstUsesWith(ICI, ConstantInt::getTrue(GEP->getContext())); 708 Instruction *InstCombiner::FoldICmpAddOpCst(ICmpInst &ICI, argument 716 return ReplaceInstUsesWith(ICI, ConstantInt::get(ICI.getType(), isTrue)); 721 return ReplaceInstUsesWith(ICI, ConstantInt::getFalse(X->getContext())); 725 return ReplaceInstUsesWith(ICI, ConstantIn 202 FoldCmpLoadFromIndexedGlobal(GetElementPtrInst *GEP, GlobalVariable *GV, CmpInst &ICI, ConstantInt *AndCst) argument 773 FoldICmpDivCst(ICmpInst &ICI, BinaryOperator *DivI, ConstantInt *DivRHS) argument 930 FoldICmpShrCst(ICmpInst &ICI, BinaryOperator *Shr, ConstantInt *ShAmt) argument 1020 visitICmpInstWithInstAndIntCst(ICmpInst &ICI, Instruction *LHSI, ConstantInt *RHS) argument 1545 visitICmpInstWithCastAndCast(ICmpInst &ICI) argument [all...] |
H A D | InstCombineSelect.cpp | 29 ICmpInst *ICI = dyn_cast<ICmpInst>(SI->getCondition()); 30 if (ICI == 0) return SPF_UNKNOWN; 32 LHS = ICI->getOperand(0); 33 RHS = ICI->getOperand(1); 36 if (SI->getTrueValue() == ICI->getOperand(0) && 37 SI->getFalseValue() == ICI->getOperand(1)) { 38 switch (ICI->getPredicate()) { 52 if (SI->getTrueValue() == ICI->getOperand(1) && 53 SI->getFalseValue() == ICI->getOperand(0)) { 54 switch (ICI 355 visitSelectInstWithICmp(SelectInst &SI, ICmpInst *ICI) argument [all...] |
H A D | InstCombine.h | 143 GlobalVariable *GV, CmpInst &ICI, 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, 182 Instruction *visitSelectInstWithICmp(SelectInst &SI, ICmpInst *ICI); 225 Instruction *transformZExtICmp(ICmpInst *ICI, Instruction &CI, 227 Instruction *transformSExtICmp(ICmpInst *ICI, Instruction &CI);
|
H A D | InstCombineCasts.cpp | 501 Instruction *InstCombiner::transformZExtICmp(ICmpInst *ICI, Instruction &CI, argument 506 if (ConstantInt *Op1C = dyn_cast<ConstantInt>(ICI->getOperand(1))) { 511 if ((ICI->getPredicate() == ICmpInst::ICMP_SLT && Op1CV == 0) || 512 (ICI->getPredicate() == ICmpInst::ICMP_SGT &&Op1CV.isAllOnesValue())) { 513 if (!DoXform) return ICI; 515 Value *In = ICI->getOperand(0); 522 if (ICI->getPredicate() == ICmpInst::ICMP_SGT) { 540 ICI->isEquality()) { 544 ComputeMaskedBits(ICI->getOperand(0), KnownZero, KnownOne); 548 if (!DoXform) return ICI; 882 transformSExtICmp(ICmpInst *ICI, Instruction &CI) argument [all...] |
H A D | InstructionCombining.cpp | 1132 ICmpInst *ICI = cast<ICmpInst>(I); local 1134 if (!ICI->isEquality() || !isa<ConstantPointerNull>(ICI->getOperand(1)))
|
/macosx-10.9.5/llvmCore-3425.0.33/lib/Analysis/ |
H A D | LazyValueInfo.cpp | 798 ICmpInst *ICI = dyn_cast<ICmpInst>(BI->getCondition()); local 799 if (ICI && isa<Constant>(ICI->getOperand(1))) { 800 if (ICI->isEquality() && ICI->getOperand(0) == Val) { 803 if (isTrueDest == (ICI->getPredicate() == ICmpInst::ICMP_EQ)) 804 Result = LVILatticeVal::get(cast<Constant>(ICI->getOperand(1))); 806 Result = LVILatticeVal::getNot(cast<Constant>(ICI->getOperand(1))); 813 if (ICI->getPredicate() == ICmpInst::ICMP_ULT) 814 match(ICI [all...] |
H A D | ScalarEvolution.cpp | 3826 if (ICmpInst *ICI = dyn_cast<ICmpInst>(U->getOperand(0))) { 3827 Value *LHS = ICI->getOperand(0); 3828 Value *RHS = ICI->getOperand(1); 3829 switch (ICI->getPredicate()) { 6103 ICmpInst *ICI = dyn_cast<ICmpInst>(FoundCondValue); 6104 if (!ICI) return false; 6112 getTypeSizeInBits(ICI->getOperand(0)->getType())) 6119 FoundPred = ICI->getInversePredicate(); 6121 FoundPred = ICI->getPredicate(); 6123 const SCEV *FoundLHS = getSCEV(ICI [all...] |
/macosx-10.9.5/llvmCore-3425.0.33/lib/Analysis/IPA/ |
H A D | GlobalsModRef.cpp | 286 } else if (ICmpInst *ICI = dyn_cast<ICmpInst>(U)) { 287 if (!isa<ConstantPointerNull>(ICI->getOperand(1)))
|
/macosx-10.9.5/llvmCore-3425.0.33/lib/Transforms/IPO/ |
H A D | GlobalOpt.cpp | 1095 ICmpInst *ICI = cast<ICmpInst>(LoadUse.getUser()); local 1100 LI->isUnordered() ? (Instruction*)ICI : LI); 1102 switch (ICI->getPredicate()) { 1111 LV = BinaryOperator::CreateNot(LV, "notinit", ICI); 1120 ICI->replaceAllUsesWith(LV); 1121 ICI->eraseFromParent(); 1254 if (const ICmpInst *ICI = dyn_cast<ICmpInst>(User)) { 1255 if (!isa<ConstantPointerNull>(ICI->getOperand(1)))
|
/macosx-10.9.5/llvmCore-3425.0.33/lib/Transforms/Scalar/ |
H A D | ObjCARC.cpp | 1937 if (const ICmpInst *ICI = dyn_cast<ICmpInst>(Inst)) { 1941 if (!IsPotentialUse(ICI->getOperand(1), *PA.getAA()))
|
H A D | LoopStrengthReduce.cpp | 2991 if (const ICmpInst *ICI = dyn_cast<ICmpInst>(UserInst)) { 2993 Value *OtherOp = const_cast<Value *>(ICI->getOperand(OtherIdx));
|