Home
last modified time | relevance | path

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

12

/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineInternal.h257 return computeOverflowForSignedAdd(LHS, RHS, &CxtI) == in willNotOverflowSignedAdd()
263 return computeOverflowForUnsignedAdd(LHS, RHS, &CxtI) == in willNotOverflowUnsignedAdd()
269 return IsSigned ? willNotOverflowSignedAdd(LHS, RHS, CxtI) in willNotOverflowAdd()
275 return computeOverflowForSignedSub(LHS, RHS, &CxtI) == in willNotOverflowSignedSub()
281 return computeOverflowForUnsignedSub(LHS, RHS, &CxtI) == in willNotOverflowUnsignedSub()
287 return IsSigned ? willNotOverflowSignedSub(LHS, RHS, CxtI) in willNotOverflowSub()
293 return computeOverflowForSignedMul(LHS, RHS, &CxtI) == in willNotOverflowSignedMul()
299 return computeOverflowForUnsignedMul(LHS, RHS, &CxtI) == in willNotOverflowUnsignedMul()
305 return IsSigned ? willNotOverflowSignedMul(LHS, RHS, CxtI) in willNotOverflowMul()
468 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()
159 computeKnownBits(I, Known, Depth, CxtI); in SimplifyDemandedUseBits()
584 computeKnownBits(I, Known, Depth, CxtI); in SimplifyDemandedUseBits()
609 computeKnownBits(I, Known, Depth, CxtI); in SimplifyDemandedUseBits()
861 Instruction *CxtI) { in SimplifyMultipleUseDemandedBits() argument
877 CxtI); in SimplifyMultipleUseDemandedBits()
903 CxtI); in SimplifyMultipleUseDemandedBits()
928 CxtI); in SimplifyMultipleUseDemandedBits()
948 computeKnownBits(I, Known, Depth, CxtI); in SimplifyMultipleUseDemandedBits()
[all …]
H A DInstCombineCasts.cpp382 Instruction *CxtI) { in canEvaluateTruncated() argument
398 return canEvaluateTruncated(I->getOperand(0), Ty, IC, CxtI) && in canEvaluateTruncated()
399 canEvaluateTruncated(I->getOperand(1), Ty, IC, CxtI); in canEvaluateTruncated()
408 if (IC.MaskedValueIsZero(I->getOperand(0), Mask, 0, CxtI) && in canEvaluateTruncated()
409 IC.MaskedValueIsZero(I->getOperand(1), Mask, 0, CxtI)) { in canEvaluateTruncated()
411 canEvaluateTruncated(I->getOperand(1), Ty, IC, CxtI); in canEvaluateTruncated()
423 canEvaluateTruncated(I->getOperand(1), Ty, IC, CxtI); in canEvaluateTruncated()
440 canEvaluateTruncated(I->getOperand(1), Ty, IC, CxtI); in canEvaluateTruncated()
480 if (!canEvaluateTruncated(IncValue, Ty, IC, CxtI)) in canEvaluateTruncated()
1145 !canEvaluateZExtd(I->getOperand(1), Ty, Tmp, IC, CxtI)) in canEvaluateZExtd()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h457 const Instruction *CxtI) const { in computeKnownBits() argument
458 llvm::computeKnownBits(V, Known, DL, Depth, &AC, CxtI, &DT); in computeKnownBits()
462 const Instruction *CxtI) const { in computeKnownBits() argument
463 return llvm::computeKnownBits(V, DL, Depth, &AC, CxtI, &DT); in computeKnownBits()
468 const Instruction *CxtI = nullptr) {
473 const Instruction *CxtI = nullptr) const {
474 return llvm::MaskedValueIsZero(V, Mask, DL, Depth, &AC, CxtI, &DT);
478 const Instruction *CxtI = nullptr) const {
479 return llvm::ComputeNumSignBits(Op, DL, Depth, &AC, CxtI, &DT);
490 return llvm::computeOverflowForSignedMul(LHS, RHS, DL, &AC, CxtI, &DT); in computeOverflowForSignedMul()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DValueTracking.h61 const Instruction *CxtI = nullptr,
77 const Instruction *CxtI = nullptr,
85 const Instruction *CxtI = nullptr,
94 const Instruction *CxtI = nullptr,
109 const Instruction *CxtI = nullptr,
135 const Instruction *CxtI = nullptr,
149 const Instruction *CxtI = nullptr,
157 const Instruction *CxtI = nullptr,
165 const Instruction *CxtI = nullptr,
173 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.h99 const Instruction *CxtI = nullptr; member
112 : DL(DL), CxtI(CXTI) {} in DL()
119 : DL(DL), TLI(TLI), DT(DT), AC(AC), CxtI(CXTI), IIQ(UseInstrInfo), in DL()
123 Copy.CxtI = I; in getWithInstruction()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DLazyValueInfo.cpp1481 Instruction *CxtI) { in getValueOnEdge() argument
1489 Result = getEdgeValue(V, FromBB, ToBB, CxtI); in getValueOnEdge()
1588 BasicBlock *BB = CxtI->getParent(); in getConstant()
1606 BasicBlock *BB = CxtI->getParent(); in getConstantRange()
1729 Instruction *CxtI) { in getPredicateOnEdge() argument
1744 Module *M = CxtI->getModule(); in getPredicateAt()
1755 ? getImpl(PImpl, AC, M).getValueInBlock(V, CxtI->getParent(), CxtI) in getPredicateAt()
1756 : getImpl(PImpl, AC, M).getValueAt(V, CxtI); in getPredicateAt()
1783 if (CxtI) { in getPredicateAt()
1784 BasicBlock *BB = CxtI->getParent(); in getPredicateAt()
[all …]
H A DValueTracking.cpp128 if (CxtI && CxtI->getParent()) in safeCxtI()
129 return CxtI; in safeCxtI()
133 if (CxtI && CxtI->getParent()) in safeCxtI()
134 return CxtI; in safeCxtI()
142 if (CxtI && CxtI->getParent()) in safeCxtI()
143 return CxtI; in safeCxtI()
147 if (CxtI && CxtI->getParent()) in safeCxtI()
148 return CxtI; in safeCxtI()
151 if (CxtI && CxtI->getParent()) in safeCxtI()
152 return CxtI; in safeCxtI()
[all …]
H A DInstructionSimplify.cpp2462 const Instruction *CxtI = Q.CxtI; in computePointerICmp() local
2757 isKnownNonZero(LHS, Q.DL, 0, Q.AC, Q.CxtI, Q.DT)) in simplifyICmpWithZero()
3348 if (!Q.AC || !Q.CxtI || !Q.CxtI->getParent()) in simplifyICmpWithDominatingAssume()
4183 bool HasNoSignedZeros = Q.CxtI && isa<FPMathOperator>(Q.CxtI) && in simplifySelectWithFCmp()
4184 Q.CxtI->hasNoSignedZeros(); in simplifySelectWithFCmp()
5422 Q.DL, 0, Q.AC, Q.CxtI, Q.DT)) in simplifyUnaryIntrinsic()
5428 if (Q.CxtI->hasAllowReassoc() && in simplifyUnaryIntrinsic()
5433 if (Q.CxtI->hasAllowReassoc() && in simplifyUnaryIntrinsic()
5438 if (Q.CxtI->hasAllowReassoc() && in simplifyUnaryIntrinsic()
5443 if (Q.CxtI->hasAllowReassoc() && in simplifyUnaryIntrinsic()
[all …]
H A DBasicAliasAnalysis.cpp434 const Instruction *CxtI = dyn_cast<Instruction>(V); in DecomposeGEPExpression() local
591 LE.Val.V, LE.Val.ZExtBits, LE.Val.SExtBits, Scale, CxtI, LE.IsNSW}; in DecomposeGEPExpression()
1166 const Instruction *CxtI = DecompGEP1.VarIndices[i].CxtI; in aliasGEP() local
1168 KnownBits Known = computeKnownBits(V, DL, 0, &AC, CxtI, DT); in aliasGEP()
1220 if (isKnownNonZero(Var.V, DL, 0, &AC, Var.CxtI, DT)) in aliasGEP()
1730 -Scale, Src[i].CxtI, Src[i].IsNSW}; in GetIndexDifference()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/
H A DJumpThreading.h134 DenseSet<Value *> &RecursionSet, Instruction *CxtI = nullptr);
139 Instruction *CxtI = nullptr) {
142 RecursionSet, CxtI);
152 Instruction *CxtI = nullptr);
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DLocal.h218 const Instruction *CxtI = nullptr,
224 const Instruction *CxtI = nullptr,
227 return getOrEnforceKnownAlignment(V, MaybeAlign(), DL, CxtI, AC, DT);
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DJumpThreading.cpp645 Instruction *CxtI) { in computeValueKnownInPredecessorsImpl() argument
698 BB, CxtI); in computeValueKnownInPredecessorsImpl()
711 RecursionSet, CxtI); in computeValueKnownInPredecessorsImpl()
725 RecursionSet, CxtI); in computeValueKnownInPredecessorsImpl()
747 RecursionSet, CxtI); in computeValueKnownInPredecessorsImpl()
856 CxtI ? CxtI : Cmp); in computeValueKnownInPredecessorsImpl()
881 CmpConst, P, BB, CxtI ? CxtI : Cmp); in computeValueKnownInPredecessorsImpl()
909 AddLHS, P, BB, CxtI ? CxtI : cast<Instruction>(CmpLHS)); in computeValueKnownInPredecessorsImpl()
985 assert(CxtI->getParent() == BB && "CxtI should be in BB"); in computeValueKnownInPredecessorsImpl()
986 Constant *CI = LVI->getConstant(V, CxtI); in computeValueKnownInPredecessorsImpl()
[all …]
H A DCorrelatedValuePropagation.cpp646 static bool isNonNegative(Value *V, LazyValueInfo *LVI, Instruction *CxtI) { in isNonNegative() argument
648 auto Result = LVI->getPredicateAt(ICmpInst::ICMP_SGE, V, Zero, CxtI, in isNonNegative()
653 static bool isNonPositive(Value *V, LazyValueInfo *LVI, Instruction *CxtI) { in isNonPositive() argument
655 auto Result = LVI->getPredicateAt(ICmpInst::ICMP_SLE, V, Zero, CxtI, in isNonPositive()
662 Domain getDomain(Value *V, LazyValueInfo *LVI, Instruction *CxtI) { in getDomain() argument
663 if (isNonNegative(V, LVI, CxtI)) in getDomain()
665 if (isNonPositive(V, LVI, CxtI)) in getDomain()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUTargetTransformInfo.cpp519 const Instruction *CxtI) { in getArithmeticInstrCost() argument
528 Opd2PropInfo, Args, CxtI); in getArithmeticInstrCost()
561 Opd1PropInfo, Opd2PropInfo, Args, CxtI); in getArithmeticInstrCost()
626 if (CxtI && CxtI->hasOneUse()) in getArithmeticInstrCost()
627 if (const auto *FAdd = dyn_cast<BinaryOperator>(*CxtI->user_begin())) { in getArithmeticInstrCost()
639 (FAdd->hasAllowContract() && CxtI->hasAllowContract())) in getArithmeticInstrCost()
713 Opd1PropInfo, Opd2PropInfo, Args, CxtI); in getArithmeticInstrCost()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonTargetTransformInfo.cpp267 const Instruction *CxtI) { in getArithmeticInstrCost() argument
272 Opd2PropInfo, Args, CxtI); in getArithmeticInstrCost()
280 Opd1PropInfo, Opd2PropInfo, Args, CxtI); in getArithmeticInstrCost()
H A DHexagonTargetTransformInfo.h151 const Instruction *CxtI = nullptr);
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyTargetTransformInfo.h69 const Instruction *CxtI = nullptr);
H A DWebAssemblyTargetTransformInfo.cpp58 const Instruction *CxtI) { in getArithmeticInstrCost() argument
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFTargetTransformInfo.h66 const Instruction *CxtI = nullptr) {
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXTargetTransformInfo.h99 const Instruction *CxtI = nullptr);
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Lanai/
H A DLanaiTargetTransformInfo.h91 const Instruction *CxtI = nullptr) {
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.h92 const Instruction *CxtI = nullptr);
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCTargetTransformInfo.h112 const Instruction *CxtI = nullptr);

12