Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h432 const Instruction *CxtI) const { in computeKnownBits() argument
433 llvm::computeKnownBits(V, Known, Depth, SQ.getWithInstruction(CxtI)); in computeKnownBits()
437 const Instruction *CxtI) const { in computeKnownBits() argument
438 return llvm::computeKnownBits(V, Depth, SQ.getWithInstruction(CxtI)); in computeKnownBits()
443 const Instruction *CxtI = nullptr) {
444 return llvm::isKnownToBeAPowerOfTwo(V, DL, OrZero, Depth, &AC, CxtI, &DT);
448 const Instruction *CxtI = nullptr) const {
449 return llvm::MaskedValueIsZero(V, Mask, SQ.getWithInstruction(CxtI), Depth);
453 const Instruction *CxtI = nullptr) const {
454 return llvm::ComputeNumSignBits(Op, DL, Depth, &AC, CxtI, &DT);
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DLazyValueInfo.cpp399 Instruction *CxtI);
402 Instruction *CxtI = nullptr);
416 std::optional<ConstantRange> getRangeFor(Value *V, Instruction *CxtI,
447 const APInt &Offset, Instruction *CxtI,
468 Instruction *CxtI = nullptr);
474 ValueLatticeElement getValueAt(Value *V, Instruction *CxtI);
480 Instruction *CxtI = nullptr);
574 Instruction *CxtI) { in getBlockValue() argument
581 intersectAssumeOrGuardBlockValueConstantRange(Val, *OptLatticeVal, CxtI); in getBlockValue()
932 LazyValueInfoImpl::getRangeFor(Value *V, Instruction *CxtI, BasicBlock *BB) { in getRangeFor() argument
[all …]
H A DValueTracking.cpp103 static const Instruction *safeCxtI(const Value *V, const Instruction *CxtI) { in safeCxtI() argument
106 if (CxtI && CxtI->getParent()) in safeCxtI()
107 return CxtI; in safeCxtI()
110 CxtI = dyn_cast<Instruction>(V); in safeCxtI()
111 if (CxtI && CxtI->getParent()) in safeCxtI()
112 return CxtI; in safeCxtI()
117 static const Instruction *safeCxtI(const Value *V1, const Value *V2, const Instruction *CxtI) { in safeCxtI() argument
120 if (CxtI && CxtI->getParent()) in safeCxtI()
121 return CxtI; in safeCxtI()
124 CxtI = dyn_cast<Instruction>(V1); in safeCxtI()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineInternal.h314 const Instruction &CxtI) const { in willNotOverflowSignedAdd() argument
315 return computeOverflowForSignedAdd(LHS, RHS, &CxtI) == in willNotOverflowSignedAdd()
321 const Instruction &CxtI) const { in willNotOverflowUnsignedAdd() argument
322 return computeOverflowForUnsignedAdd(LHS, RHS, &CxtI) == in willNotOverflowUnsignedAdd()
327 const Instruction &CxtI, bool IsSigned) const { in willNotOverflowAdd() argument
328 return IsSigned ? willNotOverflowSignedAdd(LHS, RHS, CxtI) in willNotOverflowAdd()
329 : willNotOverflowUnsignedAdd(LHS, RHS, CxtI); in willNotOverflowAdd()
333 const Instruction &CxtI) const { in willNotOverflowSignedSub() argument
334 return computeOverflowForSignedSub(LHS, RHS, &CxtI) == in willNotOverflowSignedSub()
339 const Instruction &CxtI) const { in willNotOverflowUnsignedSub() argument
[all …]
H A DInstCombineCasts.cpp268 Instruction *CxtI) { in canEvaluateTruncated() argument
284 return canEvaluateTruncated(I->getOperand(0), Ty, IC, CxtI) && in canEvaluateTruncated()
285 canEvaluateTruncated(I->getOperand(1), Ty, IC, CxtI); in canEvaluateTruncated()
310 return canEvaluateTruncated(I->getOperand(0), Ty, IC, CxtI) && in canEvaluateTruncated()
311 canEvaluateTruncated(I->getOperand(1), Ty, IC, CxtI); in canEvaluateTruncated()
326 IC.MaskedValueIsZero(I->getOperand(0), ShiftedBits, 0, CxtI)) { in canEvaluateTruncated()
327 return canEvaluateTruncated(I->getOperand(0), Ty, IC, CxtI) && in canEvaluateTruncated()
328 canEvaluateTruncated(I->getOperand(1), Ty, IC, CxtI); in canEvaluateTruncated()
344 ShiftedBits < IC.ComputeNumSignBits(I->getOperand(0), 0, CxtI)) in canEvaluateTruncated()
345 return canEvaluateTruncated(I->getOperand(0), Ty, IC, CxtI) && in canEvaluateTruncated()
[all …]
/freebsd/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.h75 const Instruction *CxtI = nullptr; member
90 : DL(DL), CxtI(CXTI) {} in DL()
97 : DL(DL), TLI(TLI), DT(DT), AC(AC), CxtI(CXTI), DC(DC), IIQ(UseInstrInfo), in DL()
104 : DL(DL), DT(DT), AC(AC), CxtI(CXTI), IIQ(UseInstrInfo), in DL()
109 Copy.CxtI = I; in getWithInstruction()
H A DValueTracking.h60 const Instruction *CxtI = nullptr,
67 const Instruction *CxtI = nullptr,
75 const Instruction *CxtI = nullptr,
122 const Instruction *CxtI = nullptr,
126 bool isOnlyUsedInZeroComparison(const Instruction *CxtI);
128 bool isOnlyUsedInZeroEqualityComparison(const Instruction *CxtI);
170 const Instruction *CxtI = nullptr,
195 const Instruction *CxtI = nullptr,
205 const Instruction *CxtI = nullptr,
521 const Instruction *CxtI = nullptr, const DominatorTree *DT = nullptr,
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/
H A DJumpThreading.h133 SmallPtrSet<Value *, 4> &RecursionSet, Instruction *CxtI = nullptr);
138 Instruction *CxtI = nullptr) {
141 RecursionSet, CxtI);
151 Instruction *CxtI = nullptr);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DJumpThreading.cpp562 Instruction *CxtI) { in computeValueKnownInPredecessorsImpl() argument
591 Constant *PredCst = LVI->getConstantOnEdge(V, P, BB, CxtI); in computeValueKnownInPredecessorsImpl()
600 PredCst = LVI->getPredicateOnEdge(Pred, Val, Cst, P, BB, CxtI); in computeValueKnownInPredecessorsImpl()
617 BB, CxtI); in computeValueKnownInPredecessorsImpl()
631 RecursionSet, CxtI); in computeValueKnownInPredecessorsImpl()
647 RecursionSet, CxtI); in computeValueKnownInPredecessorsImpl()
669 RecursionSet, CxtI); in computeValueKnownInPredecessorsImpl()
671 RecursionSet, CxtI); in computeValueKnownInPredecessorsImpl()
707 WantInteger, RecursionSet, CxtI); in computeValueKnownInPredecessorsImpl()
725 WantInteger, RecursionSet, CxtI); in computeValueKnownInPredecessorsImpl()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonTargetTransformInfo.cpp234 const Instruction *CxtI) { in getShuffleCost() argument
277 const Instruction *CxtI) { in getArithmeticInstrCost() argument
281 Op2Info, Args, CxtI); in getArithmeticInstrCost()
291 Args, CxtI); in getArithmeticInstrCost()
H A DHexagonTargetTransformInfo.h126 const Instruction *CxtI = nullptr);
145 const Instruction *CxtI = nullptr);
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DLocal.h237 const Instruction *CxtI = nullptr,
243 const Instruction *CxtI = nullptr,
246 return getOrEnforceKnownAlignment(V, MaybeAlign(), DL, CxtI, AC, DT);
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUTargetTransformInfo.cpp530 const Instruction *CxtI) { in getArithmeticInstrCost() argument
586 if (CxtI && CxtI->hasOneUse()) in getArithmeticInstrCost()
587 if (const auto *FAdd = dyn_cast<BinaryOperator>(*CxtI->user_begin())) { in getArithmeticInstrCost()
599 (FAdd->hasAllowContract() && CxtI->hasAllowContract())) in getArithmeticInstrCost()
651 if (SLT == MVT::f32 && ((CxtI && CxtI->hasApproxFunc()) || in getArithmeticInstrCost()
682 Args, CxtI); in getArithmeticInstrCost()
1110 const Instruction *CxtI) { in getShuffleCost() argument
H A DAMDGPUTargetTransformInfo.h159 const Instruction *CxtI = nullptr);
238 const Instruction *CxtI = nullptr);
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.h93 const Instruction *CxtI = nullptr);
99 const Instruction *CxtI = nullptr);
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCTargetTransformInfo.h110 const Instruction *CxtI = nullptr);
116 const Instruction *CxtI = nullptr);
/freebsd/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/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFTargetTransformInfo.h63 const Instruction *CxtI = nullptr) {
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXTargetTransformInfo.h102 const Instruction *CxtI = nullptr);
/freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/
H A DLanaiTargetTransformInfo.h98 const Instruction *CxtI = nullptr) {
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86TargetTransformInfo.h144 const Instruction *CxtI = nullptr);
155 const Instruction *CxtI = nullptr);
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.h207 const Instruction *CxtI = nullptr);
403 const Instruction *CxtI = nullptr);
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.h150 const Instruction *CxtI = nullptr);
214 const Instruction *CxtI = nullptr);

12