Home
last modified time | relevance | path

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

/external/llvm/include/llvm/Analysis/
DInstructionSimplify.h56 const Instruction *CxtI = nullptr);
65 const Instruction *CxtI = nullptr);
74 const Instruction *CxtI = nullptr);
83 const Instruction *CxtI = nullptr);
92 const Instruction *CxtI = nullptr);
100 const Instruction *CxtI = nullptr);
108 const Instruction *CxtI = nullptr);
116 const Instruction *CxtI = nullptr);
125 const Instruction *CxtI = nullptr);
133 const Instruction *CxtI = nullptr);
[all …]
DValueTracking.h55 const Instruction *CxtI = nullptr,
65 const Instruction *CxtI = nullptr,
73 const Instruction *CxtI = nullptr,
84 const Instruction *CxtI = nullptr,
93 const Instruction *CxtI = nullptr,
99 const Instruction *CxtI = nullptr,
106 const Instruction *CxtI = nullptr,
113 const Instruction *CxtI = nullptr,
120 const Instruction *CxtI = nullptr,
134 const Instruction *CxtI = nullptr,
[all …]
DLazyValueInfo.h72 Instruction *CxtI = nullptr);
78 Instruction *CxtI);
82 Constant *getConstant(Value *V, BasicBlock *BB, Instruction *CxtI = nullptr);
87 ConstantRange getConstantRange(Value *V, BasicBlock *BB, Instruction *CxtI = nullptr);
92 Instruction *CxtI = nullptr);
/external/llvm/lib/Transforms/InstCombine/
DInstCombineInternal.h253 Value *FoldOrOfICmps(ICmpInst *LHS, ICmpInst *RHS, Instruction *CxtI);
391 bool WillNotOverflowSignedAdd(Value *LHS, Value *RHS, Instruction &CxtI);
392 bool WillNotOverflowSignedSub(Value *LHS, Value *RHS, Instruction &CxtI);
393 bool WillNotOverflowUnsignedSub(Value *LHS, Value *RHS, Instruction &CxtI);
394 bool WillNotOverflowSignedMul(Value *LHS, Value *RHS, Instruction &CxtI);
478 unsigned Depth, Instruction *CxtI) const { in computeKnownBits() argument
479 return llvm::computeKnownBits(V, KnownZero, KnownOne, DL, Depth, AC, CxtI, in computeKnownBits()
484 Instruction *CxtI = nullptr) const {
485 return llvm::MaskedValueIsZero(V, Mask, DL, Depth, AC, CxtI, DT);
488 Instruction *CxtI = nullptr) const {
[all …]
DInstCombineCasts.cpp332 Instruction *CxtI) { in canEvaluateTruncated() argument
361 return canEvaluateTruncated(I->getOperand(0), Ty, IC, CxtI) && in canEvaluateTruncated()
362 canEvaluateTruncated(I->getOperand(1), Ty, IC, CxtI); in canEvaluateTruncated()
371 if (IC.MaskedValueIsZero(I->getOperand(0), Mask, 0, CxtI) && in canEvaluateTruncated()
372 IC.MaskedValueIsZero(I->getOperand(1), Mask, 0, CxtI)) { in canEvaluateTruncated()
373 return canEvaluateTruncated(I->getOperand(0), Ty, IC, CxtI) && in canEvaluateTruncated()
374 canEvaluateTruncated(I->getOperand(1), Ty, IC, CxtI); in canEvaluateTruncated()
385 return canEvaluateTruncated(I->getOperand(0), Ty, IC, CxtI); in canEvaluateTruncated()
396 APInt::getHighBitsSet(OrigBitWidth, OrigBitWidth-BitWidth), 0, CxtI) && in canEvaluateTruncated()
398 return canEvaluateTruncated(I->getOperand(0), Ty, IC, CxtI); in canEvaluateTruncated()
[all …]
DInstCombineSimplifyDemanded.cpp106 Instruction *CxtI) { in SimplifyDemandedUseBits() argument
146 computeKnownBits(V, KnownZero, KnownOne, Depth, CxtI); in SimplifyDemandedUseBits()
161 CxtI); in SimplifyDemandedUseBits()
163 CxtI); in SimplifyDemandedUseBits()
185 CxtI); in SimplifyDemandedUseBits()
187 CxtI); in SimplifyDemandedUseBits()
212 CxtI); in SimplifyDemandedUseBits()
214 CxtI); in SimplifyDemandedUseBits()
225 computeKnownBits(I, KnownZero, KnownOne, Depth, CxtI); in SimplifyDemandedUseBits()
238 computeKnownBits(I, KnownZero, KnownOne, Depth, CxtI); in SimplifyDemandedUseBits()
[all …]
DInstCombineAddSub.cpp874 Instruction &CxtI) { in WillNotOverflowSignedAdd() argument
892 if (ComputeNumSignBits(LHS, 0, &CxtI) > 1 && in WillNotOverflowSignedAdd()
893 ComputeNumSignBits(RHS, 0, &CxtI) > 1) in WillNotOverflowSignedAdd()
899 computeKnownBits(LHS, LHSKnownZero, LHSKnownOne, 0, &CxtI); in WillNotOverflowSignedAdd()
903 computeKnownBits(RHS, RHSKnownZero, RHSKnownOne, 0, &CxtI); in WillNotOverflowSignedAdd()
926 Instruction &CxtI) { in WillNotOverflowSignedSub() argument
929 if (ComputeNumSignBits(LHS, 0, &CxtI) > 1 && in WillNotOverflowSignedSub()
930 ComputeNumSignBits(RHS, 0, &CxtI) > 1) in WillNotOverflowSignedSub()
936 computeKnownBits(LHS, LHSKnownZero, LHSKnownOne, 0, &CxtI); in WillNotOverflowSignedSub()
940 computeKnownBits(RHS, RHSKnownZero, RHSKnownOne, 0, &CxtI); in WillNotOverflowSignedSub()
[all …]
DInstCombineMulDivRem.cpp29 Instruction &CxtI) { in simplifyValueKnownNonZero() argument
51 IC.getAssumptionCache(), &CxtI, in simplifyValueKnownNonZero()
55 if (Value *V2 = simplifyValueKnownNonZero(I->getOperand(0), IC, CxtI)) { in simplifyValueKnownNonZero()
136 Instruction &CxtI) { in WillNotOverflowSignedMul() argument
148 ComputeNumSignBits(LHS, 0, &CxtI) + ComputeNumSignBits(RHS, 0, &CxtI); in WillNotOverflowSignedMul()
167 ComputeSignBit(LHS, LHSNonNegative, LHSNegative, /*Depth=*/0, &CxtI); in WillNotOverflowSignedMul()
168 ComputeSignBit(RHS, RHSNonNegative, RHSNegative, /*Depth=*/0, &CxtI); in WillNotOverflowSignedMul()
DInstCombineShifts.cpp63 Instruction *CxtI) { in canEvaluateShiftedShift() argument
96 if (IC.MaskedValueIsZero(SecondShift->getOperand(0), Mask, 0, CxtI)) in canEvaluateShiftedShift()
116 InstCombiner &IC, Instruction *CxtI) { in CanEvaluateShifted() argument
164 return canEvaluateShiftedShift(NumBits, IsLeftShift, I, IC, CxtI); in CanEvaluateShifted()
DInstCombineAndOrXor.cpp1680 Instruction *CxtI) { in FoldOrOfICmps() argument
1700 isKnownToBeAPowerOfTwo(LAnd->getOperand(1), DL, false, 0, AC, CxtI, in FoldOrOfICmps()
1702 isKnownToBeAPowerOfTwo(RAnd->getOperand(1), DL, false, 0, AC, CxtI, in FoldOrOfICmps()
1708 CxtI, DT) && in FoldOrOfICmps()
1710 CxtI, DT)) { in FoldOrOfICmps()
/external/llvm/lib/Analysis/
DValueTracking.cpp71 const Instruction *CxtI; member
86 Query(const DataLayout &DL, AssumptionCache *AC, const Instruction *CxtI, in Query()
88 : DL(DL), AC(AC), CxtI(CxtI), DT(DT), NumExcluded(0) {} in Query()
91 : DL(Q.DL), AC(Q.AC), CxtI(Q.CxtI), DT(Q.DT), NumExcluded(Q.NumExcluded) { in Query()
108 static const Instruction *safeCxtI(const Value *V, const Instruction *CxtI) { in safeCxtI() argument
111 if (CxtI && CxtI->getParent()) in safeCxtI()
112 return CxtI; in safeCxtI()
115 CxtI = dyn_cast<Instruction>(V); in safeCxtI()
116 if (CxtI && CxtI->getParent()) in safeCxtI()
117 return CxtI; in safeCxtI()
[all …]
DInstructionSimplify.cpp54 const Instruction *CxtI; member
59 : DL(DL), TLI(tli), DT(dt), AC(ac), CxtI(cxti) {} in Query()
585 const Instruction *CxtI) { in SimplifyAddInst() argument
586 return ::SimplifyAddInst(Op0, Op1, isNSW, isNUW, Query(DL, TLI, DT, AC, CxtI), in SimplifyAddInst()
780 const Instruction *CxtI) { in SimplifySubInst() argument
781 return ::SimplifySubInst(Op0, Op1, isNSW, isNUW, Query(DL, TLI, DT, AC, CxtI), in SimplifySubInst()
949 const Instruction *CxtI) { in SimplifyFAddInst() argument
950 return ::SimplifyFAddInst(Op0, Op1, FMF, Query(DL, TLI, DT, AC, CxtI), in SimplifyFAddInst()
958 const Instruction *CxtI) { in SimplifyFSubInst() argument
959 return ::SimplifyFSubInst(Op0, Op1, FMF, Query(DL, TLI, DT, AC, CxtI), in SimplifyFSubInst()
[all …]
DLazyValueInfo.cpp446 LVILatticeVal &Result, Instruction *CxtI = nullptr);
502 Instruction *CxtI = nullptr);
507 LVILatticeVal getValueAt(Value *V, Instruction *CxtI);
512 Instruction *CxtI = nullptr);
1272 Instruction *CxtI) { in getEdgeValue() argument
1310 intersectAssumeBlockValueConstantRange(Val, InBlock, CxtI); in getEdgeValue()
1317 Instruction *CxtI) { in getValueInBlock() argument
1327 intersectAssumeBlockValueConstantRange(V, Result, CxtI); in getValueInBlock()
1333 LVILatticeVal LazyValueInfoCache::getValueAt(Value *V, Instruction *CxtI) { in getValueAt() argument
1335 << CxtI->getName() << "'\n"); in getValueAt()
[all …]
/external/llvm/lib/Transforms/Scalar/
DJumpThreading.cpp377 ConstantPreference Preference, Instruction *CxtI) { in ComputeValueKnownInPredecessors() argument
418 Constant *PredCst = LVI->getConstantOnEdge(V, P, BB, CxtI); in ComputeValueKnownInPredecessors()
435 BB, CxtI); in ComputeValueKnownInPredecessors()
452 ComputeValueKnownInPredecessors(Source, BB, Result, Preference, CxtI); in ComputeValueKnownInPredecessors()
473 WantInteger, CxtI); in ComputeValueKnownInPredecessors()
475 WantInteger, CxtI); in ComputeValueKnownInPredecessors()
511 WantInteger, CxtI); in ComputeValueKnownInPredecessors()
529 WantInteger, CxtI); in ComputeValueKnownInPredecessors()
565 CxtI ? CxtI : Cmp); in ComputeValueKnownInPredecessors()
590 RHSCst, P, BB, CxtI ? CxtI : Cmp); in ComputeValueKnownInPredecessors()
[all …]
/external/llvm/include/llvm/Transforms/Utils/
DLocal.h170 const Instruction *CxtI = nullptr,
176 const Instruction *CxtI = nullptr,
179 return getOrEnforceKnownAlignment(V, 0, DL, CxtI, AC, DT);
/external/llvm/include/llvm/Transforms/Scalar/
DJumpThreading.h119 Instruction *CxtI = nullptr);
122 Instruction *CxtI = nullptr);
/external/llvm/lib/Transforms/Utils/
DLocal.cpp1010 const Instruction *CxtI, in getOrEnforceKnownAlignment() argument
1018 computeKnownBits(V, KnownZero, KnownOne, DL, 0, AC, CxtI, DT); in getOrEnforceKnownAlignment()