Home
last modified time | relevance | path

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

/llvm-project-15.0.7/libcxx/test/std/containers/sequences/deque/deque.special/
H A Dcopy.pass.cpp53 typedef cpp17_input_iterator<CI> ICI; in testN() typedef
66 assert(std::copy(ICI(c2.cbegin()), ICI(c2.cend()), c1.begin()) == c1.end()); in testN()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DSimplifyIndVar.cpp533 if (!ICI) return false; in eliminateTrunc()
535 if (!(ICI->getOperand(0) == TI && L->isLoopInvariant(ICI->getOperand(1))) && in eliminateTrunc()
536 !(ICI->getOperand(1) == TI && L->isLoopInvariant(ICI->getOperand(0)))) in eliminateTrunc()
544 ICmpUsers.push_back(ICI); in eliminateTrunc()
549 if (ICI->isUnsigned()) in eliminateTrunc()
555 if (ICI->isEquality()) in eliminateTrunc()
566 for (auto *ICI : ICmpUsers) { in eliminateTrunc() local
568 auto *Op1 = IsSwapped ? ICI->getOperand(0) : ICI->getOperand(1); in eliminateTrunc()
578 if (CanUseZExt(ICI)) { in eliminateTrunc()
591 ICI->replaceAllUsesWith(NewICI); in eliminateTrunc()
[all …]
H A DSimplifyCFG.cpp555 ICmpInst *ICI; in matchInstruction() local
654 return ICI->getOperand(0); in matchInstruction()
775 if (ICI->isEquality() && GetConstantInt(ICI->getOperand(1), DL)) in isValueEqualityComparison()
776 CV = ICI->getOperand(0); in isValueEqualityComparison()
4436 ICI->setOperand(0, VVal); in tryToSimplifyUncondBranchWithICmpInIt()
4438 if (Value *V = simplifyInstruction(ICI, {DL, ICI})) { in tryToSimplifyUncondBranchWithICmpInIt()
4440 ICI->eraseFromParent(); in tryToSimplifyUncondBranchWithICmpInIt()
4456 ICI->replaceAllUsesWith(V); in tryToSimplifyUncondBranchWithICmpInIt()
4457 ICI->eraseFromParent(); in tryToSimplifyUncondBranchWithICmpInIt()
4481 ICI->eraseFromParent(); in tryToSimplifyUncondBranchWithICmpInIt()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DLoopPredication.cpp266 Optional<LoopICmp> parseLoopICmp(ICmpInst *ICI);
380 LoopPredication::parseLoopICmp(ICmpInst *ICI) { in parseLoopICmp() argument
381 auto Pred = ICI->getPredicate(); in parseLoopICmp()
382 auto *LHS = ICI->getOperand(0); in parseLoopICmp()
383 auto *RHS = ICI->getOperand(1); in parseLoopICmp()
687 LLVM_DEBUG(ICI->dump()); in widenICmpRangeCheck()
693 auto RangeCheck = parseLoopICmp(ICI); in widenICmpRangeCheck()
780 if (ICmpInst *ICI = dyn_cast<ICmpInst>(Condition)) { in collectChecks() local
873 auto *ICI = dyn_cast<ICmpInst>(BI->getCondition()); in parseLoopLatchICmp() local
874 if (!ICI) { in parseLoopLatchICmp()
[all …]
H A DInductiveRangeCheckElimination.cpp300 ICmpInst::Predicate Pred = ICI->getPredicate(); in INITIALIZE_PASS_DEPENDENCY()
301 Value *LHS = ICI->getOperand(0); in INITIALIZE_PASS_DEPENDENCY()
302 Value *RHS = ICI->getOperand(1); in INITIALIZE_PASS_DEPENDENCY()
369 ICmpInst *ICI = dyn_cast<ICmpInst>(Condition); in extractRangeChecksFromCond() local
370 if (!ICI) in extractRangeChecksFromCond()
786 ICmpInst *ICI = dyn_cast<ICmpInst>(LatchBr->getCondition()); in parseLoopStructure() local
787 if (!ICI || !isa<IntegerType>(ICI->getOperand(0)->getType())) { in parseLoopStructure()
798 ICmpInst::Predicate Pred = ICI->getPredicate(); in parseLoopStructure()
799 Value *LeftValue = ICI->getOperand(0); in parseLoopStructure()
803 Value *RightValue = ICI->getOperand(1); in parseLoopStructure()
[all …]
H A DScalarizer.cpp132 ICmpSplitter(ICmpInst &ici) : ICI(ici) {} in ICmpSplitter()
136 return Builder.CreateICmp(ICI.getPredicate(), Op0, Op1, Name); in operator ()()
139 ICmpInst &ICI; member
214 bool visitICmpInst(ICmpInst &ICI);
227 bool visitCallInst(CallInst &ICI);
662 bool ScalarizerVisitor::visitICmpInst(ICmpInst &ICI) { in visitICmpInst() argument
663 return splitBinary(ICI, ICmpSplitter(ICI)); in visitICmpInst()
H A DLoopStrengthReduce.cpp3543 if (const ICmpInst *ICI = dyn_cast<ICmpInst>(UserInst)) { in CollectLoopInvariantFixupsAndFormulae() local
3545 Value *OtherOp = const_cast<Value *>(ICI->getOperand(OtherIdx)); in CollectLoopInvariantFixupsAndFormulae()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp793 Value *A = ICI->getOperand(0); in canonicalizeSaturatedSubtract()
794 Value *B = ICI->getOperand(1); in canonicalizeSaturatedSubtract()
914 if (!ICI->isEquality() || !match(ICI->getOperand(1), m_Zero())) in foldSelectCtlzToCttz()
927 Value *X = ICI->getOperand(0); in foldSelectCtlzToCttz()
952 Value *CmpLHS = ICI->getOperand(0); in foldSelectCttzCtlz()
953 Value *CmpRHS = ICI->getOperand(1); in foldSelectCttzCtlz()
1549 CPred = ICI->getPredicate(); in foldSelectInstWithICmpConst()
1551 CPred = ICI->getInversePredicate(); in foldSelectInstWithICmpConst()
1596 Value *CmpLHS = ICI->getOperand(0); in foldSelectInstWithICmp()
1597 Value *CmpRHS = ICI->getOperand(1); in foldSelectInstWithICmp()
[all …]
H A DInstCombineInternal.h250 Instruction *transformZExtICmp(ICmpInst *ICI, ZExtInst &CI);
252 Instruction *transformSExtICmp(ICmpInst *ICI, Instruction &CI);
660 Instruction *foldAllocaCmp(ICmpInst &ICI, const AllocaInst *Alloca);
663 GlobalVariable *GV, CmpInst &ICI,
727 Instruction *foldICmpIntrinsicWithConstant(ICmpInst &ICI, IntrinsicInst *II,
729 Instruction *foldICmpEqIntrinsicWithConstant(ICmpInst &ICI, IntrinsicInst *II,
740 Instruction *foldSelectInstWithICmp(SelectInst &SI, ICmpInst *ICI);
741 Instruction *foldSelectValueEquivalence(SelectInst &SI, ICmpInst &ICI);
H A DInstCombineCasts.cpp1362 Instruction *InstCombinerImpl::transformSExtICmp(ICmpInst *ICI, in transformSExtICmp() argument
1364 Value *Op0 = ICI->getOperand(0), *Op1 = ICI->getOperand(1); in transformSExtICmp()
1365 ICmpInst::Predicate Pred = ICI->getPredicate(); in transformSExtICmp()
1390 if (ICI->hasOneUse() && in transformSExtICmp()
1391 ICI->isEquality() && (Op1C->isZero() || Op1C->getValue().isPowerOf2())){ in transformSExtICmp()
1396 Value *In = ICI->getOperand(0); in transformSExtICmp()
1566 if (ICmpInst *ICI = dyn_cast<ICmpInst>(Src)) in visitSExt() local
1567 return transformSExtICmp(ICI, CI); in visitSExt()
H A DInstCombineCompares.cpp107 LoadInst *LI, GetElementPtrInst *GEP, GlobalVariable *GV, CmpInst &ICI, in foldCmpLoadFromIndexedGlobal() argument
187 Constant *CompareRHS = cast<Constant>(ICI.getOperand(1)); in foldCmpLoadFromIndexedGlobal()
203 Constant *C = ConstantFoldCompareInstOperands(ICI.getPredicate(), Elt, in foldCmpLoadFromIndexedGlobal()
312 return replaceInstUsesWith(ICI, Builder.getFalse()); in foldCmpLoadFromIndexedGlobal()
333 return replaceInstUsesWith(ICI, Builder.getTrue()); in foldCmpLoadFromIndexedGlobal()
1010 Instruction *InstCombinerImpl::foldAllocaCmp(ICmpInst &ICI, in foldAllocaCmp() argument
1012 assert(ICI.isEquality() && "Cannot fold non-equality comparison."); in foldAllocaCmp()
1080 auto *Res = ConstantInt::get(ICI.getType(), in foldAllocaCmp()
1081 !CmpInst::isTrueWhenEqual(ICI.getPredicate())); in foldAllocaCmp()
1082 return replaceInstUsesWith(ICI, Res); in foldAllocaCmp()
H A DInstructionCombining.cpp2755 ICmpInst *ICI = cast<ICmpInst>(I); in isAllocSiteRemovable() local
2759 if (!ICI->isEquality()) in isAllocSiteRemovable()
2761 unsigned OtherIndex = (ICI->getOperand(0) == PI) ? 1 : 0; in isAllocSiteRemovable()
2762 if (!isNeverEqualToUnescapedAlloc(ICI->getOperand(OtherIndex), TLI, AI)) in isAllocSiteRemovable()
/llvm-project-15.0.7/libcxx/test/std/containers/sequences/deque/deque.cons/
H A Dassign_iter_iter.pass.cpp70 typedef cpp17_input_iterator<CI> ICI; in testI() typedef
71 c1.assign(ICI(c2.begin()), ICI(c2.end())); in testI()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/libcxx/test/std/containers/sequences/deque/deque.modifiers/
H A Dinsert_iter_iter.pass.cpp170 typedef cpp17_input_iterator<CI> ICI; in testI() typedef
172 CI i = c1.insert(c1.begin() + P, ICI(c2.begin()), ICI(c2.end())); in testI()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DLazyValueInfo.cpp1074 static ValueLatticeElement getValueFromICmpCondition(Value *Val, ICmpInst *ICI, in getValueFromICmpCondition() argument
1076 Value *LHS = ICI->getOperand(0); in getValueFromICmpCondition()
1077 Value *RHS = ICI->getOperand(1); in getValueFromICmpCondition()
1081 isTrueDest ? ICI->getPredicate() : ICI->getInversePredicate(); in getValueFromICmpCondition()
1084 if (ICI->isEquality() && LHS == Val) { in getValueFromICmpCondition()
1170 if (ICmpInst *ICI = dyn_cast<ICmpInst>(Cond)) in getValueFromConditionImpl() local
1171 return getValueFromICmpCondition(Val, ICI, isTrueDest); in getValueFromConditionImpl()
H A DGlobalsModRef.cpp371 } else if (ICmpInst *ICI = dyn_cast<ICmpInst>(I)) { in AnalyzeUsesOfPointer() local
372 if (!isa<ConstantPointerNull>(ICI->getOperand(1))) in AnalyzeUsesOfPointer()
H A DScalarEvolution.cpp5971 auto *ICI = Cond; in createNodeForSelectOrPHIInstWithICmpInstCond() local
5973 Value *LHS = ICI->getOperand(0); in createNodeForSelectOrPHIInstWithICmpInstCond()
5974 Value *RHS = ICI->getOperand(1); in createNodeForSelectOrPHIInstWithICmpInstCond()
5976 switch (ICI->getPredicate()) { in createNodeForSelectOrPHIInstWithICmpInstCond()
5990 bool Signed = ICI->isSigned(); in createNodeForSelectOrPHIInstWithICmpInstCond()
6147 I, ICI, TrueVal, FalseVal); in createNodeForSelectOrPHI()
7368 if (!ICI) in getOperandsToCreate()
7370 Value *LHS = ICI->getOperand(0); in getOperandsToCreate()
7371 Value *RHS = ICI->getOperand(1); in getOperandsToCreate()
11270 if (!ICI) return false; in isImpliedCond()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DGlobalOpt.cpp934 ICmpInst *ICI = dyn_cast<ICmpInst>(LoadUse.getUser()); in OptimizeGlobalAddressOfAllocation() local
935 if (!ICI) { in OptimizeGlobalAddressOfAllocation()
947 switch (ICI->getPredicate()) { in OptimizeGlobalAddressOfAllocation()
957 LV = BinaryOperator::CreateNot(LV, "notinit", ICI); in OptimizeGlobalAddressOfAllocation()
963 ICI->replaceAllUsesWith(LV); in OptimizeGlobalAddressOfAllocation()
964 ICI->eraseFromParent(); in OptimizeGlobalAddressOfAllocation()
H A DAttributorAttributes.cpp8803 static bool calculateICmpInst(const ICmpInst *ICI, const APInt &LHS, in calculateICmpInst()
8805 return ICmpInst::compare(LHS, RHS, ICI->getPredicate()); in calculateICmpInst()
8897 ChangeStatus updateWithICmpInst(Attributor &A, ICmpInst *ICI) { in updateWithICmpInst()
8899 Value *LHS = ICI->getOperand(0); in updateWithICmpInst()
8900 Value *RHS = ICI->getOperand(1); in updateWithICmpInst()
8919 bool CmpResult = calculateICmpInst(ICI, Zero, R); in updateWithICmpInst()
8927 bool CmpResult = calculateICmpInst(ICI, L, Zero); in updateWithICmpInst()
8936 bool CmpResult = calculateICmpInst(ICI, L, R); in updateWithICmpInst()
9075 if (auto *ICI = dyn_cast<ICmpInst>(I)) in updateImpl() local
9076 return updateWithICmpInst(A, ICI); in updateImpl()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaDeclCXX.cpp7336 Sema::InheritedConstructorInfo *ICI);
7357 Sema::InheritedConstructorInfo ICI( in computeImplicitExceptionSpec() local
7360 S, Loc, CD, Sema::CXXDefaultConstructor, &ICI); in computeImplicitExceptionSpec()
8880 Sema::InheritedConstructorInfo *ICI; member
8887 : S(S), MD(MD), CSM(CSM), ICI(ICI) { in SpecialMemberVisitor()
8928 if (!ICI) in lookupInheritedCtor()
9008 return ICI ? Sema::CXXInvalid : CSM; in getEffectiveCSM()
9447 assert(ICI || CSM == getSpecialMember(MD)); in ShouldDeleteSpecialMember()
9449 if (ICI) in ShouldDeleteSpecialMember()
13282 Sema::InheritedConstructorInfo *ICI) { in ComputeDefaultedSpecialMemberExceptionSpec() argument
[all …]
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DSema.h6227 InheritedConstructorInfo *ICI = nullptr,