| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/InstCombine/ |
| H A D | InstCombiner.h | 434 const Instruction *CxtI, unsigned Depth = 0) const { 435 llvm::computeKnownBits(V, Known, SQ.getWithInstruction(CxtI), Depth); 438 KnownBits computeKnownBits(const Value *V, const Instruction *CxtI, 440 return llvm::computeKnownBits(V, SQ.getWithInstruction(CxtI), Depth); 444 const Instruction *CxtI = nullptr, 446 return llvm::isKnownToBeAPowerOfTwo(V, OrZero, SQ.getWithInstruction(CxtI), 451 const Instruction *CxtI = nullptr, 453 return llvm::MaskedValueIsZero(V, Mask, SQ.getWithInstruction(CxtI), Depth); 457 const Instruction *CxtI = nullptr, 459 return llvm::ComputeNumSignBits(Op, DL, &AC, CxtI, &DT, Depth); [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | LazyValueInfo.cpp | 345 Instruction *CxtI); 348 Instruction *CxtI = nullptr); 362 std::optional<ConstantRange> getRangeFor(Value *V, Instruction *CxtI, 393 const APInt &Offset, Instruction *CxtI, 416 Instruction *CxtI = nullptr); 422 ValueLatticeElement getValueAt(Value *V, Instruction *CxtI); 428 Instruction *CxtI = nullptr); 522 Instruction *CxtI) { in getBlockValue() argument 529 intersectAssumeOrGuardBlockValueConstantRange(Val, *OptLatticeVal, CxtI); in getBlockValue() 892 LazyValueInfoImpl::getRangeFor(Value *V, Instruction *CxtI, BasicBlock *BB) { in getRangeFor() argument [all …]
|
| H A D | ValueTracking.cpp | 105 static const Instruction *safeCxtI(const Value *V, const Instruction *CxtI) { in safeCxtI() argument 108 if (CxtI && CxtI->getParent()) in safeCxtI() 109 return CxtI; in safeCxtI() 112 CxtI = dyn_cast<Instruction>(V); in safeCxtI() 113 if (CxtI && CxtI->getParent()) in safeCxtI() 114 return CxtI; in safeCxtI() 151 const Instruction *CxtI, const DominatorTree *DT, in computeKnownBits() argument 154 SimplifyQuery(DL, DT, AC, safeCxtI(V, CxtI), UseInstrInfo), in computeKnownBits() 159 AssumptionCache *AC, const Instruction *CxtI, in computeKnownBits() argument 163 V, SimplifyQuery(DL, DT, AC, safeCxtI(V, CxtI), UseInstrInfo), Depth); in computeKnownBits() [all …]
|
| H A D | BasicAliasAnalysis.cpp | 520 const Instruction *CxtI; member 596 const Instruction *CxtI = dyn_cast<Instruction>(V); in DecomposeGEPExpression() local 737 VariableGEPIndex Entry = {LE.Val, Scale, CxtI, LE.IsNSW, in DecomposeGEPExpression() 1287 true, &AC, Index.CxtI); in aliasGEP() 1288 KnownBits Known = computeKnownBits(Index.Val.V, DL, &AC, Index.CxtI, DT); in aliasGEP() 1353 isKnownNonZero(Var.Val.V, SimplifyQuery(DL, DT, &AC, Var.CxtI))) { in aliasGEP() 1372 SimplifyQuery(DL, DT, &AC, /*CxtI=*/Var0.CxtI in aliasGEP() 1373 ? Var0.CxtI in aliasGEP() 1374 : Var1.CxtI))) in aliasGEP() 1922 VariableGEPIndex Entry = {Src.Val, Src.Scale, Src.CxtI, Src.IsNSW, in subtractDecomposedGEPs()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | LazyValueInfo.h | 68 Instruction *CxtI = nullptr); 75 Instruction *CxtI, bool UseBlockValue); 83 Instruction *CxtI, bool UseBlockValue); 87 Constant *getConstant(Value *V, Instruction *CxtI); 92 ConstantRange getConstantRange(Value *V, Instruction *CxtI, 102 Instruction *CxtI = nullptr); 109 Instruction *CxtI = nullptr);
|
| H A D | SimplifyQuery.h | 76 const Instruction *CxtI = nullptr; member 91 : DL(DL), CxtI(CXTI) {} in DL() 98 : DL(DL), TLI(TLI), DT(DT), AC(AC), CxtI(CXTI), DC(DC), IIQ(UseInstrInfo), in DL() 105 : DL(DL), DT(DT), AC(AC), CxtI(CXTI), IIQ(UseInstrInfo), in DL() 110 Copy.CxtI = I; in getWithInstruction()
|
| H A D | ValueTracking.h | 64 const Instruction *CxtI = nullptr, 71 const Instruction *CxtI = nullptr, 80 const Instruction *CxtI = nullptr, 132 const Instruction *CxtI = nullptr, 141 LLVM_ABI bool isOnlyUsedInZeroComparison(const Instruction *CxtI); 143 LLVM_ABI bool isOnlyUsedInZeroEqualityComparison(const Instruction *CxtI); 208 const Instruction *CxtI = nullptr, 219 const Instruction *CxtI = nullptr, 259 const Instruction *CxtI = nullptr, const DominatorTree *DT = nullptr, 617 const Instruction *CxtI,
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineInternal.h | 315 const Instruction &CxtI) const { in willNotOverflowSignedAdd() argument 316 return computeOverflowForSignedAdd(LHS, RHS, &CxtI) == in willNotOverflowSignedAdd() 322 const Instruction &CxtI) const { in willNotOverflowUnsignedAdd() argument 323 return computeOverflowForUnsignedAdd(LHS, RHS, &CxtI) == in willNotOverflowUnsignedAdd() 328 const Instruction &CxtI, bool IsSigned) const { in willNotOverflowAdd() argument 329 return IsSigned ? willNotOverflowSignedAdd(LHS, RHS, CxtI) in willNotOverflowAdd() 330 : willNotOverflowUnsignedAdd(LHS, RHS, CxtI); in willNotOverflowAdd() 334 const Instruction &CxtI) const { in willNotOverflowSignedSub() argument 335 return computeOverflowForSignedSub(LHS, RHS, &CxtI) == in willNotOverflowSignedSub() 340 const Instruction &CxtI) const { in willNotOverflowUnsignedSub() argument [all …]
|
| H A D | InstCombineCasts.cpp | 270 Instruction *CxtI) { in canEvaluateTruncated() argument 286 return canEvaluateTruncated(I->getOperand(0), Ty, IC, CxtI) && in canEvaluateTruncated() 287 canEvaluateTruncated(I->getOperand(1), Ty, IC, CxtI); in canEvaluateTruncated() 312 return canEvaluateTruncated(I->getOperand(0), Ty, IC, CxtI) && in canEvaluateTruncated() 313 canEvaluateTruncated(I->getOperand(1), Ty, IC, CxtI); in canEvaluateTruncated() 324 KnownBits AmtKnownBits = IC.computeKnownBits(I->getOperand(1), CxtI); in canEvaluateTruncated() 333 return canEvaluateTruncated(I->getOperand(0), Ty, IC, CxtI) && in canEvaluateTruncated() 334 canEvaluateTruncated(I->getOperand(1), Ty, IC, CxtI); in canEvaluateTruncated() 336 if (IC.MaskedValueIsZero(I->getOperand(0), ShiftedBits, CxtI)) in canEvaluateTruncated() 337 return canEvaluateTruncated(I->getOperand(0), Ty, IC, CxtI) && in canEvaluateTruncated() [all …]
|
| H A D | InstCombineSimplifyDemanded.cpp | 678 ComputeNumSignBits(I->getOperand(0), Q.CxtI, Depth + 1); in SimplifyDemandedUseBits() 760 ComputeNumSignBits(I->getOperand(0), Q.CxtI, Depth + 1); in SimplifyDemandedUseBits() 808 unsigned SignBits = ComputeNumSignBits(I->getOperand(0), Q.CxtI, Depth + 1); in SimplifyDemandedUseBits() 1971 Instruction *CxtI, in SimplifyDemandedUseFPClass() argument 1987 Known = computeKnownFPClass(V, fcAllFlags, CxtI, Depth + 1); in SimplifyDemandedUseFPClass() 2042 computeKnownFPClass(I->getOperand(1), fcAllFlags, CxtI, Depth + 1); in SimplifyDemandedUseFPClass() 2047 Known = computeKnownFPClass(I, ~DemandedMask, CxtI, Depth + 1); in SimplifyDemandedUseFPClass() 2069 Known = computeKnownFPClass(I, ~DemandedMask, CxtI, Depth + 1); in SimplifyDemandedUseFPClass()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/ |
| H A D | JumpThreading.h | 139 SmallPtrSet<Value *, 4> &RecursionSet, Instruction *CxtI = nullptr); 144 Instruction *CxtI = nullptr) { 147 RecursionSet, CxtI); 161 Instruction *CxtI = nullptr);
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | JumpThreading.cpp | 559 Instruction *CxtI) { in computeValueKnownInPredecessorsImpl() argument 588 Constant *PredCst = LVI->getConstantOnEdge(V, P, BB, CxtI); in computeValueKnownInPredecessorsImpl() 597 PredCst = LVI->getPredicateOnEdge(Pred, Val, Cst, P, BB, CxtI); in computeValueKnownInPredecessorsImpl() 614 BB, CxtI); in computeValueKnownInPredecessorsImpl() 628 RecursionSet, CxtI); in computeValueKnownInPredecessorsImpl() 644 RecursionSet, CxtI); in computeValueKnownInPredecessorsImpl() 666 RecursionSet, CxtI); in computeValueKnownInPredecessorsImpl() 668 RecursionSet, CxtI); in computeValueKnownInPredecessorsImpl() 704 WantInteger, RecursionSet, CxtI); in computeValueKnownInPredecessorsImpl() 722 WantInteger, RecursionSet, CxtI); in computeValueKnownInPredecessorsImpl() [all …]
|
| H A D | CorrelatedValuePropagation.cpp | 208 Instruction *CxtI) { in getValueOnEdge() argument 209 if (Constant *C = LVI->getConstantOnEdge(Incoming, From, To, CxtI)) in getValueOnEdge() 224 if (Constant *C = LVI->getConstantOnEdge(Condition, From, To, CxtI)) { in getValueOnEdge() 240 LVI->getPredicateOnEdge(ICmpInst::ICMP_EQ, SI, C, From, To, CxtI)); in getValueOnEdge() 248 LVI->getPredicateOnEdge(ICmpInst::ICMP_EQ, SI, C, From, To, CxtI)); in getValueOnEdge()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonTargetTransformInfo.cpp | 234 const Instruction *CxtI) const { in getShuffleCost() 275 ArrayRef<const Value *> Args, const Instruction *CxtI) const { in getArithmeticInstrCost() 279 Op2Info, Args, CxtI); in getArithmeticInstrCost() 289 Args, CxtI); in getArithmeticInstrCost()
|
| H A D | HexagonTargetTransformInfo.h | 129 const Instruction *CxtI = nullptr) const override; 150 const Instruction *CxtI = nullptr) const override;
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| H A D | Local.h | 248 const Instruction *CxtI = nullptr, 254 const Instruction *CxtI = nullptr, 257 return getOrEnforceKnownAlignment(V, MaybeAlign(), DL, CxtI, AC, DT);
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUTargetTransformInfo.cpp | 532 ArrayRef<const Value *> Args, const Instruction *CxtI) const { in getArithmeticInstrCost() 588 if (CxtI && CxtI->hasOneUse()) in getArithmeticInstrCost() 589 if (const auto *FAdd = dyn_cast<BinaryOperator>(*CxtI->user_begin())) { in getArithmeticInstrCost() 601 (FAdd->hasAllowContract() && CxtI->hasAllowContract())) in getArithmeticInstrCost() 653 if (SLT == MVT::f32 && ((CxtI && CxtI->hasApproxFunc()) || in getArithmeticInstrCost() 684 Args, CxtI); in getArithmeticInstrCost() 1197 const Instruction *CxtI) const { in getShuffleCost()
|
| H A D | AMDGPUTargetTransformInfo.h | 162 const Instruction *CxtI = nullptr) const override; 242 const Instruction *CxtI = nullptr) const override;
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
| H A D | SystemZTargetTransformInfo.h | 100 const Instruction *CxtI = nullptr) const override; 105 const Instruction *CxtI = nullptr) const override;
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
| H A D | PPCTargetTransformInfo.h | 112 const Instruction *CxtI = nullptr) const override; 117 const Instruction *CxtI = nullptr) const override;
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/BPF/ |
| H A D | BPFTargetTransformInfo.h | 66 const Instruction *CxtI = nullptr) const override {
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/ |
| H A D | LanaiTargetTransformInfo.h | 99 const Instruction *CxtI = nullptr) const override {
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyTargetTransformInfo.h | 70 const Instruction *CxtI = nullptr) const override;
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | ARMTargetTransformInfo.h | 229 const Instruction *CxtI = nullptr) const override; 268 const Instruction *CxtI = nullptr) const override;
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86TargetTransformInfo.h | 145 const Instruction *CxtI = nullptr) const override; 155 const Instruction *CxtI = nullptr) const override;
|