Home
last modified time | relevance | path

Searched refs:ICI (Results 1 – 20 of 20) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopPredication.cpp275 std::optional<LoopICmp> parseLoopICmp(ICmpInst *ICI);
299 std::optional<Value *> widenICmpRangeCheck(ICmpInst *ICI,
350 auto Pred = ICI->getPredicate(); in parseLoopICmp()
351 auto *LHS = ICI->getOperand(0); in parseLoopICmp()
352 auto *RHS = ICI->getOperand(1); in parseLoopICmp()
657 LLVM_DEBUG(ICI->dump()); in widenICmpRangeCheck()
663 auto RangeCheck = parseLoopICmp(ICI); in widenICmpRangeCheck()
721 if (ICmpInst *ICI = dyn_cast<ICmpInst>(Check)) in widenChecks() local
827 auto *ICI = dyn_cast<ICmpInst>(BI->getCondition()); in parseLoopLatchICmp() local
828 if (!ICI) { in parseLoopLatchICmp()
[all …]
H A DInductiveRangeCheckElimination.cpp152 static bool parseRangeCheckICmp(Loop *L, ICmpInst *ICI, ScalarEvolution &SE,
270 bool InductiveRangeCheck::parseRangeCheckICmp(Loop *L, ICmpInst *ICI, in parseRangeCheckICmp() argument
278 ICmpInst::Predicate Pred = ICI->getPredicate(); in parseRangeCheckICmp()
279 Value *LHS = ICI->getOperand(0); in parseRangeCheckICmp()
280 Value *RHS = ICI->getOperand(1); in parseRangeCheckICmp()
502 ICmpInst *ICI = dyn_cast<ICmpInst>(Condition); in extractRangeChecksFromCond() local
503 if (!ICI) in extractRangeChecksFromCond()
508 if (!parseRangeCheckICmp(L, ICI, SE, IndexAddRec, End)) in extractRangeChecksFromCond()
H A DScalarizer.cpp167 ICmpSplitter(ICmpInst &ici) : ICI(ici) {} in ICmpSplitter()
171 return Builder.CreateICmp(ICI.getPredicate(), Op0, Op1, Name); in operator ()()
174 ICmpInst &ICI; member
298 bool visitICmpInst(ICmpInst &ICI);
311 bool visitCallInst(CallInst &ICI);
795 bool ScalarizerVisitor::visitICmpInst(ICmpInst &ICI) { in visitICmpInst() argument
796 return splitBinary(ICI, ICmpSplitter(ICI)); in visitICmpInst()
H A DLoopStrengthReduce.cpp3565 if (const ICmpInst *ICI = dyn_cast<ICmpInst>(UserInst)) { in CollectLoopInvariantFixupsAndFormulae() local
3567 Value *OtherOp = const_cast<Value *>(ICI->getOperand(OtherIdx)); in CollectLoopInvariantFixupsAndFormulae()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyIndVar.cpp508 if (!ICI) return false; in eliminateTrunc()
510 if (!(ICI->getOperand(0) == TI && L->isLoopInvariant(ICI->getOperand(1))) && in eliminateTrunc()
511 !(ICI->getOperand(1) == TI && L->isLoopInvariant(ICI->getOperand(0)))) in eliminateTrunc()
519 ICmpUsers.push_back(ICI); in eliminateTrunc()
524 if (ICI->isUnsigned()) in eliminateTrunc()
530 if (ICI->isEquality()) in eliminateTrunc()
541 for (auto *ICI : ICmpUsers) { in eliminateTrunc() local
543 auto *Op1 = IsSwapped ? ICI->getOperand(0) : ICI->getOperand(1); in eliminateTrunc()
544 IRBuilder<> Builder(ICI); in eliminateTrunc()
554 if (CanUseZExt(ICI)) { in eliminateTrunc()
[all …]
H A DLoopConstrainer.cpp155 ICmpInst *ICI = dyn_cast<ICmpInst>(LatchBr->getCondition()); in parseLoopStructure() local
156 if (!ICI || !isa<IntegerType>(ICI->getOperand(0)->getType())) { in parseLoopStructure()
170 ICmpInst::Predicate Pred = ICI->getPredicate(); in parseLoopStructure()
171 Value *LeftValue = ICI->getOperand(0); in parseLoopStructure()
175 Value *RightValue = ICI->getOperand(1); in parseLoopStructure()
235 if (ICI->isEquality() && !HasNoSignedWrap(IndVarBase)) { in parseLoopStructure()
H A DSimplifyCFG.cpp564 ICmpInst *ICI; in matchInstruction() local
663 return ICI->getOperand(0); in matchInstruction()
784 if (ICI->isEquality() && GetConstantInt(ICI->getOperand(1), DL)) in isValueEqualityComparison()
785 CV = ICI->getOperand(0); in isValueEqualityComparison()
4728 ICI->setOperand(0, VVal); in tryToSimplifyUncondBranchWithICmpInIt()
4730 if (Value *V = simplifyInstruction(ICI, {DL, ICI})) { in tryToSimplifyUncondBranchWithICmpInIt()
4732 ICI->eraseFromParent(); in tryToSimplifyUncondBranchWithICmpInIt()
4748 ICI->replaceAllUsesWith(V); in tryToSimplifyUncondBranchWithICmpInIt()
4749 ICI->eraseFromParent(); in tryToSimplifyUncondBranchWithICmpInIt()
4773 ICI->eraseFromParent(); in tryToSimplifyUncondBranchWithICmpInIt()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp892 Value *A = ICI->getOperand(0); in canonicalizeSaturatedSubtract()
893 Value *B = ICI->getOperand(1); in canonicalizeSaturatedSubtract()
1079 if (!ICI->isEquality() || !match(ICI->getOperand(1), m_Zero())) in foldSelectCtlzToCttz()
1096 Value *X = ICI->getOperand(0); in foldSelectCtlzToCttz()
1121 Value *CmpLHS = ICI->getOperand(0); in foldSelectCttzCtlz()
1122 Value *CmpRHS = ICI->getOperand(1); in foldSelectCttzCtlz()
1125 if (!ICI->isEquality()) in foldSelectCttzCtlz()
1660 CPred = ICI->getPredicate(); in foldSelectInstWithICmpConst()
1707 Value *CmpLHS = ICI->getOperand(0); in foldSelectInstWithICmp()
1708 Value *CmpRHS = ICI->getOperand(1); in foldSelectInstWithICmp()
[all …]
H A DInstCombineInternal.h630 GlobalVariable *GV, CmpInst &ICI,
701 Instruction *foldICmpIntrinsicWithConstant(ICmpInst &ICI, IntrinsicInst *II,
703 Instruction *foldICmpEqIntrinsicWithConstant(ICmpInst &ICI, IntrinsicInst *II,
718 Instruction *foldSelectInstWithICmp(SelectInst &SI, ICmpInst *ICI);
719 Instruction *foldSelectValueEquivalence(SelectInst &SI, ICmpInst &ICI);
H A DInstructionCombining.cpp2731 ICmpInst *ICI = cast<ICmpInst>(I); in isAllocSiteRemovable() local
2735 if (!ICI->isEquality()) in isAllocSiteRemovable()
2737 unsigned OtherIndex = (ICI->getOperand(0) == PI) ? 1 : 0; in isAllocSiteRemovable()
2738 if (!isNeverEqualToUnescapedAlloc(ICI->getOperand(OtherIndex), TLI, AI)) in isAllocSiteRemovable()
H A DInstCombineCompares.cpp111 LoadInst *LI, GetElementPtrInst *GEP, GlobalVariable *GV, CmpInst &ICI, in foldCmpLoadFromIndexedGlobal() argument
193 Constant *CompareRHS = cast<Constant>(ICI.getOperand(1)); in foldCmpLoadFromIndexedGlobal()
214 Constant *C = ConstantFoldCompareInstOperands(ICI.getPredicate(), Elt, in foldCmpLoadFromIndexedGlobal()
324 return replaceInstUsesWith(ICI, Builder.getFalse()); in foldCmpLoadFromIndexedGlobal()
345 return replaceInstUsesWith(ICI, Builder.getTrue()); in foldCmpLoadFromIndexedGlobal()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DDependencyAnalysis.cpp89 if (const ICmpInst *ICI = dyn_cast<ICmpInst>(Inst)) { in CanUse() local
93 if (!IsPotentialRetainableObjPtr(ICI->getOperand(1), *PA.getAA())) in CanUse()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DLazyValueInfo.cpp447 getValueFromICmpCondition(Value *Val, ICmpInst *ICI, bool isTrueDest,
1150 Value *Val, ICmpInst *ICI, bool isTrueDest, bool UseBlockValue) { in getValueFromICmpCondition() argument
1151 Value *LHS = ICI->getOperand(0); in getValueFromICmpCondition()
1152 Value *RHS = ICI->getOperand(1); in getValueFromICmpCondition()
1156 isTrueDest ? ICI->getPredicate() : ICI->getInversePredicate(); in getValueFromICmpCondition()
1159 if (ICI->isEquality() && LHS == Val) { in getValueFromICmpCondition()
1174 return getValueFromSimpleICmpCondition(EdgePred, RHS, Offset, ICI, in getValueFromICmpCondition()
1179 return getValueFromSimpleICmpCondition(SwappedPred, LHS, Offset, ICI, in getValueFromICmpCondition()
1264 if (ICmpInst *ICI = dyn_cast<ICmpInst>(Cond)) in getValueFromCondition() local
1265 return getValueFromICmpCondition(Val, ICI, IsTrueDest, UseBlockValue); in getValueFromCondition()
H A DGlobalsModRef.cpp383 } else if (ICmpInst *ICI = dyn_cast<ICmpInst>(I)) { in AnalyzeUsesOfPointer() local
384 if (!isa<ConstantPointerNull>(ICI->getOperand(1))) in AnalyzeUsesOfPointer()
H A DScalarEvolution.cpp6078 auto *ICI = Cond; in createNodeForSelectOrPHIInstWithICmpInstCond() local
6080 Value *LHS = ICI->getOperand(0); in createNodeForSelectOrPHIInstWithICmpInstCond()
6081 Value *RHS = ICI->getOperand(1); in createNodeForSelectOrPHIInstWithICmpInstCond()
6083 switch (ICI->getPredicate()) { in createNodeForSelectOrPHIInstWithICmpInstCond()
6097 bool Signed = ICI->isSigned(); in createNodeForSelectOrPHIInstWithICmpInstCond()
7590 if (!ICI) in getOperandsToCreate()
7592 Value *LHS = ICI->getOperand(0); in getOperandsToCreate()
7593 Value *RHS = ICI->getOperand(1); in getOperandsToCreate()
11578 if (!ICI) return false; in isImpliedCond()
11584 FoundPred = ICI->getInversePredicate(); in isImpliedCond()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DGlobalOpt.cpp962 ICmpInst *ICI = dyn_cast<ICmpInst>(LoadUse.getUser()); in OptimizeGlobalAddressOfAllocation() local
963 if (!ICI) { in OptimizeGlobalAddressOfAllocation()
973 switch (ICI->getPredicate()) { in OptimizeGlobalAddressOfAllocation()
983 LV = BinaryOperator::CreateNot(LV, "notinit", ICI); in OptimizeGlobalAddressOfAllocation()
989 ICI->replaceAllUsesWith(LV); in OptimizeGlobalAddressOfAllocation()
990 ICI->eraseFromParent(); in OptimizeGlobalAddressOfAllocation()
H A DAttributorAttributes.cpp9724 static bool calculateICmpInst(const ICmpInst *ICI, const APInt &LHS, in calculateICmpInst()
9726 return ICmpInst::compare(LHS, RHS, ICI->getPredicate()); in calculateICmpInst()
9818 ChangeStatus updateWithICmpInst(Attributor &A, ICmpInst *ICI) { in updateWithICmpInst()
9820 Value *LHS = ICI->getOperand(0); in updateWithICmpInst()
9821 Value *RHS = ICI->getOperand(1); in updateWithICmpInst()
9840 bool CmpResult = calculateICmpInst(ICI, Zero, R); in updateWithICmpInst()
9848 bool CmpResult = calculateICmpInst(ICI, L, Zero); in updateWithICmpInst()
9857 bool CmpResult = calculateICmpInst(ICI, L, R); in updateWithICmpInst()
10015 if (auto *ICI = dyn_cast<ICmpInst>(I)) in updateImpl() local
10016 return updateWithICmpInst(A, ICI); in updateImpl()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaDeclCXX.cpp7594 Sema::InheritedConstructorInfo *ICI);
7615 Sema::InheritedConstructorInfo ICI( in computeImplicitExceptionSpec() local
7618 S, Loc, CD, Sema::CXXDefaultConstructor, &ICI); in computeImplicitExceptionSpec()
9252 Sema::InheritedConstructorInfo *ICI; member
9259 : S(S), MD(MD), CSM(CSM), ICI(ICI) { in SpecialMemberVisitor()
9300 if (!ICI) in lookupInheritedCtor()
9380 return ICI ? Sema::CXXInvalid : CSM; in getEffectiveCSM()
9830 assert(ICI || CSM == getSpecialMember(MD)); in ShouldDeleteSpecialMember()
9832 if (ICI) in ShouldDeleteSpecialMember()
13830 Sema::InheritedConstructorInfo *ICI) { in ComputeDefaultedSpecialMemberExceptionSpec() argument
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp30472 ICmpInst *ICI = dyn_cast<ICmpInst>(AI->user_back()); in emitCmpArithAtomicRMWIntrinsic() local
30473 if (!ICI) { in emitCmpArithAtomicRMWIntrinsic()
30476 ICI = cast<ICmpInst>(TempI->user_back()); in emitCmpArithAtomicRMWIntrinsic()
30479 ICmpInst::Predicate Pred = ICI->getPredicate(); in emitCmpArithAtomicRMWIntrinsic()
30523 ICI->replaceAllUsesWith(Result); in emitCmpArithAtomicRMWIntrinsic()
30524 ICI->eraseFromParent(); in emitCmpArithAtomicRMWIntrinsic()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h6529 InheritedConstructorInfo *ICI = nullptr,