Home
last modified time | relevance | path

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

12

/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h470 const Instruction *CxtI) const { in computeKnownBits() argument
471 llvm::computeKnownBits(V, Known, Depth, SQ.getWithInstruction(CxtI)); in computeKnownBits()
475 const Instruction *CxtI) const { in computeKnownBits() argument
476 return llvm::computeKnownBits(V, Depth, SQ.getWithInstruction(CxtI)); in computeKnownBits()
481 const Instruction *CxtI = nullptr) {
486 const Instruction *CxtI = nullptr) const {
491 const Instruction *CxtI = nullptr) const {
492 return llvm::ComputeNumSignBits(Op, DL, Depth, &AC, CxtI, &DT);
497 return llvm::ComputeMaxSignificantBits(Op, DL, Depth, &AC, CxtI, &DT);
516 const Instruction *CxtI) const { in computeOverflowForUnsignedAdd() argument
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineInternal.h309 const Instruction &CxtI) const { in willNotOverflowSignedAdd() argument
310 return computeOverflowForSignedAdd(LHS, RHS, &CxtI) == in willNotOverflowSignedAdd()
317 return computeOverflowForUnsignedAdd(LHS, RHS, &CxtI) == in willNotOverflowUnsignedAdd()
323 return IsSigned ? willNotOverflowSignedAdd(LHS, RHS, CxtI) in willNotOverflowAdd()
329 return computeOverflowForSignedSub(LHS, RHS, &CxtI) == in willNotOverflowSignedSub()
335 return computeOverflowForUnsignedSub(LHS, RHS, &CxtI) == in willNotOverflowUnsignedSub()
341 return IsSigned ? willNotOverflowSignedSub(LHS, RHS, CxtI) in willNotOverflowSub()
347 return computeOverflowForSignedMul(LHS, RHS, &CxtI) == in willNotOverflowSignedMul()
353 return computeOverflowForUnsignedMul(LHS, RHS, &CxtI) == in willNotOverflowUnsignedMul()
359 return IsSigned ? willNotOverflowSignedMul(LHS, RHS, CxtI) in willNotOverflowMul()
[all …]
H A DInstCombineSimplifyDemanded.cpp140 computeKnownBits(V, Known, Depth, CxtI); in SimplifyDemandedUseBits()
153 computeKnownBits(V, Known, Depth, CxtI); in SimplifyDemandedUseBits()
204 computeKnownBits(I, Known, Depth, CxtI); in SimplifyDemandedUseBits()
630 computeKnownBits(I, Known, Depth, CxtI); in SimplifyDemandedUseBits()
694 computeKnownBits(I, Known, Depth, CxtI); in SimplifyDemandedUseBits()
745 computeKnownBits(I, Known, Depth, CxtI); in SimplifyDemandedUseBits()
810 computeKnownBits(I, Known, Depth, CxtI); in SimplifyDemandedUseBits()
872 computeKnownBits(I, Known, Depth, CxtI); in SimplifyDemandedUseBits()
1090 Instruction *CxtI) { in SimplifyMultipleUseDemandedBits() argument
1205 computeKnownBits(I, Known, Depth, CxtI); in SimplifyMultipleUseDemandedBits()
[all …]
H A DInstCombineCasts.cpp262 Instruction *CxtI) { in canEvaluateTruncated() argument
278 return canEvaluateTruncated(I->getOperand(0), Ty, IC, CxtI) && in canEvaluateTruncated()
279 canEvaluateTruncated(I->getOperand(1), Ty, IC, CxtI); in canEvaluateTruncated()
288 if (IC.MaskedValueIsZero(I->getOperand(0), Mask, 0, CxtI) && in canEvaluateTruncated()
289 IC.MaskedValueIsZero(I->getOperand(1), Mask, 0, CxtI)) { in canEvaluateTruncated()
291 canEvaluateTruncated(I->getOperand(1), Ty, IC, CxtI); in canEvaluateTruncated()
303 canEvaluateTruncated(I->getOperand(1), Ty, IC, CxtI); in canEvaluateTruncated()
360 if (!canEvaluateTruncated(IncValue, Ty, IC, CxtI)) in canEvaluateTruncated()
378 canEvaluateTruncated(I->getOperand(1), Ty, IC, CxtI); in canEvaluateTruncated()
1013 !canEvaluateZExtd(I->getOperand(1), Ty, Tmp, IC, CxtI)) in canEvaluateZExtd()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DLazyValueInfo.h70 Instruction *CxtI = nullptr);
77 Instruction *CxtI, bool UseBlockValue);
85 Instruction *CxtI, bool UseBlockValue);
89 Constant *getConstant(Value *V, Instruction *CxtI);
94 ConstantRange getConstantRange(Value *V, Instruction *CxtI,
104 Instruction *CxtI = nullptr);
111 Instruction *CxtI = nullptr);
H A DSimplifyQuery.h65 const Instruction *CxtI = nullptr; member
79 : DL(DL), CxtI(CXTI) {} in DL()
86 : DL(DL), TLI(TLI), DT(DT), AC(AC), CxtI(CXTI), DC(DC), IIQ(UseInstrInfo), in DL()
93 : DL(DL), DT(DT), AC(AC), CxtI(CXTI), IIQ(UseInstrInfo), in DL()
98 Copy.CxtI = I; in getWithInstruction()
H A DValueTracking.h59 const Instruction *CxtI = nullptr,
66 const Instruction *CxtI = nullptr,
74 const Instruction *CxtI = nullptr,
115 const Instruction *CxtI = nullptr,
119 bool isOnlyUsedInZeroEqualityComparison(const Instruction *CxtI);
129 const Instruction *CxtI = nullptr,
157 const Instruction *CxtI = nullptr,
182 const Instruction *CxtI = nullptr,
192 const Instruction *CxtI = nullptr,
448 const Instruction *CxtI = nullptr, const DominatorTree *DT = nullptr,
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DLazyValueInfo.cpp1115 getBlockValue(RHS, CxtI->getParent(), CxtI); in getValueFromSimpleICmpCondition()
1556 Instruction *CxtI) { in getValueOnEdge() argument
1578 ValueLatticeElement VL = getValueInBlock(V, CxtI->getParent(), CxtI); in getValueAtUse()
1719 BasicBlock *BB = CxtI->getParent(); in getConstant()
1736 BasicBlock *BB = CxtI->getParent(); in getConstantRange()
1863 Module *M = CxtI->getModule(); in getPredicateAt()
1875 UseBlockValue ? Impl.getValueInBlock(V, CxtI->getParent(), CxtI) in getPredicateAt()
1903 BasicBlock *BB = CxtI->getParent(); in getPredicateAt()
1978 Module *M = CxtI->getModule(); in getPredicateAt()
1980 getOrCreateImpl(M).getValueInBlock(LHS, CxtI->getParent(), CxtI); in getPredicateAt()
[all …]
H A DValueTracking.cpp105 if (CxtI && CxtI->getParent()) in safeCxtI()
106 return CxtI; in safeCxtI()
110 if (CxtI && CxtI->getParent()) in safeCxtI()
111 return CxtI; in safeCxtI()
119 if (CxtI && CxtI->getParent()) in safeCxtI()
120 return CxtI; in safeCxtI()
124 if (CxtI && CxtI->getParent()) in safeCxtI()
125 return CxtI; in safeCxtI()
128 if (CxtI && CxtI->getParent()) in safeCxtI()
129 return CxtI; in safeCxtI()
[all …]
H A DInstructionSimplify.cpp619 if (Q.CxtI != nullptr) in foldOrCommuteConstant()
2048 Q.CxtI) && in simplifyAndCommutative()
2720 const Instruction *CxtI = Q.CxtI; in computePointerICmp() local
3006 isKnownNonZero(LHS, Q.DL, 0, Q.AC, Q.CxtI, Q.DT)) in simplifyICmpWithZero()
3023 isKnownNonZero(LHS, Q.DL, 0, Q.AC, Q.CxtI, Q.DT)) in simplifyICmpWithZero()
3686 if (!Q.AC || !Q.CxtI) in simplifyICmpWithDominatingAssume()
4070 Q.CxtI); in simplifyFCmpInst()
4130 if (C && Q.CxtI) { in simplifyFCmpInst()
4136 const Function *ParentF = Q.CxtI->getFunction(); in simplifyFCmpInst()
4749 Q.CxtI && isa<FPMathOperator>(Q.CxtI) && Q.CxtI->hasNoSignedZeros(); in simplifySelectWithFCmp()
[all …]
H A DBasicAliasAnalysis.cpp479 const Instruction *CxtI; member
555 const Instruction *CxtI = dyn_cast<Instruction>(V); in DecomposeGEPExpression() local
696 VariableGEPIndex Entry = {LE.Val, Scale, CxtI, LE.IsNSW, in DecomposeGEPExpression()
1187 true, &AC, Index.CxtI); in aliasGEP()
1189 computeKnownBits(Index.Val.V, DL, 0, &AC, Index.CxtI, DT); in aliasGEP()
1238 isKnownNonZero(Var.Val.V, DL, 0, &AC, Var.CxtI, DT)) { in aliasGEP()
1779 VariableGEPIndex Entry = {Src.Val, Src.Scale, Src.CxtI, Src.IsNSW, in subtractDecomposedGEPs()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/
H A DJumpThreading.h133 DenseSet<Value *> &RecursionSet, Instruction *CxtI = nullptr);
138 Instruction *CxtI = nullptr) {
141 RecursionSet, CxtI);
151 Instruction *CxtI = nullptr);
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DJumpThreading.cpp562 Instruction *CxtI) { in computeValueKnownInPredecessorsImpl() argument
620 BB, CxtI); in computeValueKnownInPredecessorsImpl()
634 RecursionSet, CxtI); in computeValueKnownInPredecessorsImpl()
650 RecursionSet, CxtI); in computeValueKnownInPredecessorsImpl()
672 RecursionSet, CxtI); in computeValueKnownInPredecessorsImpl()
786 CxtI ? CxtI : Cmp); in computeValueKnownInPredecessorsImpl()
811 CmpConst, P, BB, CxtI ? CxtI : Cmp); in computeValueKnownInPredecessorsImpl()
839 AddLHS, P, BB, CxtI ? CxtI : cast<Instruction>(CmpLHS)); in computeValueKnownInPredecessorsImpl()
915 assert(CxtI->getParent() == BB && "CxtI should be in BB"); in computeValueKnownInPredecessorsImpl()
916 Constant *CI = LVI->getConstant(V, CxtI); in computeValueKnownInPredecessorsImpl()
[all …]
H A DCorrelatedValuePropagation.cpp215 Instruction *CxtI) { in getValueOnEdge() argument
216 if (Constant *C = LVI->getConstantOnEdge(Incoming, From, To, CxtI)) in getValueOnEdge()
231 if (Constant *C = LVI->getConstantOnEdge(Condition, From, To, CxtI)) { in getValueOnEdge()
246 if (LVI->getPredicateOnEdge(ICmpInst::ICMP_EQ, SI, C, From, To, CxtI) == in getValueOnEdge()
253 if (LVI->getPredicateOnEdge(ICmpInst::ICMP_EQ, SI, C, From, To, CxtI) == in getValueOnEdge()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DLocal.h236 const Instruction *CxtI = nullptr,
242 const Instruction *CxtI = nullptr,
245 return getOrEnforceKnownAlignment(V, MaybeAlign(), DL, CxtI, AC, DT);
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUTargetTransformInfo.cpp533 const Instruction *CxtI) { in getArithmeticInstrCost() argument
589 if (CxtI && CxtI->hasOneUse()) in getArithmeticInstrCost()
590 if (const auto *FAdd = dyn_cast<BinaryOperator>(*CxtI->user_begin())) { in getArithmeticInstrCost()
602 (FAdd->hasAllowContract() && CxtI->hasAllowContract())) in getArithmeticInstrCost()
654 if (SLT == MVT::f32 && ((CxtI && CxtI->hasApproxFunc()) || in getArithmeticInstrCost()
685 Args, CxtI); in getArithmeticInstrCost()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonTargetTransformInfo.cpp290 const Instruction *CxtI) { in getArithmeticInstrCost() argument
294 Op2Info, Args, CxtI); in getArithmeticInstrCost()
304 Args, CxtI); in getArithmeticInstrCost()
H A DHexagonTargetTransformInfo.h152 const Instruction *CxtI = nullptr);
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyTargetTransformInfo.h67 const Instruction *CxtI = nullptr);
H A DWebAssemblyTargetTransformInfo.cpp57 const Instruction *CxtI) { in getArithmeticInstrCost() argument
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFTargetTransformInfo.h63 const Instruction *CxtI = nullptr) {
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXTargetTransformInfo.h102 const Instruction *CxtI = nullptr);
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Lanai/
H A DLanaiTargetTransformInfo.h98 const Instruction *CxtI = nullptr) {
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.cpp1271 ArrayRef<const Value *> Args, const Instruction *CxtI) { in getArithmeticInstrCost() argument
1276 Args, CxtI); in getArithmeticInstrCost()
1280 Args, CxtI); in getArithmeticInstrCost()
1285 Args, CxtI); in getArithmeticInstrCost()
1293 Args, CxtI); in getArithmeticInstrCost()
1337 Args, CxtI); in getArithmeticInstrCost()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.h93 const Instruction *CxtI = nullptr);

12