HomeSort by: relevance | last modified time | path
    Searched refs:ICI (Results 1 - 21 of 21) sorted by relevancy

  /src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
CmpInstAnalysis.h 46 unsigned getICmpCode(const ICmpInst *ICI, bool InvertPred = false);
  /src/external/apache2/llvm/dist/llvm/lib/Analysis/
CmpInstAnalysis.cpp 21 unsigned llvm::getICmpCode(const ICmpInst *ICI, bool InvertPred) {
22 ICmpInst::Predicate Pred = InvertPred ? ICI->getInversePredicate()
23 : ICI->getPredicate();
LazyValueInfo.cpp 1076 static ValueLatticeElement getValueFromICmpCondition(Value *Val, ICmpInst *ICI,
1078 Value *LHS = ICI->getOperand(0);
1079 Value *RHS = ICI->getOperand(1);
1083 isTrueDest ? ICI->getPredicate() : ICI->getInversePredicate();
1086 if (ICI->isEquality() && LHS == Val) {
1161 if (ICmpInst *ICI = dyn_cast<ICmpInst>(Cond))
1162 return getValueFromICmpCondition(Val, ICI, isTrueDest);
GlobalsModRef.cpp 387 } else if (ICmpInst *ICI = dyn_cast<ICmpInst>(I)) {
388 if (!isa<ConstantPointerNull>(ICI->getOperand(1)))
ScalarEvolution.cpp 5443 auto *ICI = dyn_cast<ICmpInst>(Cond);
5444 if (!ICI)
5447 Value *LHS = ICI->getOperand(0);
5448 Value *RHS = ICI->getOperand(1);
5450 switch (ICI->getPredicate()) {
10275 const ICmpInst *ICI = dyn_cast<ICmpInst>(FoundCondValue);
10276 if (!ICI) return false;
10282 FoundPred = ICI->getInversePredicate();
10284 FoundPred = ICI->getPredicate();
10286 const SCEV *FoundLHS = getSCEV(ICI->getOperand(0))
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
LoopPredication.cpp 265 Optional<LoopICmp> parseLoopICmp(ICmpInst *ICI);
288 Optional<Value *> widenICmpRangeCheck(ICmpInst *ICI, SCEVExpander &Expander,
374 LoopPredication::parseLoopICmp(ICmpInst *ICI) {
375 auto Pred = ICI->getPredicate();
376 auto *LHS = ICI->getOperand(0);
377 auto *RHS = ICI->getOperand(1);
672 /// If ICI can be widened to a loop invariant condition emits the loop
675 Optional<Value *> LoopPredication::widenICmpRangeCheck(ICmpInst *ICI,
679 LLVM_DEBUG(ICI->dump());
685 auto RangeCheck = parseLoopICmp(ICI);
    [all...]
InductiveRangeCheckElimination.cpp 150 static bool parseRangeCheckICmp(Loop *L, ICmpInst *ICI, ScalarEvolution &SE,
290 /// Parse a single ICmp instruction, `ICI`, into a range check. If `ICI` cannot
295 InductiveRangeCheck::parseRangeCheckICmp(Loop *L, ICmpInst *ICI,
302 ICmpInst::Predicate Pred = ICI->getPredicate();
303 Value *LHS = ICI->getOperand(0);
304 Value *RHS = ICI->getOperand(1);
371 ICmpInst *ICI = dyn_cast<ICmpInst>(Condition);
372 if (!ICI)
377 if (!parseRangeCheckICmp(L, ICI, SE, Index, Length, IsSigned)
    [all...]
Scalarizer.cpp 122 // ICmpSpliiter(ICI)(Builder, X, Y, Name) uses Builder to create an ICmp
123 // called Name that compares X and Y in the same way as ICI.
125 ICmpSplitter(ICmpInst &ici) : ICI(ici) {}
129 return Builder.CreateICmp(ICI.getPredicate(), Op0, Op1, Name);
132 ICmpInst &ICI;
194 bool visitICmpInst(ICmpInst &ICI);
207 bool visitCallInst(CallInst &ICI);
614 bool ScalarizerVisitor::visitICmpInst(ICmpInst &ICI) {
    [all...]
LoopStrengthReduce.cpp 3468 if (const ICmpInst *ICI = dyn_cast<ICmpInst>(UserInst)) {
3470 Value *OtherOp = const_cast<Value *>(ICI->getOperand(OtherIdx));
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
SimplifyIndVar.cpp 565 ICmpInst *ICI = dyn_cast<ICmpInst>(U);
566 if (!ICI) return false;
567 assert(L->contains(ICI->getParent()) && "LCSSA form broken?");
568 if (!(ICI->getOperand(0) == TI && L->isLoopInvariant(ICI->getOperand(1))) &&
569 !(ICI->getOperand(1) == TI && L->isLoopInvariant(ICI->getOperand(0))))
572 if (ICI->isSigned() && !DoesSExtCollapse)
574 if (ICI->isUnsigned() && !DoesZExtCollapse)
577 ICmpUsers.push_back(ICI);
    [all...]
SimplifyCFG.cpp 254 bool tryToSimplifyUncondBranchWithICmpInIt(ICmpInst *ICI,
521 ICmpInst *ICI;
523 if (!((ICI = dyn_cast<ICmpInst>(I)) &&
534 if (ICI->getPredicate() == (isEQ ? ICmpInst::ICMP_EQ : ICmpInst::ICMP_NE)) {
575 if (match(ICI->getOperand(0),
598 if (match(ICI->getOperand(0),
615 if (!setValueOnce(ICI->getOperand(0)))
620 return ICI->getOperand(0);
625 ICI->getPredicate(), C->getValue());
740 if (ICmpInst *ICI = dyn_cast<ICmpInst>(BI->getCondition()))
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
InstCombineInternal.h 239 /// \param ICI The icmp of the (zext icmp) pair we are interested in.
247 /// unmodified \p ICI will be returned in this case).
248 Instruction *transformZExtICmp(ICmpInst *ICI, ZExtInst &CI,
251 Instruction *transformSExtICmp(ICmpInst *ICI, Instruction &CI);
645 Instruction *foldAllocaCmp(ICmpInst &ICI, const AllocaInst *Alloca,
648 GlobalVariable *GV, CmpInst &ICI,
654 Instruction *foldICmpWithCastOp(ICmpInst &ICI);
707 Instruction *foldICmpIntrinsicWithConstant(ICmpInst &ICI, IntrinsicInst *II,
709 Instruction *foldICmpEqIntrinsicWithConstant(ICmpInst &ICI, IntrinsicInst *II,
719 Instruction *foldSelectInstWithICmp(SelectInst &SI, ICmpInst *ICI);
    [all...]
InstCombineSelect.cpp 721 static Value *canonicalizeSaturatedSubtract(const ICmpInst *ICI,
725 ICmpInst::Predicate Pred = ICI->getPredicate();
737 Value *A = ICI->getOperand(0);
738 Value *B = ICI->getOperand(1);
765 if (IsNegative && !TrueVal->hasOneUse() && !ICI->hasOneUse())
854 static Instruction *foldSelectCtlzToCttz(ICmpInst *ICI, Value *TrueVal,
858 if (!ICI->isEquality() || !match(ICI->getOperand(1), m_Zero()))
861 if (ICI->getPredicate() == ICmpInst::ICMP_NE)
871 Value *X = ICI->getOperand(0)
    [all...]
InstCombineCasts.cpp 1319 Instruction *InstCombinerImpl::transformSExtICmp(ICmpInst *ICI,
1321 Value *Op0 = ICI->getOperand(0), *Op1 = ICI->getOperand(1);
1322 ICmpInst::Predicate Pred = ICI->getPredicate();
1347 if (ICI->hasOneUse() &&
1348 ICI->isEquality() && (Op1C->isZero() || Op1C->getValue().isPowerOf2())){
1353 Value *In = ICI->getOperand(0);
1509 if (ICmpInst *ICI = dyn_cast<ICmpInst>(Src))
1510 return transformSExtICmp(ICI, CI);
InstCombineCompares.cpp 109 GlobalVariable *GV, CmpInst &ICI,
184 Constant *CompareRHS = cast<Constant>(ICI.getOperand(1));
197 Constant *C = ConstantFoldCompareInstOperands(ICI.getPredicate(), Elt,
287 return replaceInstUsesWith(ICI, Builder.getFalse());
307 return replaceInstUsesWith(ICI, Builder.getTrue());
987 Instruction *InstCombinerImpl::foldAllocaCmp(ICmpInst &ICI,
990 assert(ICI.isEquality() && "Cannot fold non-equality comparison.");
1060 ICI,
1061 ConstantInt::get(CmpTy, !CmpInst::isTrueWhenEqual(ICI.getPredicate())));
InstructionCombining.cpp 2545 ICmpInst *ICI = cast<ICmpInst>(I);
2549 if (!ICI->isEquality())
2551 unsigned OtherIndex = (ICI->getOperand(0) == PI) ? 1 : 0;
2552 if (!isNeverEqualToUnescapedAlloc(ICI->getOperand(OtherIndex), TLI, AI))
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/ObjCARC/
DependencyAnalysis.cpp 89 if (const ICmpInst *ICI = dyn_cast<ICmpInst>(Inst)) {
93 if (!IsPotentialRetainableObjPtr(ICI->getOperand(1), *PA.getAA()))
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
GlobalOpt.cpp 953 ICmpInst *ICI = dyn_cast<ICmpInst>(LoadUse.getUser());
954 if (!ICI) {
964 LI->isUnordered() ? (Instruction *)ICI : LI);
966 switch (ICI->getPredicate()) {
975 LV = BinaryOperator::CreateNot(LV, "notinit", ICI);
984 ICI->replaceAllUsesWith(LV);
985 ICI->eraseFromParent();
AttributorAttributes.cpp 7590 static bool calculateICmpInst(const ICmpInst *ICI, const APInt &LHS,
7592 ICmpInst::Predicate Pred = ICI->getPredicate();
7708 ChangeStatus updateWithICmpInst(Attributor &A, ICmpInst *ICI) {
7710 Value *LHS = ICI->getOperand(0);
7711 Value *RHS = ICI->getOperand(1);
7738 bool CmpResult = calculateICmpInst(ICI, Zero, R);
7746 bool CmpResult = calculateICmpInst(ICI, L, Zero);
7755 bool CmpResult = calculateICmpInst(ICI, L, R);
7893 if (auto *ICI = dyn_cast<ICmpInst>(I))
7894 return updateWithICmpInst(A, ICI);
    [all...]
  /src/external/apache2/llvm/dist/clang/lib/Sema/
SemaDeclCXX.cpp 7231 Sema::InheritedConstructorInfo *ICI);
7252 Sema::InheritedConstructorInfo ICI(
7255 S, Loc, CD, Sema::CXXDefaultConstructor, &ICI);
8693 Sema::InheritedConstructorInfo *ICI;
8699 Sema::InheritedConstructorInfo *ICI)
8700 : S(S), MD(MD), CSM(CSM), ICI(ICI) {
8741 if (!ICI)
8746 if (auto *MD = ICI->findConstructorForBase(Class, BaseCtor).first)
8814 Sema::InheritedConstructorInfo *ICI, bool Diagnose
    [all...]
  /src/external/apache2/llvm/dist/clang/include/clang/Sema/
Sema.h 5883 InheritedConstructorInfo *ICI = nullptr,

Completed in 111 milliseconds