Home
last modified time | relevance | path

Searched refs:getMinValue (Results 1 – 25 of 48) sorted by relevance

12

/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DInstructionCost.h62 static CostType getMinValue() { return std::numeric_limits<CostType>::min(); } in getMinValue() function
72 static InstructionCost getMin() { return getMinValue(); } in getMin()
105 Result = RHS.Value > 0 ? getMaxValue() : getMinValue();
123 Result = RHS.Value > 0 ? getMinValue() : getMaxValue();
143 Result = getMinValue();
H A DKnownBits.h120 APInt getMinValue() const { in getMinValue() function
/llvm-project-15.0.7/llvm/lib/Support/
H A DKnownBits.cpp28 APInt PossibleSumOne = LHS.getMinValue() + RHS.getMinValue() + CarryOne; in computeForAddCarry()
122 if (LHS.getMinValue().uge(RHS.getMaxValue())) in umax()
124 if (RHS.getMinValue().uge(LHS.getMaxValue())) in umax()
130 KnownBits L = LHS.makeGE(RHS.getMinValue()); in umax()
131 KnownBits R = RHS.makeGE(LHS.getMinValue()); in umax()
186 APInt MinShiftAmount = RHS.getMinValue(); in shl()
239 APInt MinShiftAmount = RHS.getMinValue(); in lshr()
291 APInt MinShiftAmount = RHS.getMinValue(); in ashr()
349 if (LHS.getMaxValue().ule(RHS.getMinValue())) in ugt()
352 if (LHS.getMinValue().ugt(RHS.getMaxValue())) in ugt()
H A DAPFixedPoint.cpp124 auto Val = APSInt::getMinValue(Sema.getWidth(), !Sema.isSigned()); in getMin()
420 APSInt DstMin = APSInt::getMinValue(DstWidth, !DstSign); in convertToInt()
/llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DBasicValueFactory.h192 const llvm::APSInt &getMinValue(const llvm::APSInt &v) { in getMinValue() function
193 return getValue(APSIntType(v).getMinValue()); in getMinValue()
200 const llvm::APSInt &getMinValue(QualType T) { in getMinValue() function
201 return getMinValue(getAPSIntType(T)); in getMinValue()
208 const llvm::APSInt &getMinValue(APSIntType T) { in getMinValue() function
209 return getValue(T.getMinValue()); in getMinValue()
H A DAPSIntType.h60 llvm::APSInt getMinValue() const LLVM_READONLY { in getMinValue() function
61 return llvm::APSInt::getMinValue(BitWidth, IsUnsigned); in getMinValue()
H A DRangedConstraintManager.h339 const llvm::APSInt &getMinValue() const;
356 APSIntType T{getMinValue()}; in containsZero()
/llvm-project-15.0.7/clang/unittests/Frontend/
H A DFixedPointString.cpp93 FixedPointValueToString(S, APSInt::getMinValue(16, /*Unsigned=*/false), 7); in TEST()
98 FixedPointValueToString(S, APSInt::getMinValue(32, /*Unsigned=*/false), 15); in TEST()
103 FixedPointValueToString(S, APSInt::getMinValue(64, /*Unsigned=*/false), 31); in TEST()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DRangeConstraintManager.cpp180 const APSInt Min = Ty.getMinValue(); in unite()
346 const llvm::APSInt &RangeSet::getMinValue() const { in getMinValue() function in RangeSet
384 APSIntType Type(getMinValue()); in pin()
398 APSIntType Type(getMinValue()); in pin()
412 Lower = Type.getMinValue(); in pin()
417 Lower = Type.getMinValue(); in pin()
422 Lower = Type.getMinValue(); in pin()
453 Lower = Type.getMinValue(); in pin()
463 Lower = Type.getMinValue(); in pin()
597 RHS.getMaxValue() < LHS.getMinValue()) in intersect()
[all …]
H A DProgramState.cpp335 nonloc::ConcreteInt Min(BVF.getMinValue(indexTy)); in assumeInBoundDual()
/llvm-project-15.0.7/llvm/lib/FuzzMutate/
H A DOpDescriptor.cpp19 Cs.push_back(ConstantInt::get(IntTy, APInt::getMinValue(W))); in makeConstantsWithType()
/llvm-project-15.0.7/llvm/lib/IR/
H A DConstantRange.cpp44 : Lower(Full ? APInt::getMaxValue(BitWidth) : APInt::getMinValue(BitWidth)), in ConstantRange()
68 return ConstantRange(Known.getMinValue(), Known.getMaxValue() + 1); in fromKnownBits()
72 APInt Lower = Known.getMinValue(), Upper = Known.getMaxValue(); in fromKnownBits()
115 return ConstantRange(APInt::getMinValue(W), std::move(UMax)); in makeAllowedICmpRegion()
124 return getNonEmpty(APInt::getMinValue(W), CR.getUnsignedMax() + 1); in makeAllowedICmpRegion()
253 APIntOps::RoundingUDiv(APInt::getMinValue(BitWidth), V, in makeExactMulNUWRegion()
319 return getNonEmpty(Other.getUnsignedMax(), APInt::getMinValue(BitWidth)); in makeGuaranteedNoWrapRegion()
433 return APInt::getMinValue(getBitWidth()); in getUnsignedMin()
742 APInt Min = APInt::getMinValue(BW); in castOp()
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DAPSInt.h290 static APSInt getMinValue(uint32_t numBits, bool Unsigned) { in getMinValue() function
291 return APSInt(Unsigned ? APInt::getMinValue(numBits) in getMinValue()
/llvm-project-15.0.7/llvm/unittests/IR/
H A DConstantRangeTest.cpp398 ConstantRange CR1(APInt(8, 42), APInt::getMinValue(8)); in TEST_F()
1602 ConstantRange(APInt::getMinValue(32), APInt::getMinValue(32) - 5)); in TEST()
1609 ConstantRange(APInt::getMinValue(32) + 5, APInt::getMinValue(32))); in TEST()
1626 APInt::getMinValue(32))); in TEST()
1643 APInt::getMinValue(32))); in TEST()
1652 ConstantRange(APInt::getMinValue(32), APInt::getMaxValue(32))); in TEST()
1659 ConstantRange(APInt::getMinValue(32) + 1, APInt::getMinValue(32))); in TEST()
1820 EXPECT_TRUE(ConstantRange(APInt::getMinValue(32), APInt(32, 100)) in TEST()
1830 EXPECT_TRUE(ConstantRange(APInt(32, 100), APInt::getMinValue(32)) in TEST()
1857 EXPECT_FALSE(ConstantRange(APInt::getMinValue(32) - APInt(32, 100), in TEST()
[all …]
/llvm-project-15.0.7/mlir/lib/Interfaces/
H A DInferIntRangeInterface.cpp61 umin = APInt::getMinValue(width); in fromSigned()
/llvm-project-15.0.7/llvm/unittests/Analysis/
H A DValueTrackingTest.cpp1609 EXPECT_EQ(Known.getMinValue(), 0u); in TEST_F()
1662 EXPECT_EQ(Known.getMinValue(), 544); in TEST_F()
1691 EXPECT_EQ(Known.getMinValue(), 0u); in TEST_F()
1722 EXPECT_EQ(Known.getMinValue(), 544); in TEST_F()
/llvm-project-15.0.7/mlir/lib/Analysis/DataFlow/
H A DIntegerRangeAnalysis.cpp28 APInt umin = APInt::getMinValue(width); in getPessimisticValueState()
/llvm-project-15.0.7/llvm/unittests/Support/
H A DKnownBitsTest.cpp401 APInt Max = APInt::getMinValue(Bits); in TEST()
406 EXPECT_EQ(Min, Known.getMinValue()); in TEST()
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/MCTargetDesc/
H A DHexagonMCInstrInfo.h162 int getMinValue(MCInstrInfo const &MCII, MCInst const &MCI);
H A DHexagonMCInstrInfo.cpp364 int HexagonMCInstrInfo::getMinValue(MCInstrInfo const &MCII, in getMinValue() function in HexagonMCInstrInfo
574 int MinValue = HexagonMCInstrInfo::getMinValue(MCII, MCI); in isConstExtended()
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonInstrInfo.h464 int getMinValue(const MachineInstr &MI) const;
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DNarrowingConversionsCheck.cpp252 return {llvm::APSInt::getMinValue(TypeSize, IsUnsignedInteger), in createFromType()
/llvm-project-15.0.7/mlir/lib/Dialect/Tosa/IR/
H A DTosaCanonicalizations.cpp365 APInt::getMinValue(inputElementType.getIntOrFloatBitWidth()) in matchAndRewrite()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUAtomicOptimizer.cpp443 return APInt::getMinValue(BitWidth); in getIdentityValueForAtomicOp()
/llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/
H A DGISelKnownBits.cpp132 BitWidth, WidthKnown.getMinValue().getLimitedValue(BitWidth)); in extractBits()

12