Home
last modified time | relevance | path

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

12

/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/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DValueTracking.h56 const Instruction *CxtI = nullptr,
63 const Instruction *CxtI = nullptr,
77 const Instruction *CxtI = nullptr,
88 const Instruction *CxtI = nullptr,
91 bool isOnlyUsedInZeroEqualityComparison(const Instruction *CxtI);
101 const Instruction *CxtI = nullptr,
114 const Instruction *CxtI = nullptr,
121 const Instruction *CxtI = nullptr,
128 const Instruction *CxtI = nullptr,
135 const Instruction *CxtI = nullptr,
[all …]
DLazyValueInfo.h74 Instruction *CxtI = nullptr);
80 Instruction *CxtI);
84 Constant *getConstant(Value *V, BasicBlock *BB, Instruction *CxtI = nullptr);
89 ConstantRange getConstantRange(Value *V, BasicBlock *BB, Instruction *CxtI = nullptr);
94 Instruction *CxtI = nullptr);
101 Instruction *CxtI = nullptr);
DInstructionSimplify.h59 const Instruction *CxtI = nullptr; member
62 : DL(DL), CxtI(CXTI) {} in DL()
68 : DL(DL), TLI(TLI), DT(DT), AC(AC), CxtI(CXTI) {} in DL()
71 Copy.CxtI = I; in getWithInstruction()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineInternal.h488 const Instruction &CxtI) const { in willNotOverflowSignedAdd() argument
489 return computeOverflowForSignedAdd(LHS, RHS, &CxtI) == in willNotOverflowSignedAdd()
494 const Instruction &CxtI) const { in willNotOverflowUnsignedAdd() argument
495 return computeOverflowForUnsignedAdd(LHS, RHS, &CxtI) == in willNotOverflowUnsignedAdd()
500 const Instruction &CxtI) const { in willNotOverflowSignedSub() argument
501 return computeOverflowForSignedSub(LHS, RHS, &CxtI) == in willNotOverflowSignedSub()
506 const Instruction &CxtI) const { in willNotOverflowUnsignedSub() argument
507 return computeOverflowForUnsignedSub(LHS, RHS, &CxtI) == in willNotOverflowUnsignedSub()
512 const Instruction &CxtI) const { in willNotOverflowSignedMul() argument
513 return computeOverflowForSignedMul(LHS, RHS, &CxtI) == in willNotOverflowSignedMul()
[all …]
DInstCombineSimplifyDemanded.cpp119 Instruction *CxtI) { in SimplifyDemandedUseBits() argument
130 computeKnownBits(V, Known, Depth, CxtI); in SimplifyDemandedUseBits()
143 computeKnownBits(V, Known, Depth, CxtI); in SimplifyDemandedUseBits()
151 return SimplifyMultipleUseDemandedBits(I, DemandedMask, Known, Depth, CxtI); in SimplifyDemandedUseBits()
164 computeKnownBits(I, Known, Depth, CxtI); in SimplifyDemandedUseBits()
535 unsigned SignBits = ComputeNumSignBits(I->getOperand(0), Depth + 1, CxtI); in SimplifyDemandedUseBits()
618 computeKnownBits(I->getOperand(0), LHSKnown, Depth + 1, CxtI); in SimplifyDemandedUseBits()
704 computeKnownBits(V, Known, Depth, CxtI); in SimplifyDemandedUseBits()
722 Instruction *CxtI) { in SimplifyMultipleUseDemandedBits() argument
736 computeKnownBits(I->getOperand(1), RHSKnown, Depth + 1, CxtI); in SimplifyMultipleUseDemandedBits()
[all …]
DInstCombineCasts.cpp343 Instruction *CxtI) { in canEvaluateTruncated() argument
359 return canEvaluateTruncated(I->getOperand(0), Ty, IC, CxtI) && in canEvaluateTruncated()
360 canEvaluateTruncated(I->getOperand(1), Ty, IC, CxtI); in canEvaluateTruncated()
369 if (IC.MaskedValueIsZero(I->getOperand(0), Mask, 0, CxtI) && in canEvaluateTruncated()
370 IC.MaskedValueIsZero(I->getOperand(1), Mask, 0, CxtI)) { in canEvaluateTruncated()
371 return canEvaluateTruncated(I->getOperand(0), Ty, IC, CxtI) && in canEvaluateTruncated()
372 canEvaluateTruncated(I->getOperand(1), Ty, IC, CxtI); in canEvaluateTruncated()
383 return canEvaluateTruncated(I->getOperand(0), Ty, IC, CxtI); in canEvaluateTruncated()
397 APInt::getBitsSetFrom(OrigBitWidth, BitWidth), 0, CxtI)) { in canEvaluateTruncated()
398 return canEvaluateTruncated(I->getOperand(0), Ty, IC, CxtI); in canEvaluateTruncated()
[all …]
/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 …]
/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/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DValueTracking.cpp104 const Instruction *CxtI; member
123 Query(const DataLayout &DL, AssumptionCache *AC, const Instruction *CxtI, in Query()
125 : DL(DL), AC(AC), CxtI(CxtI), DT(DT), ORE(ORE) {} in Query()
128 : DL(Q.DL), AC(Q.AC), CxtI(Q.CxtI), DT(Q.DT), ORE(Q.ORE), in Query()
147 static const Instruction *safeCxtI(const Value *V, const Instruction *CxtI) { in safeCxtI() argument
150 if (CxtI && CxtI->getParent()) in safeCxtI()
151 return CxtI; in safeCxtI()
154 CxtI = dyn_cast<Instruction>(V); in safeCxtI()
155 if (CxtI && CxtI->getParent()) in safeCxtI()
156 return CxtI; in safeCxtI()
[all …]
DLazyValueInfo.cpp408 ValueLatticeElement &Result, Instruction *CxtI = nullptr);
437 Instruction *CxtI = nullptr);
442 ValueLatticeElement getValueAt(Value *V, Instruction *CxtI);
448 Instruction *CxtI = nullptr);
1359 Instruction *CxtI) { in getEdgeValue() argument
1398 intersectAssumeOrGuardBlockValueConstantRange(Val, InBlock, CxtI); in getEdgeValue()
1405 Instruction *CxtI) { in getValueInBlock() argument
1415 intersectAssumeOrGuardBlockValueConstantRange(V, Result, CxtI); in getValueInBlock()
1421 ValueLatticeElement LazyValueInfoImpl::getValueAt(Value *V, Instruction *CxtI) { in getValueAt() argument
1422 LLVM_DEBUG(dbgs() << "LVI Getting value " << *V << " at '" << CxtI->getName() in getValueAt()
[all …]
DInstructionSimplify.cpp737 KnownBits Known = computeKnownBits(Op1, Q.DL, 0, Q.AC, Q.CxtI, Q.DT); in SimplifySubInst()
1244 KnownBits Known = computeKnownBits(Op1, Q.DL, 0, Q.AC, Q.CxtI, Q.DT); in SimplifyShift()
1276 KnownBits Op0Known = computeKnownBits(Op0, Q.DL, /*Depth=*/0, Q.AC, Q.CxtI, Q.DT); in SimplifyRightShift()
1338 const KnownBits YKnown = computeKnownBits(Y, Q.DL, 0, Q.AC, Q.CxtI, Q.DT); in SimplifyLShrInst()
1372 unsigned NumSignBits = ComputeNumSignBits(Op0, Q.DL, 0, Q.AC, Q.CxtI, Q.DT); in SimplifyAShrInst()
1826 if (isKnownToBeAPowerOfTwo(Op0, Q.DL, /*OrZero*/ true, 0, Q.AC, Q.CxtI, in SimplifyAndInst()
1829 if (isKnownToBeAPowerOfTwo(Op1, Q.DL, /*OrZero*/ true, 0, Q.AC, Q.CxtI, in SimplifyAndInst()
1883 const KnownBits YKnown = computeKnownBits(Y, Q.DL, 0, Q.AC, Q.CxtI, Q.DT); in SimplifyAndInst()
1886 const KnownBits XKnown = computeKnownBits(X, Q.DL, 0, Q.AC, Q.CxtI, in SimplifyAndInst()
2017 if (MaskedValueIsZero(N, *C2, Q.DL, 0, Q.AC, Q.CxtI, Q.DT)) in SimplifyOrInst()
[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/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Utils/
DLocal.h255 const Instruction *CxtI = nullptr,
261 const Instruction *CxtI = nullptr,
264 return getOrEnforceKnownAlignment(V, 0, DL, CxtI, AC, DT);
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DJumpThreading.cpp574 ConstantPreference Preference, Instruction *CxtI) { in ComputeValueKnownInPredecessors() argument
619 Constant *PredCst = LVI->getConstantOnEdge(V, P, BB, CxtI); in ComputeValueKnownInPredecessors()
640 BB, CxtI); in ComputeValueKnownInPredecessors()
655 ComputeValueKnownInPredecessors(Source, BB, Result, Preference, CxtI); in ComputeValueKnownInPredecessors()
676 WantInteger, CxtI); in ComputeValueKnownInPredecessors()
678 WantInteger, CxtI); in ComputeValueKnownInPredecessors()
714 WantInteger, CxtI); in ComputeValueKnownInPredecessors()
732 WantInteger, CxtI); in ComputeValueKnownInPredecessors()
789 CxtI ? CxtI : Cmp); in ComputeValueKnownInPredecessors()
818 CmpConst, P, BB, CxtI ? CxtI : Cmp); in ComputeValueKnownInPredecessors()
[all …]
/external/llvm/include/llvm/Transforms/Scalar/
DJumpThreading.h119 Instruction *CxtI = nullptr);
122 Instruction *CxtI = nullptr);
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Scalar/
DJumpThreading.h134 Instruction *CxtI = nullptr);
137 Instruction *CxtI = nullptr);

12