reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/IR/IRBuilder.h
 2120     return CreateICmp(ICmpInst::ICMP_EQ, LHS, RHS, Name);
 2124     return CreateICmp(ICmpInst::ICMP_NE, LHS, RHS, Name);
 2128     return CreateICmp(ICmpInst::ICMP_UGT, LHS, RHS, Name);
 2132     return CreateICmp(ICmpInst::ICMP_UGE, LHS, RHS, Name);
 2136     return CreateICmp(ICmpInst::ICMP_ULT, LHS, RHS, Name);
 2140     return CreateICmp(ICmpInst::ICMP_ULE, LHS, RHS, Name);
 2144     return CreateICmp(ICmpInst::ICMP_SGT, LHS, RHS, Name);
 2148     return CreateICmp(ICmpInst::ICMP_SGE, LHS, RHS, Name);
 2152     return CreateICmp(ICmpInst::ICMP_SLT, LHS, RHS, Name);
 2156     return CreateICmp(ICmpInst::ICMP_SLE, LHS, RHS, Name);
lib/Analysis/ScalarEvolutionExpander.cpp
 2278   Value *StepCompare = Builder.CreateICmp(ICmpInst::ICMP_SLT, StepValue, Zero);
 2307   Value *EndCompareGT = Builder.CreateICmp(
 2310   Value *EndCompareLT = Builder.CreateICmp(
 2323         Builder.CreateICmp(ICmpInst::ICMP_UGT, TripCountVal,
 2326         BackedgeCheck, Builder.CreateICmp(ICmpInst::ICMP_NE, StepValue, Zero));
lib/CodeGen/ExpandMemCmp.cpp
  299     Value *Cmp = Builder.CreateICmp(ICmpInst::ICMP_NE, Diff,
  478   Value *Cmp = Builder.CreateICmp(ICmpInst::ICMP_EQ, LoadSrc1, LoadSrc2);
  514   Value *Cmp = Builder.CreateICmp(ICmpInst::ICMP_ULT, ResBlock.PhiSrc1,
lib/IR/AutoUpgrade.cpp
 1173   Value *Cmp = Builder.CreateICmp(Pred, LHS, RHS);
 1256   Value *Cmp = Builder.CreateICmp(ICmpInst::ICMP_SGT, Op0, Zero);
 1270   Value *Cmp = Builder.CreateICmp(Pred, Op0, Op1);
 1352     Cmp = Builder.CreateICmp(Pred, Op0, CI.getArgOperand(1));
 1779       Rep = Builder.CreateICmp(CmpEq ? ICmpInst::ICMP_EQ : ICmpInst::ICMP_SGT,
 1833       Rep = Builder.CreateICmp(Pred, Rep, Zero);
 2009       Rep = Builder.CreateICmp(ICmpInst::ICMP_SLT, Op, Zero);
lib/IR/Core.cpp
 3821   return wrap(unwrap(B)->CreateICmp(static_cast<ICmpInst::Predicate>(Op),
lib/Target/AMDGPU/AMDGPUAtomicOptimizer.cpp
  276   Value *Cond = B.CreateICmp(Pred, LHS, RHS);
lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
  349   NewICmp = Builder.CreateICmp(I.getPredicate(), ExtOp0, ExtOp1);
lib/Target/NVPTX/NVPTXGenericToNVVM.cpp
  260     return Builder.CreateICmp(CmpInst::Predicate(C->getPredicate()),
lib/Target/SystemZ/SystemZTDC.cpp
  363       Value *ICmp = IRB.CreateICmp(CmpInst::ICMP_NE, TDC, Zero32);
lib/Transforms/IPO/WholeProgramDevirt.cpp
 1304         B.CreateICmp(IsOne ? ICmpInst::ICMP_EQ : ICmpInst::ICMP_NE,
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
   60   return Builder.CreateICmp(NewPred, LHS, RHS);
  177     return Builder.CreateICmp(Pred, V, ConstantInt::get(Ty, Hi));
  185   return Builder.CreateICmp(Pred, VMinusLo, HiMinusLo);
  514     return Builder.CreateICmp(NewCC, NewAnd, NewMaskedValue);
  657     return Builder.CreateICmp(NewCC, NewAnd, Zero);
  664     return Builder.CreateICmp(NewCC, NewAnd, NewOr);
  671     return Builder.CreateICmp(NewCC, NewAnd2, A);
  742     return Builder.CreateICmp(NewCC, NewAnd, NewOr2);
  800   return Builder.CreateICmp(NewPred, Input, RangeEnd);
  838     return Builder.CreateICmp(Pred, Or, ConstantInt::get(X->getType(), *C2));
  852     return Builder.CreateICmp(NewPred, Add, ConstantInt::get(X->getType(), 1));
  891       return Builder.CreateICmp(NewPred, Masked, Mask);
 1212       return Builder.CreateICmp(PredL, NewOr, LHSC);
 1247         return Builder.CreateICmp(PredL, NewAnd, NewVal);
 1326         return Builder.CreateICmp(PredL, LHS0, RHSC);
 1344         return Builder.CreateICmp(PredL, LHS0, RHSC);
 2250           return Builder.CreateICmp(LHS->getPredicate(), NewAdd, LHSC);
 2297       return Builder.CreateICmp(
 2331       return Builder.CreateICmp(PredL, NewOr, LHSC);
 3260             Builder.CreateICmp(getInverseMinMaxPred(SPF), X, NotY), X, NotY);
 3268             Builder.CreateICmp(getInverseMinMaxPred(SPF), NotX, Y), NotX, Y);
 3278             Builder.CreateICmp(getInverseMinMaxPred(SPF), NotLHS, NotRHS),
lib/Transforms/InstCombine/InstCombineCompares.cpp
  951         Value *Cmp = Builder.CreateICmp(ICmpInst::getSignedPredicate(Cond),
 1916         Builder.CreateICmp(Pred, P, ConstantInt::getNullValue(P->getType()));
 1918         Builder.CreateICmp(Pred, Q, ConstantInt::getNullValue(Q->getType()));
 1930     Value *Cmp12 = Builder.CreateICmp(Pred, X1, X2);
 1931     Value *Cmp34 = Builder.CreateICmp(Pred, X3, X4);
 2711       Cond = Builder.CreateOr(Cond, Builder.CreateICmp(ICmpInst::ICMP_SLT,
 2714       Cond = Builder.CreateOr(Cond, Builder.CreateICmp(ICmpInst::ICMP_EQ,
 2717       Cond = Builder.CreateOr(Cond, Builder.CreateICmp(ICmpInst::ICMP_SGT,
 3084       return replaceInstUsesWith(Cmp, Builder.CreateICmp(
 3231         Op1 = Builder.CreateICmp(I.getPredicate(), LHSI->getOperand(1), RHSC,
 3234         Op2 = Builder.CreateICmp(I.getPredicate(), LHSI->getOperand(2), RHSC,
 3367   return Builder.CreateICmp(DstPred, X, M);
 3440   Value *T1 = Builder.CreateICmp(DstPred, T0, ConstantInt::get(XType, ICmpCst));
 3592   return Builder.CreateICmp(I.getPredicate(), T1,
 5370     Value *NewCmp = isa<ICmpInst>(Cmp) ? Builder.CreateICmp(P, V1, V2)
lib/Transforms/InstCombine/InstCombineSelect.cpp
   53   return Builder.CreateSelect(Builder.CreateICmp(Pred, A, B), A, B);
 1009   Sel.setCondition(Builder.CreateICmp(CanonicalPred, LHS, RHS));
 1373   Value *NewCmp = Builder.CreateICmp(Pred, X, FlippedStrictness->second,
 2132   Value *CmpABC = Builder.CreateICmp(P, MinMaxOp, ThirdOp);
 2451           Cmp = Builder.CreateICmp(MinMaxPred, LHS, RHS);
lib/Transforms/InstCombine/InstructionCombining.cpp
 1038         InV = Builder.CreateICmp(CI->getPredicate(), PN->getIncomingValue(i),
lib/Transforms/Instrumentation/MemorySanitizer.cpp
 2300     Value *S1 = IRB.CreateICmp(I.getPredicate(),
 2303     Value *S2 = IRB.CreateICmp(I.getPredicate(),
lib/Transforms/Instrumentation/PoisonChecking.cpp
  157         B.CreateICmp(ICmpInst::ICMP_NE, B.CreateURem(LHS, RHS),
  166         B.CreateICmp(ICmpInst::ICMP_NE, B.CreateSRem(LHS, RHS),
  176       B.CreateICmp(ICmpInst::ICMP_UGE, RHS,
  202       B.CreateICmp(ICmpInst::ICMP_UGE, Idx,
  214       B.CreateICmp(ICmpInst::ICMP_UGE, Idx,
lib/Transforms/Scalar/Float2Int.cpp
  477     NewV = IRB.CreateICmp(P, NewOperands[0], NewOperands[1], I->getName());
lib/Transforms/Scalar/IndVarSimplify.cpp
 2545   Value *Cond = Builder.CreateICmp(P, CmpIndVar, ExitCnt, "exitcond");
 2959       NewCond = B.CreateICmp(Pred, ECV, RHS);
lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
 1280   EnterLoopCond = B.CreateICmp(Pred, IndVarStart, ExitSubloopAt);
 1288   Value *TakeBackedgeLoopCond = B.CreateICmp(Pred, IndVarBase, ExitSubloopAt);
 1302   Value *IterationsLeft = B.CreateICmp(Pred, IndVarBase, LoopExitAt);
lib/Transforms/Scalar/LoopIdiomRecognize.cpp
 1830         Builder.CreateICmp(PreCond->getPredicate(), Opnd0, Opnd1));
lib/Transforms/Scalar/LoopPredication.cpp
  408   return Builder.CreateICmp(Pred, LHSV, RHSV);
lib/Transforms/Scalar/Scalarizer.cpp
  121     return Builder.CreateICmp(ICI.getPredicate(), Op0, Op1, Name);
lib/Transforms/Utils/LoopUtils.cpp
  781     Cmp = Builder.CreateICmp(P, Left, Right, "rdx.minmax.cmp");
lib/Transforms/Utils/SimplifyLibCalls.cpp
  853           B.CreateICmp(Old->getPredicate(), StrNCmp,
  962     Value *Bounds = B.CreateICmp(ICmpInst::ICMP_ULT, C, B.getIntN(Width, Width),
lib/Transforms/Vectorize/LoopVectorize.cpp
 2694     CheckMinIters = Builder.CreateICmp(
 3333             B.CreateICmp(CI->getPredicate(), ShrinkOperand(CI->getOperand(0)),
 4220         C = Builder.CreateICmp(Cmp->getPredicate(), A, B);
lib/Transforms/Vectorize/SLPVectorizer.cpp
 3908         V = Builder.CreateICmp(P0, L, R);
tools/clang/lib/CodeGen/CGBuiltin.cpp
 5722     Ops[0] = Builder.CreateICmp(ICmpInst::ICMP_NE, Ops[0],
 5829     Op = Builder.CreateICmp(Ip, Op, Constant::getNullValue(OTy));
 6973     Value *CmpRes = Builder.CreateICmp(ICmpInst::ICMP_UGE, Ops[2], EightV);
 6991     Value *CmpRes = Builder.CreateICmp(ICmpInst::ICMP_UGE, Ops[4],
 7869     Ops[0] = Builder.CreateICmp(P, Ops[0], Ops[1]);
 7878     Ops[0] = Builder.CreateICmp(ICmpInst::ICMP_NE, Ops[0],
 9650   Value *Cmp = CGF.Builder.CreateICmp(Pred, Op0, Op1);
 9730     Cmp = CGF.Builder.CreateICmp(Pred, Ops[0], Ops[1]);
 9769   Value *Cmp = CGF.Builder.CreateICmp(ICmpInst::ICMP_SGT, Ops[0], Zero);
 9776   Value *Cmp = CGF.Builder.CreateICmp(Pred, Ops[0], Ops[1]);
tools/clang/lib/CodeGen/CGExprAgg.cpp
  963     return Builder.CreateICmp(Inst, LHS, RHS,
tools/clang/lib/CodeGen/CGExprScalar.cpp
 1066     return Builder.CreateICmp(llvm::ICmpInst::ICMP_SLT, V, Zero,
 2619       Result = Builder.CreateICmp(llvm::CmpInst::ICMP_EQ, Oper, Zero, "cmp");
 3826       Result = Builder.CreateICmp(SICmpOpc, LHS, RHS, "cmp");
 3846       Result = Builder.CreateICmp(UICmpOpc, LHS, RHS, "cmp");
 3886       ResultR = Builder.CreateICmp(UICmpOpc, LHS.first, RHS.first, "cmp.r");
 3887       ResultI = Builder.CreateICmp(UICmpOpc, LHS.second, RHS.second, "cmp.i");
 3974       LHS = Builder.CreateICmp(llvm::CmpInst::ICMP_NE, LHS, Zero, "cmp");
 3975       RHS = Builder.CreateICmp(llvm::CmpInst::ICMP_NE, RHS, Zero, "cmp");
 4058       LHS = Builder.CreateICmp(llvm::CmpInst::ICMP_NE, LHS, Zero, "cmp");
 4059       RHS = Builder.CreateICmp(llvm::CmpInst::ICMP_NE, RHS, Zero, "cmp");
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp
 1062     return Builder.CreateICmp(Eq, L, R);
 1079   llvm::Value *PtrEq = Builder.CreateICmp(Eq, LPtr, RPtr, "cmp.ptr");
 1085   llvm::Value *EqZero = Builder.CreateICmp(Eq, LPtr, Zero, "cmp.ptr.null");
 1091   llvm::Value *AdjEq = Builder.CreateICmp(Eq, LAdj, RAdj, "cmp.adj");
 1101     llvm::Value *OrAdjAnd1EqZero = Builder.CreateICmp(Eq, OrAdjAnd1, Zero,
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp
 2843     return Builder.CreateICmp(Eq, L, R);
 2848   llvm::Value *Cmp0 = Builder.CreateICmp(Eq, L0, R0, "memptr.cmp.first");
 2856     llvm::Value *Cmp = Builder.CreateICmp(Eq, LF, RF, "memptr.cmp.rest");
 2867     llvm::Value *IsZero = Builder.CreateICmp(Eq, L0, Zero, "memptr.cmp.iszero");
tools/polly/lib/CodeGen/IslExprBuilder.cpp
  222     Value *Cmp = Builder.CreateICmp(Pred, V, OpV);
  535   Res = Builder.CreateICmp(Predicates[OpType - isl_ast_op_eq][UseUnsignedCmp],
tools/polly/lib/CodeGen/LoopGenerators.cpp
  136     LoopGuard = Builder.CreateICmp(Predicate, LB, UB);
  157       Builder.CreateICmp(Predicate, IncrementedIV, UB, "polly.loop_cond");
tools/polly/lib/CodeGen/LoopGeneratorsKMP.cpp
  207           Builder.CreateICmp(llvm::CmpInst::Predicate::ICMP_EQ, HasWork,
  214           Builder.CreateICmp(llvm::CmpInst::Predicate::ICMP_EQ, HasWork,
  233           Builder.CreateICmp(llvm::CmpInst::Predicate::ICMP_SLT, UB, AdjustedUB,
  239       Value *HasIteration = Builder.CreateICmp(
unittests/Analysis/ScalarEvolutionTest.cpp
  851       Builder.CreateICmp(ICmpInst::ICMP_SLT, Add, Limit, "cond"));
  882   auto *NewCond = Builder.CreateICmp(
  951       Builder.CreateICmp(ICmpInst::ICMP_SLT, Add, Load, "cond"));
  971   auto *NewCond = Builder.CreateICmp(
 1177       Builder.CreateICmp(ICmpInst::ICMP_SLT, Add, Limit, "cond"));
unittests/IR/PatternMatch.cpp
 1134               .match((InstructionType)IRB.CreateICmp(Pred, L, R)));