Home
last modified time | relevance | path

Searched refs:getUnsignedMax (Results 1 – 25 of 32) sorted by relevance

12

/external/llvm-project/llvm/lib/IR/
DConstantRange.cpp94 APInt UMax(CR.getUnsignedMax()); in makeAllowedICmpRegion()
106 return getNonEmpty(APInt::getMinValue(W), CR.getUnsignedMax() + 1); in makeAllowedICmpRegion()
247 -Other.getUnsignedMax()); in makeGuaranteedNoWrapRegion()
258 return getNonEmpty(Other.getUnsignedMax(), APInt::getMinValue(BitWidth)); in makeGuaranteedNoWrapRegion()
269 return makeExactMulNUWRegion(Other.getUnsignedMax()); in makeGuaranteedNoWrapRegion()
287 APInt ShAmtUMax = ShAmt.getUnsignedMax(); in makeGuaranteedNoWrapRegion()
365 APInt ConstantRange::getUnsignedMax() const { in getUnsignedMax() function in ConstantRange
420 return getUnsignedMax().getActiveBits(); in getActiveBits()
991 if (getUnsignedMax().ult(Other.getUnsignedMin())) in subWithNoWrap()
1017 APInt this_max = getUnsignedMax().zext(getBitWidth() * 2); in multiply()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DConstantRange.cpp93 APInt UMax(CR.getUnsignedMax()); in makeAllowedICmpRegion()
105 return getNonEmpty(APInt::getMinValue(W), CR.getUnsignedMax() + 1); in makeAllowedICmpRegion()
246 -Other.getUnsignedMax()); in makeGuaranteedNoWrapRegion()
257 return getNonEmpty(Other.getUnsignedMax(), APInt::getMinValue(BitWidth)); in makeGuaranteedNoWrapRegion()
268 return makeExactMulNUWRegion(Other.getUnsignedMax()); in makeGuaranteedNoWrapRegion()
286 APInt ShAmtUMax = ShAmt.getUnsignedMax(); in makeGuaranteedNoWrapRegion()
364 APInt ConstantRange::getUnsignedMax() const { in getUnsignedMax() function in ConstantRange
925 if (getUnsignedMax().ult(Other.getUnsignedMin())) in subWithNoWrap()
951 APInt this_max = getUnsignedMax().zext(getBitWidth() * 2); in multiply()
953 APInt Other_max = Other.getUnsignedMax().zext(getBitWidth() * 2); in multiply()
[all …]
/external/llvm/lib/IR/
DConstantRange.cpp70 APInt UMax(CR.getUnsignedMax()); in makeAllowedICmpRegion()
82 APInt UMax(CR.getUnsignedMax()); in makeAllowedICmpRegion()
206 -Other.getUnsignedMax())); in makeGuaranteedNoWrapRegion()
270 APInt ConstantRange::getUnsignedMax() const { in getUnsignedMax() function in ConstantRange
708 APInt this_max = getUnsignedMax().zext(getBitWidth() * 2); in multiply()
710 APInt Other_max = Other.getUnsignedMax().zext(getBitWidth() * 2); in multiply()
763 APInt NewU = APIntOps::umax(getUnsignedMax(), Other.getUnsignedMax()) + 1; in umax()
789 APInt NewU = APIntOps::umin(getUnsignedMax(), Other.getUnsignedMax()) + 1; in umin()
797 if (isEmptySet() || RHS.isEmptySet() || RHS.getUnsignedMax() == 0) in udiv()
802 APInt Lower = getUnsignedMin().udiv(RHS.getUnsignedMax()); in udiv()
[all …]
/external/llvm/lib/Analysis/
DScalarEvolutionAliasAnalysis.cpp56 (-BSizeInt).uge(SE.getUnsignedRange(BA).getUnsignedMax())) in alias()
70 (-ASizeInt).uge(SE.getUnsignedRange(AB).getUnsignedMax())) in alias()
DScalarEvolution.cpp1178 SE->getUnsignedRange(Step).getUnsignedMax()); in getUnsignedOverflowLimitForStep()
1539 getUnsignedRange(Step).getUnsignedMax()); in getZeroExtendExpr()
4632 APInt Max = APIntOps::umax(StartURange.getUnsignedMax(), in getRangeForAffineAR()
4633 EndURange.getUnsignedMax()); in getRangeForAffineAR()
7129 MaxBECount = CR.getUnsignedMax().isMinValue() in howFarToZero()
7133 MaxBECount = getConstant(CountDown ? CR.getUnsignedMax() in howFarToZero()
7506 if (!getUnsignedRange(RHS).getUnsignedMax().isMaxValue()) { in SimplifyICmpOperands()
7522 } else if (!getUnsignedRange(LHS).getUnsignedMax().isMaxValue()) { in SimplifyICmpOperands()
8594 APInt MaxRHS = getUnsignedRange(RHS).getUnsignedMax(); in doesIVOverflowOnLT()
8597 .getUnsignedMax(); in doesIVOverflowOnLT()
[all …]
DValueTracking.cpp393 (Range.getUnsignedMax() ^ Range.getUnsignedMin()).countLeadingZeros(); in computeKnownBitsFromRangeMetadata()
396 KnownOne &= Range.getUnsignedMax() & Mask; in computeKnownBitsFromRangeMetadata()
397 KnownZero &= ~Range.getUnsignedMax() & Mask; in computeKnownBitsFromRangeMetadata()
/external/llvm-project/llvm/lib/Analysis/
DScalarEvolutionAliasAnalysis.cpp60 (-BSizeInt).uge(SE.getUnsignedRange(BA).getUnsignedMax())) in alias()
74 (-ASizeInt).uge(SE.getUnsignedRange(AB).getUnsignedMax())) in alias()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DScalarEvolutionAliasAnalysis.cpp60 (-BSizeInt).uge(SE.getUnsignedRange(BA).getUnsignedMax())) in alias()
74 (-ASizeInt).uge(SE.getUnsignedRange(AB).getUnsignedMax())) in alias()
DValueTracking.cpp458 (Range.getUnsignedMax() ^ Range.getUnsignedMin()).countLeadingZeros(); in computeKnownBitsFromRangeMetadata()
461 Known.One &= Range.getUnsignedMax() & Mask; in computeKnownBitsFromRangeMetadata()
462 Known.Zero &= ~Range.getUnsignedMax() & Mask; in computeKnownBitsFromRangeMetadata()
/external/llvm-project/llvm/lib/Transforms/Instrumentation/
DBoundsChecking.cpp91 Value *Cmp2 = SizeRange.getUnsignedMin().uge(OffsetRange.getUnsignedMax()) in getBoundsCheckCond()
96 .uge(NeededSizeRange.getUnsignedMax()) in getBoundsCheckCond()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
DBoundsChecking.cpp91 Value *Cmp2 = SizeRange.getUnsignedMin().uge(OffsetRange.getUnsignedMax()) in getBoundsCheckCond()
96 .uge(NeededSizeRange.getUnsignedMax()) in getBoundsCheckCond()
/external/llvm/include/llvm/IR/
DConstantRange.h179 APInt getUnsignedMax() const;
/external/llvm/lib/Transforms/Scalar/
DPlaceSafepoints.cpp241 SE->getUnsignedRange(MaxTrips).getUnsignedMax().isIntN( in mustBeFiniteCountedLoop()
253 SE->getUnsignedRange(MaxExec).getUnsignedMax().isIntN( in mustBeFiniteCountedLoop()
/external/llvm-project/llvm/lib/Transforms/Scalar/
DPlaceSafepoints.cpp247 SE->getUnsignedRange(MaxTrips).getUnsignedMax().isIntN( in mustBeFiniteCountedLoop()
259 SE->getUnsignedRange(MaxExec).getUnsignedMax().isIntN( in mustBeFiniteCountedLoop()
DCorrelatedValuePropagation.cpp934 if (!LRange.getUnsignedMax().ule(RHS->getValue())) in processAnd()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DPlaceSafepoints.cpp246 SE->getUnsignedRange(MaxTrips).getUnsignedMax().isIntN( in mustBeFiniteCountedLoop()
258 SE->getUnsignedRange(MaxExec).getUnsignedMax().isIntN( in mustBeFiniteCountedLoop()
DCorrelatedValuePropagation.cpp636 PowerOf2Ceil(OperandRange.getUnsignedMax().getActiveBits()), 8); in processUDivOrURem()
797 if (!LRange.getUnsignedMax().ule(RHS->getValue())) in processAnd()
/external/llvm-project/llvm/include/llvm/IR/
DConstantRange.h245 APInt getUnsignedMax() const;
/external/llvm-project/llvm/lib/Target/X86/
DX86Subtarget.cpp135 if (CR->getUnsignedMax().ult(128)) in classifyGlobalReference()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DConstantRange.h237 APInt getUnsignedMax() const;
/external/llvm/unittests/IR/
DConstantRangeTest.cpp129 EXPECT_EQ(Full.getUnsignedMax(), APInt(16, UINT16_MAX)); in TEST_F()
130 EXPECT_EQ(One.getUnsignedMax(), APInt(16, 0xa)); in TEST_F()
131 EXPECT_EQ(Some.getUnsignedMax(), APInt(16, 0xaa9)); in TEST_F()
132 EXPECT_EQ(Wrap.getUnsignedMax(), APInt(16, UINT16_MAX)); in TEST_F()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86Subtarget.cpp134 if (CR->getUnsignedMax().ult(128)) in classifyGlobalReference()
/external/llvm-project/llvm/unittests/IR/
DConstantRangeTest.cpp287 EXPECT_EQ(Full.getUnsignedMax(), APInt(16, UINT16_MAX)); in TEST_F()
288 EXPECT_EQ(One.getUnsignedMax(), APInt(16, 0xa)); in TEST_F()
289 EXPECT_EQ(Some.getUnsignedMax(), APInt(16, 0xaa9)); in TEST_F()
290 EXPECT_EQ(Wrap.getUnsignedMax(), APInt(16, UINT16_MAX)); in TEST_F()
1731 if (Instruction::isShift(BinOp) && CR.getUnsignedMax().uge(Bits)) in TestNoWrapRegionExhaustive()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DScalarEvolution.h828 return getRangeRef(S, HINT_RANGE_UNSIGNED).getUnsignedMax();
/external/llvm-project/llvm/include/llvm/Analysis/
DScalarEvolution.h862 return getRangeRef(S, HINT_RANGE_UNSIGNED).getUnsignedMax();

12