/external/llvm-project/llvm/lib/IR/ |
D | ConstantRange.cpp | 94 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/ |
D | ConstantRange.cpp | 93 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/ |
D | ConstantRange.cpp | 70 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/ |
D | ScalarEvolutionAliasAnalysis.cpp | 56 (-BSizeInt).uge(SE.getUnsignedRange(BA).getUnsignedMax())) in alias() 70 (-ASizeInt).uge(SE.getUnsignedRange(AB).getUnsignedMax())) in alias()
|
D | ScalarEvolution.cpp | 1178 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 …]
|
D | ValueTracking.cpp | 393 (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/ |
D | ScalarEvolutionAliasAnalysis.cpp | 60 (-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/ |
D | ScalarEvolutionAliasAnalysis.cpp | 60 (-BSizeInt).uge(SE.getUnsignedRange(BA).getUnsignedMax())) in alias() 74 (-ASizeInt).uge(SE.getUnsignedRange(AB).getUnsignedMax())) in alias()
|
D | ValueTracking.cpp | 458 (Range.getUnsignedMax() ^ Range.getUnsignedMin()).countLeadingZeros(); in computeKnownBitsFromRangeMetadata() 461 Known.One &= Range.getUnsignedMax() & Mask; in computeKnownBitsFromRangeMetadata() 462 Known.Zero &= ~Range.getUnsignedMax() & Mask; in computeKnownBitsFromRangeMetadata()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/ |
D | BoundsChecking.cpp | 91 Value *Cmp2 = SizeRange.getUnsignedMin().uge(OffsetRange.getUnsignedMax()) in getBoundsCheckCond() 96 .uge(NeededSizeRange.getUnsignedMax()) in getBoundsCheckCond()
|
/external/llvm-project/llvm/lib/Transforms/Instrumentation/ |
D | BoundsChecking.cpp | 91 Value *Cmp2 = SizeRange.getUnsignedMin().uge(OffsetRange.getUnsignedMax()) in getBoundsCheckCond() 96 .uge(NeededSizeRange.getUnsignedMax()) in getBoundsCheckCond()
|
/external/llvm/include/llvm/IR/ |
D | ConstantRange.h | 179 APInt getUnsignedMax() const;
|
/external/llvm/lib/Transforms/Scalar/ |
D | PlaceSafepoints.cpp | 241 SE->getUnsignedRange(MaxTrips).getUnsignedMax().isIntN( in mustBeFiniteCountedLoop() 253 SE->getUnsignedRange(MaxExec).getUnsignedMax().isIntN( in mustBeFiniteCountedLoop()
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | PlaceSafepoints.cpp | 247 SE->getUnsignedRange(MaxTrips).getUnsignedMax().isIntN( in mustBeFiniteCountedLoop() 259 SE->getUnsignedRange(MaxExec).getUnsignedMax().isIntN( in mustBeFiniteCountedLoop()
|
D | CorrelatedValuePropagation.cpp | 934 if (!LRange.getUnsignedMax().ule(RHS->getValue())) in processAnd()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | PlaceSafepoints.cpp | 246 SE->getUnsignedRange(MaxTrips).getUnsignedMax().isIntN( in mustBeFiniteCountedLoop() 258 SE->getUnsignedRange(MaxExec).getUnsignedMax().isIntN( in mustBeFiniteCountedLoop()
|
D | CorrelatedValuePropagation.cpp | 636 PowerOf2Ceil(OperandRange.getUnsignedMax().getActiveBits()), 8); in processUDivOrURem() 797 if (!LRange.getUnsignedMax().ule(RHS->getValue())) in processAnd()
|
/external/llvm-project/llvm/include/llvm/IR/ |
D | ConstantRange.h | 245 APInt getUnsignedMax() const;
|
/external/llvm-project/llvm/lib/Target/X86/ |
D | X86Subtarget.cpp | 135 if (CR->getUnsignedMax().ult(128)) in classifyGlobalReference()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | ConstantRange.h | 237 APInt getUnsignedMax() const;
|
/external/llvm/unittests/IR/ |
D | ConstantRangeTest.cpp | 129 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/ |
D | X86Subtarget.cpp | 134 if (CR->getUnsignedMax().ult(128)) in classifyGlobalReference()
|
/external/llvm-project/llvm/unittests/IR/ |
D | ConstantRangeTest.cpp | 287 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/ |
D | ScalarEvolution.h | 828 return getRangeRef(S, HINT_RANGE_UNSIGNED).getUnsignedMax();
|
/external/llvm-project/llvm/include/llvm/Analysis/ |
D | ScalarEvolution.h | 862 return getRangeRef(S, HINT_RANGE_UNSIGNED).getUnsignedMax();
|