Home
last modified time | relevance | path

Searched refs:CxtI (Results 1 – 25 of 46) sorted by relevance

12

/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineInternal.h256 return computeOverflowForSignedAdd(LHS, RHS, &CxtI) == in willNotOverflowSignedAdd()
262 return computeOverflowForUnsignedAdd(LHS, RHS, &CxtI) == in willNotOverflowUnsignedAdd()
268 return IsSigned ? willNotOverflowSignedAdd(LHS, RHS, CxtI) in willNotOverflowAdd()
274 return computeOverflowForSignedSub(LHS, RHS, &CxtI) == in willNotOverflowSignedSub()
280 return computeOverflowForUnsignedSub(LHS, RHS, &CxtI) == in willNotOverflowUnsignedSub()
286 return IsSigned ? willNotOverflowSignedSub(LHS, RHS, CxtI) in willNotOverflowSub()
292 return computeOverflowForSignedMul(LHS, RHS, &CxtI) == in willNotOverflowSignedMul()
298 return computeOverflowForUnsignedMul(LHS, RHS, &CxtI) == in willNotOverflowUnsignedMul()
304 return IsSigned ? willNotOverflowSignedMul(LHS, RHS, CxtI) in willNotOverflowMul()
476 const Instruction *CxtI) const { in computeKnownBits() argument
[all …]
H A DInstCombineSimplifyDemanded.cpp122 computeKnownBits(V, Known, Depth, CxtI); in SimplifyDemandedUseBits()
138 computeKnownBits(V, Known, Depth, CxtI); in SimplifyDemandedUseBits()
182 computeKnownBits(I, Known, Depth, CxtI); in SimplifyDemandedUseBits()
550 computeKnownBits(I, Known, Depth, CxtI); in SimplifyDemandedUseBits()
626 computeKnownBits(I, Known, Depth, CxtI); in SimplifyDemandedUseBits()
952 Instruction *CxtI) { in SimplifyMultipleUseDemandedBits() argument
968 CxtI); in SimplifyMultipleUseDemandedBits()
994 CxtI); in SimplifyMultipleUseDemandedBits()
1019 CxtI); in SimplifyMultipleUseDemandedBits()
1039 computeKnownBits(I, Known, Depth, CxtI); in SimplifyMultipleUseDemandedBits()
[all …]
H A DInstCombineCasts.cpp384 Instruction *CxtI) { in canEvaluateTruncated() argument
400 return canEvaluateTruncated(I->getOperand(0), Ty, IC, CxtI) && in canEvaluateTruncated()
401 canEvaluateTruncated(I->getOperand(1), Ty, IC, CxtI); in canEvaluateTruncated()
410 if (IC.MaskedValueIsZero(I->getOperand(0), Mask, 0, CxtI) && in canEvaluateTruncated()
411 IC.MaskedValueIsZero(I->getOperand(1), Mask, 0, CxtI)) { in canEvaluateTruncated()
413 canEvaluateTruncated(I->getOperand(1), Ty, IC, CxtI); in canEvaluateTruncated()
425 canEvaluateTruncated(I->getOperand(1), Ty, IC, CxtI); in canEvaluateTruncated()
442 canEvaluateTruncated(I->getOperand(1), Ty, IC, CxtI); in canEvaluateTruncated()
482 if (!canEvaluateTruncated(IncValue, Ty, IC, CxtI)) in canEvaluateTruncated()
1154 !canEvaluateZExtd(I->getOperand(1), Ty, Tmp, IC, CxtI)) in canEvaluateZExtd()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h458 const Instruction *CxtI) const { in computeKnownBits() argument
459 llvm::computeKnownBits(V, Known, DL, Depth, &AC, CxtI, &DT); in computeKnownBits()
463 const Instruction *CxtI) const { in computeKnownBits() argument
464 return llvm::computeKnownBits(V, DL, Depth, &AC, CxtI, &DT); in computeKnownBits()
469 const Instruction *CxtI = nullptr) {
474 const Instruction *CxtI = nullptr) const {
475 return llvm::MaskedValueIsZero(V, Mask, DL, Depth, &AC, CxtI, &DT);
479 const Instruction *CxtI = nullptr) const {
480 return llvm::ComputeNumSignBits(Op, DL, Depth, &AC, CxtI, &DT);
485 return llvm::ComputeMaxSignificantBits(Op, DL, Depth, &AC, CxtI, &DT);
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DValueTracking.h60 const Instruction *CxtI = nullptr,
76 const Instruction *CxtI = nullptr,
84 const Instruction *CxtI = nullptr,
93 const Instruction *CxtI = nullptr,
108 const Instruction *CxtI = nullptr,
134 const Instruction *CxtI = nullptr,
148 const Instruction *CxtI = nullptr,
156 const Instruction *CxtI = nullptr,
164 const Instruction *CxtI = nullptr,
172 const Instruction *CxtI = nullptr,
[all …]
H A DLazyValueInfo.h71 Instruction *CxtI = nullptr);
78 Instruction *CxtI, bool UseBlockValue);
86 Instruction *CxtI, bool UseBlockValue);
90 Constant *getConstant(Value *V, Instruction *CxtI);
95 ConstantRange getConstantRange(Value *V, Instruction *CxtI,
101 Instruction *CxtI = nullptr);
108 Instruction *CxtI = nullptr);
H A DInstructionSimplify.h98 const Instruction *CxtI = nullptr; member
111 : DL(DL), CxtI(CXTI) {} in DL()
118 : DL(DL), TLI(TLI), DT(DT), AC(AC), CxtI(CXTI), IIQ(UseInstrInfo), in DL()
122 Copy.CxtI = I; in getWithInstruction()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DLazyValueInfo.cpp537 Value *Val, BasicBlock *BB, Instruction *CxtI) { in getBlockValue() argument
1462 OptResult = getBlockValue(V, BB, CxtI); in getValueInBlock()
1489 Instruction *CxtI) { in getValueOnEdge() argument
1497 Result = getEdgeValue(V, FromBB, ToBB, CxtI); in getValueOnEdge()
1596 BasicBlock *BB = CxtI->getParent(); in getConstant()
1614 BasicBlock *BB = CxtI->getParent(); in getConstantRange()
1737 Instruction *CxtI) { in getPredicateOnEdge() argument
1752 Module *M = CxtI->getModule(); in getPredicateAt()
1763 ? getImpl(PImpl, AC, M).getValueInBlock(V, CxtI->getParent(), CxtI) in getPredicateAt()
1764 : getImpl(PImpl, AC, M).getValueAt(V, CxtI); in getPredicateAt()
[all …]
H A DValueTracking.cpp137 if (CxtI && CxtI->getParent()) in safeCxtI()
138 return CxtI; in safeCxtI()
142 if (CxtI && CxtI->getParent()) in safeCxtI()
143 return CxtI; in safeCxtI()
151 if (CxtI && CxtI->getParent()) in safeCxtI()
152 return CxtI; in safeCxtI()
156 if (CxtI && CxtI->getParent()) in safeCxtI()
157 return CxtI; in safeCxtI()
160 if (CxtI && CxtI->getParent()) in safeCxtI()
161 return CxtI; in safeCxtI()
[all …]
H A DInstructionSimplify.cpp615 if (Q.CxtI != nullptr) in foldOrCommuteConstant()
2674 const Instruction *CxtI = Q.CxtI; in computePointerICmp() local
3564 if (!Q.AC || !Q.CxtI || !Q.CxtI->getParent()) in simplifyICmpWithDominatingAssume()
3892 Q.CxtI); in simplifyFCmpInst()
4379 Q.CxtI && isa<FPMathOperator>(Q.CxtI) && Q.CxtI->hasNoSignedZeros(); in simplifySelectWithFCmp()
5662 Q.DL, 0, Q.AC, Q.CxtI, Q.DT)) in simplifyUnaryIntrinsic()
5668 if (Q.CxtI->hasAllowReassoc() && in simplifyUnaryIntrinsic()
5674 if (Q.CxtI->hasAllowReassoc() && in simplifyUnaryIntrinsic()
5680 if (Q.CxtI->hasAllowReassoc() && in simplifyUnaryIntrinsic()
5686 if (Q.CxtI->hasAllowReassoc() && in simplifyUnaryIntrinsic()
[all …]
H A DBasicAliasAnalysis.cpp462 const Instruction *CxtI; member
525 const Instruction *CxtI = dyn_cast<Instruction>(V); in DecomposeGEPExpression() local
660 VariableGEPIndex Entry = {LE.Val, Scale, CxtI, LE.IsNSW}; in DecomposeGEPExpression()
1230 true, &AC, Index.CxtI); in aliasGEP()
1232 computeKnownBits(Index.Val.V, DL, 0, &AC, Index.CxtI, DT); in aliasGEP()
1276 isKnownNonZero(Var.Val.V, DL, 0, &AC, Var.CxtI, DT)) { in aliasGEP()
1802 VariableGEPIndex Entry = {Src.Val, -Src.Scale, Src.CxtI, Src.IsNSW}; in subtractDecomposedGEPs()
/llvm-project-15.0.7/llvm/include/llvm/Transforms/Scalar/
H A DJumpThreading.h132 DenseSet<Value *> &RecursionSet, Instruction *CxtI = nullptr);
137 Instruction *CxtI = nullptr) {
140 RecursionSet, CxtI);
150 Instruction *CxtI = nullptr);
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DCorrelatedValuePropagation.cpp218 Instruction *CxtI) { in getValueOnEdge() argument
219 if (Constant *C = LVI->getConstantOnEdge(Incoming, From, To, CxtI)) in getValueOnEdge()
234 if (Constant *C = LVI->getConstantOnEdge(Condition, From, To, CxtI)) { in getValueOnEdge()
249 if (LVI->getPredicateOnEdge(ICmpInst::ICMP_EQ, SI, C, From, To, CxtI) == in getValueOnEdge()
256 if (LVI->getPredicateOnEdge(ICmpInst::ICMP_EQ, SI, C, From, To, CxtI) == in getValueOnEdge()
696 static bool isNonNegative(Value *V, LazyValueInfo *LVI, Instruction *CxtI) { in isNonNegative() argument
698 auto Result = LVI->getPredicateAt(ICmpInst::ICMP_SGE, V, Zero, CxtI, in isNonNegative()
705 auto Result = LVI->getPredicateAt(ICmpInst::ICMP_SLE, V, Zero, CxtI, in isNonPositive()
712 Domain getDomain(Value *V, LazyValueInfo *LVI, Instruction *CxtI) { in getDomain() argument
713 if (isNonNegative(V, LVI, CxtI)) in getDomain()
[all …]
H A DJumpThreading.cpp635 Instruction *CxtI) { in computeValueKnownInPredecessorsImpl() argument
688 BB, CxtI); in computeValueKnownInPredecessorsImpl()
701 RecursionSet, CxtI); in computeValueKnownInPredecessorsImpl()
715 RecursionSet, CxtI); in computeValueKnownInPredecessorsImpl()
737 RecursionSet, CxtI); in computeValueKnownInPredecessorsImpl()
849 CxtI ? CxtI : Cmp); in computeValueKnownInPredecessorsImpl()
874 CmpConst, P, BB, CxtI ? CxtI : Cmp); in computeValueKnownInPredecessorsImpl()
902 AddLHS, P, BB, CxtI ? CxtI : cast<Instruction>(CmpLHS)); in computeValueKnownInPredecessorsImpl()
978 assert(CxtI->getParent() == BB && "CxtI should be in BB"); in computeValueKnownInPredecessorsImpl()
979 Constant *CI = LVI->getConstant(V, CxtI); in computeValueKnownInPredecessorsImpl()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Transforms/Utils/
H A DLocal.h217 const Instruction *CxtI = nullptr,
223 const Instruction *CxtI = nullptr,
226 return getOrEnforceKnownAlignment(V, MaybeAlign(), DL, CxtI, AC, DT);
/llvm-project-15.0.7/llvm/unittests/Analysis/
H A DValueTrackingTest.cpp75 CxtI = findInstructionByNameOrNull(F, "CxtI"); in parseAssembly()
88 Instruction *CxtI = nullptr, *CxtI2 = nullptr, *CxtI3 = nullptr; member in __anon3403b59f0111::ValueTrackingTest
1064 EXPECT_FALSE(isGuaranteedNotToBeUndefOrPoison(A, &AC, CxtI, &DT)); in TEST_F()
1208 EXPECT_EQ(getKnownAlignment(A, DL, CxtI, &AC, &DT), Align(1)); in TEST_F()
1259 EXPECT_TRUE(isKnownNonZero(A, DL, 0, &AC, CxtI)); in TEST_F()
1282 EXPECT_EQ(isKnownNonZero(A, DL, 0, &AC, CxtI, &DT), true); in TEST_F()
1306 EXPECT_EQ(isKnownNonZero(A, DL, 0, &AC, CxtI, &DT), true); in TEST_F()
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonTargetTransformInfo.cpp269 const Instruction *CxtI) { in getArithmeticInstrCost() argument
274 Opd2PropInfo, Args, CxtI); in getArithmeticInstrCost()
282 Opd1PropInfo, Opd2PropInfo, Args, CxtI); in getArithmeticInstrCost()
H A DHexagonTargetTransformInfo.h149 const Instruction *CxtI = nullptr);
/llvm-project-15.0.7/llvm/lib/Target/WebAssembly/
H A DWebAssemblyTargetTransformInfo.h69 const Instruction *CxtI = nullptr);
H A DWebAssemblyTargetTransformInfo.cpp58 const Instruction *CxtI) { in getArithmeticInstrCost() argument
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUTargetTransformInfo.cpp518 const Instruction *CxtI) { in getArithmeticInstrCost() argument
574 if (CxtI && CxtI->hasOneUse()) in getArithmeticInstrCost()
575 if (const auto *FAdd = dyn_cast<BinaryOperator>(*CxtI->user_begin())) { in getArithmeticInstrCost()
587 (FAdd->hasAllowContract() && CxtI->hasAllowContract())) in getArithmeticInstrCost()
661 Opd1PropInfo, Opd2PropInfo, Args, CxtI); in getArithmeticInstrCost()
/llvm-project-15.0.7/llvm/lib/Target/BPF/
H A DBPFTargetTransformInfo.h65 const Instruction *CxtI = nullptr) {
/llvm-project-15.0.7/llvm/lib/Target/NVPTX/
H A DNVPTXTargetTransformInfo.h103 const Instruction *CxtI = nullptr);
/llvm-project-15.0.7/llvm/lib/Target/Lanai/
H A DLanaiTargetTransformInfo.h100 const Instruction *CxtI = nullptr) {
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.h93 const Instruction *CxtI = nullptr);

12