Home
last modified time | relevance | path

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

12

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineInternal.h537 const Instruction &CxtI) const { in willNotOverflowSignedAdd() argument
538 return computeOverflowForSignedAdd(LHS, RHS, &CxtI) == in willNotOverflowSignedAdd()
543 const Instruction &CxtI) const { in willNotOverflowUnsignedAdd() argument
544 return computeOverflowForUnsignedAdd(LHS, RHS, &CxtI) == in willNotOverflowUnsignedAdd()
549 const Instruction &CxtI, bool IsSigned) const { in willNotOverflowAdd() argument
550 return IsSigned ? willNotOverflowSignedAdd(LHS, RHS, CxtI) in willNotOverflowAdd()
551 : willNotOverflowUnsignedAdd(LHS, RHS, CxtI); in willNotOverflowAdd()
555 const Instruction &CxtI) const { in willNotOverflowSignedSub() argument
556 return computeOverflowForSignedSub(LHS, RHS, &CxtI) == in willNotOverflowSignedSub()
561 const Instruction &CxtI) const { in willNotOverflowUnsignedSub() argument
[all …]
DInstCombineSimplifyDemanded.cpp120 Instruction *CxtI) { in SimplifyDemandedUseBits() argument
131 computeKnownBits(V, Known, Depth, CxtI); in SimplifyDemandedUseBits()
144 computeKnownBits(V, Known, Depth, CxtI); in SimplifyDemandedUseBits()
152 return SimplifyMultipleUseDemandedBits(I, DemandedMask, Known, Depth, CxtI); in SimplifyDemandedUseBits()
165 computeKnownBits(I, Known, Depth, CxtI); in SimplifyDemandedUseBits()
585 unsigned SignBits = ComputeNumSignBits(I->getOperand(0), Depth + 1, CxtI); in SimplifyDemandedUseBits()
668 computeKnownBits(I->getOperand(0), LHSKnown, Depth + 1, CxtI); in SimplifyDemandedUseBits()
778 computeKnownBits(V, Known, Depth, CxtI); in SimplifyDemandedUseBits()
796 Instruction *CxtI) { in SimplifyMultipleUseDemandedBits() argument
810 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 …]
DInstCombineAndOrXor.cpp862 Instruction &CxtI) { in foldAndOrOfICmpsOfAndWithPow2() argument
886 isKnownToBeAPowerOfTwo(B, false, 0, &CxtI) && in foldAndOrOfICmpsOfAndWithPow2()
887 isKnownToBeAPowerOfTwo(D, false, 0, &CxtI)) { in foldAndOrOfICmpsOfAndWithPow2()
929 Instruction &CxtI, in foldSignedTruncationCheck() argument
931 assert(CxtI.getOpcode() == Instruction::And); in foldSignedTruncationCheck()
1019 CxtI.getName() + ".simplified"); in foldSignedTruncationCheck()
1065 return isKnownNonZero(V, Q.DL, /*Depth=*/0, Q.AC, Q.CxtI, Q.DT); in foldUnsignedUnderflowCheck()
1146 Instruction &CxtI) { in foldAndOfICmps() argument
1147 const SimplifyQuery Q = SQ.getWithInstruction(&CxtI); in foldAndOfICmps()
1151 if (Value *V = foldAndOrOfICmpsOfAndWithPow2(LHS, RHS, true, CxtI)) in foldAndOfICmps()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DValueTracking.h57 const Instruction *CxtI = nullptr,
65 const Instruction *CxtI = nullptr,
80 const Instruction *CxtI = nullptr,
92 const Instruction *CxtI = nullptr,
96 bool isOnlyUsedInZeroEqualityComparison(const Instruction *CxtI);
106 const Instruction *CxtI = nullptr,
120 const Instruction *CxtI = nullptr,
128 const Instruction *CxtI = nullptr,
136 const Instruction *CxtI = nullptr,
144 const Instruction *CxtI = nullptr,
[all …]
DLazyValueInfo.h73 Instruction *CxtI = nullptr);
79 Instruction *CxtI);
83 Constant *getConstant(Value *V, BasicBlock *BB, Instruction *CxtI = nullptr);
88 ConstantRange getConstantRange(Value *V, BasicBlock *BB, Instruction *CxtI = nullptr);
93 Instruction *CxtI = nullptr);
100 Instruction *CxtI = nullptr);
DInstructionSimplify.h95 const Instruction *CxtI = nullptr; member
103 : DL(DL), CxtI(CXTI) {} in DL()
109 : DL(DL), TLI(TLI), DT(DT), AC(AC), CxtI(CXTI), IIQ(UseInstrInfo) {} in DL()
112 Copy.CxtI = I; in getWithInstruction()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DValueTracking.cpp105 const Instruction *CxtI; member
127 Query(const DataLayout &DL, AssumptionCache *AC, const Instruction *CxtI, in Query()
130 : DL(DL), AC(AC), CxtI(CxtI), DT(DT), ORE(ORE), IIQ(UseInstrInfo) {} in Query()
133 : DL(Q.DL), AC(Q.AC), CxtI(Q.CxtI), DT(Q.DT), ORE(Q.ORE), IIQ(Q.IIQ), in Query()
152 static const Instruction *safeCxtI(const Value *V, const Instruction *CxtI) { in safeCxtI() argument
155 if (CxtI && CxtI->getParent()) in safeCxtI()
156 return CxtI; in safeCxtI()
159 CxtI = dyn_cast<Instruction>(V); in safeCxtI()
160 if (CxtI && CxtI->getParent()) in safeCxtI()
161 return CxtI; in safeCxtI()
[all …]
DLazyValueInfo.cpp412 ValueLatticeElement &Result, Instruction *CxtI = nullptr);
455 Instruction *CxtI = nullptr);
460 ValueLatticeElement getValueAt(Value *V, Instruction *CxtI);
466 Instruction *CxtI = nullptr);
1510 Instruction *CxtI) { in getEdgeValue() argument
1549 intersectAssumeOrGuardBlockValueConstantRange(Val, InBlock, CxtI); in getEdgeValue()
1556 Instruction *CxtI) { in getValueInBlock() argument
1566 intersectAssumeOrGuardBlockValueConstantRange(V, Result, CxtI); in getValueInBlock()
1572 ValueLatticeElement LazyValueInfoImpl::getValueAt(Value *V, Instruction *CxtI) { in getValueAt() argument
1573 LLVM_DEBUG(dbgs() << "LVI Getting value " << *V << " at '" << CxtI->getName() in getValueAt()
[all …]
DInstructionSimplify.cpp761 KnownBits Known = computeKnownBits(Op1, Q.DL, 0, Q.AC, Q.CxtI, Q.DT); in SimplifySubInst()
1271 KnownBits Known = computeKnownBits(Op1, Q.DL, 0, Q.AC, Q.CxtI, Q.DT); in SimplifyShift()
1303 KnownBits Op0Known = computeKnownBits(Op0, Q.DL, /*Depth=*/0, Q.AC, Q.CxtI, Q.DT); in SimplifyRightShift()
1366 const KnownBits YKnown = computeKnownBits(Y, Q.DL, 0, Q.AC, Q.CxtI, Q.DT); in SimplifyLShrInst()
1400 unsigned NumSignBits = ComputeNumSignBits(Op0, Q.DL, 0, Q.AC, Q.CxtI, Q.DT); in SimplifyAShrInst()
1469 isKnownNonZero(B, Q.DL, /*Depth=*/0, Q.AC, Q.CxtI, Q.DT)) in simplifyUnsignedRangeCheck()
1473 isKnownNonZero(B, Q.DL, /*Depth=*/0, Q.AC, Q.CxtI, Q.DT)) in simplifyUnsignedRangeCheck()
1496 isKnownNonZero(X, Q.DL, /*Depth=*/0, Q.AC, Q.CxtI, Q.DT)) in simplifyUnsignedRangeCheck()
1507 isKnownNonZero(X, Q.DL, /*Depth=*/0, Q.AC, Q.CxtI, Q.DT)) in simplifyUnsignedRangeCheck()
2007 if (isKnownToBeAPowerOfTwo(Op0, Q.DL, /*OrZero*/ true, 0, Q.AC, Q.CxtI, in SimplifyAndInst()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Scalar/
DJumpThreading.h131 Instruction *CxtI = nullptr);
136 Instruction *CxtI = nullptr) {
139 RecursionSet, CxtI);
144 Instruction *CxtI = nullptr);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DJumpThreading.cpp597 Instruction *CxtI) { in ComputeValueKnownInPredecessorsImpl() argument
638 Constant *PredCst = LVI->getConstantOnEdge(V, P, BB, CxtI); in ComputeValueKnownInPredecessorsImpl()
659 BB, CxtI); in ComputeValueKnownInPredecessorsImpl()
675 RecursionSet, CxtI); in ComputeValueKnownInPredecessorsImpl()
696 WantInteger, RecursionSet, CxtI); in ComputeValueKnownInPredecessorsImpl()
698 WantInteger, RecursionSet, CxtI); in ComputeValueKnownInPredecessorsImpl()
734 WantInteger, RecursionSet, CxtI); in ComputeValueKnownInPredecessorsImpl()
752 WantInteger, RecursionSet, CxtI); in ComputeValueKnownInPredecessorsImpl()
809 CxtI ? CxtI : Cmp); in ComputeValueKnownInPredecessorsImpl()
838 CmpConst, P, BB, CxtI ? CxtI : Cmp); in ComputeValueKnownInPredecessorsImpl()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/
DLocal.h262 const Instruction *CxtI = nullptr,
268 const Instruction *CxtI = nullptr,
271 return getOrEnforceKnownAlignment(V, 0, DL, CxtI, AC, DT);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/
DWebAssemblyTargetTransformInfo.h65 const Instruction *CxtI = nullptr);
DWebAssemblyTargetTransformInfo.cpp50 const Instruction *CxtI) { in getArithmeticInstrCost() argument
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/
DNVPTXTargetTransformInfo.h95 const Instruction *CxtI = nullptr);
DNVPTXTargetTransformInfo.cpp118 const Instruction *CxtI) { in getArithmeticInstrCost() argument
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Lanai/
DLanaiTargetTransformInfo.h85 const Instruction *CxtI = nullptr) {
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonTargetTransformInfo.cpp243 const Instruction *CxtI) { in getArithmeticInstrCost() argument
250 Opd1PropInfo, Opd2PropInfo, Args, CxtI); in getArithmeticInstrCost()
DHexagonTargetTransformInfo.h137 const Instruction *CxtI = nullptr);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/
DSystemZTargetTransformInfo.h79 const Instruction *CxtI = nullptr);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/
DPPCTargetTransformInfo.h95 const Instruction *CxtI = nullptr);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64TargetTransformInfo.h129 const Instruction *CxtI = nullptr);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMTargetTransformInfo.cpp675 const Instruction *CxtI) { in getArithmeticInstrCost() argument
749 if (!CxtI || !CxtI->hasOneUse() || !CxtI->isShift()) in getArithmeticInstrCost()
755 switch (cast<Instruction>(CxtI->user_back())->getOpcode()) { in getArithmeticInstrCost()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86TargetTransformInfo.h129 const Instruction *CxtI = nullptr);

12