Home
last modified time | relevance | path

Searched refs:getMaxValue (Results 1 – 25 of 67) sorted by relevance

123

/openbsd-src/gnu/llvm/llvm/include/llvm/Support/
H A DInstructionCost.h61 static CostType getMaxValue() { return std::numeric_limits<CostType>::max(); } in getMaxValue() function
71 static InstructionCost getMax() { return getMaxValue(); } in getMax()
105 Result = RHS.Value > 0 ? getMaxValue() : getMinValue();
123 Result = RHS.Value > 0 ? getMinValue() : getMaxValue();
141 Result = getMaxValue();
H A DKnownBits.h136 APInt getMaxValue() const { in getMaxValue() function
/openbsd-src/gnu/llvm/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DBasicValueFactory.h194 const llvm::APSInt &getMaxValue(const llvm::APSInt &v) { in getMaxValue() function
195 return getValue(APSIntType(v).getMaxValue()); in getMaxValue()
202 const llvm::APSInt &getMaxValue(QualType T) { in getMaxValue() function
203 return getMaxValue(getAPSIntType(T)); in getMaxValue()
210 const llvm::APSInt &getMaxValue(APSIntType T) { in getMaxValue() function
211 return getValue(T.getMaxValue()); in getMaxValue()
H A DAPSIntType.h65 llvm::APSInt getMaxValue() const LLVM_READONLY { in getMaxValue() function
66 return llvm::APSInt::getMaxValue(BitWidth, IsUnsigned); in getMaxValue()
H A DRangedConstraintManager.h343 const llvm::APSInt &getMaxValue() const;
/openbsd-src/gnu/llvm/llvm/lib/Support/
H A DKnownBits.cpp27 APInt PossibleSumZero = LHS.getMaxValue() + RHS.getMaxValue() + !CarryZero; in computeForAddCarry()
122 if (LHS.getMinValue().uge(RHS.getMaxValue())) in umax()
124 if (RHS.getMinValue().uge(LHS.getMaxValue())) in umax()
194 APInt MaxShiftAmount = RHS.getMaxValue(); in shl()
247 APInt MaxShiftAmount = RHS.getMaxValue(); in lshr()
305 APInt MaxShiftAmount = RHS.getMaxValue(); in ashr()
349 if (LHS.getMaxValue().ule(RHS.getMinValue())) in ugt()
352 if (LHS.getMinValue().ugt(RHS.getMaxValue())) in ugt()
428 APInt UMaxLHS = LHS.getMaxValue(); in mul()
429 APInt UMaxRHS = RHS.getMaxValue(); in mul()
H A DAPFixedPoint.cpp121 auto Val = APSInt::getMaxValue(Sema.getWidth(), IsUnsigned); in getMax()
452 APSInt DstMax = APSInt::getMaxValue(DstWidth, !DstSign); in convertToInt()
H A DAPInt.cpp930 return APInt::getMaxValue(width); in truncUSat()
2025 return APInt::getMaxValue(BitWidth); in uadd_sat()
2066 return APInt::getMaxValue(BitWidth); in umul_sat()
2085 return APInt::getMaxValue(BitWidth); in ushl_sat()
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Core/
H A DRangeConstraintManager.cpp352 const llvm::APSInt &RangeSet::getMaxValue() const { in getMaxValue() function in RangeSet
414 Upper = Type.getMaxValue(); in pin()
424 Upper = Type.getMaxValue(); in pin()
433 Upper = Type.getMaxValue(); in pin()
443 Upper = Type.getMaxValue(); in pin()
465 Upper = Type.getMaxValue(); in pin()
492 if (What.getMaxValue() < Lower || Upper < What.getMinValue()) in intersect()
505 if (What.getMaxValue() < Lower && Upper < What.getMinValue()) in intersect()
511 Range(ValueFactory.getValue(Lower), ValueFactory.getMaxValue(Lower))); in intersect()
597 if (LHS.isEmpty() || RHS.isEmpty() || LHS.getMaxValue() < RHS.getMinValue() || in intersect()
[all …]
H A DSimpleSValBuilder.cpp247 llvm::APSInt Max = AT.getMaxValue() / AT.getValue(4), Min = -Max; in isWithinConstantOverflowBounds()
258 llvm::APSInt Max = AT.getMaxValue() / AT.getValue(4), Min = -Max; in isWithinConstantOverflowBounds()
/openbsd-src/gnu/llvm/llvm/lib/FuzzMutate/
H A DOpDescriptor.cpp18 Cs.push_back(ConstantInt::get(IntTy, APInt::getMaxValue(W))); in makeConstantsWithType()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/AggressiveInstCombine/
H A DTruncInstCombine.cpp311 unsigned MinBitWidth = KnownRHS.getMaxValue() in getBestTruncatedType()
319 std::max(MinBitWidth, KnownLHS.getMaxValue().getActiveBits()); in getBestTruncatedType()
335 std::max(Known.getMaxValue().getActiveBits(), MinBitWidth); in getBestTruncatedType()
/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DConstantRange.cpp45 : Lower(Full ? APInt::getMaxValue(BitWidth) : APInt::getMinValue(BitWidth)), in ConstantRange()
69 return ConstantRange(Known.getMinValue(), Known.getMaxValue() + 1); in fromKnownBits()
73 APInt Lower = Known.getMinValue(), Upper = Known.getMaxValue(); in fromKnownBits()
256 APIntOps::RoundingUDiv(APInt::getMaxValue(BitWidth), V, in makeExactMulNUWRegion()
348 APInt::getMaxValue(BitWidth).lshr(ShAmtUMax) + 1); in makeGuaranteedNoWrapRegion()
402 return MaxSize == 0 || APInt::getMaxValue(getBitWidth()).ugt(MaxSize - 1); in isSizeLargerThan()
424 return APInt::getMaxValue(getBitWidth()); in getUnsignedMax()
740 APInt Max = APInt::getMaxValue(BW); in castOp()
823 Union = ConstantRange(APInt::getMaxValue(DstTySize),Upper.trunc(DstTySize)); in truncate()
/openbsd-src/gnu/llvm/llvm/include/llvm/ADT/
H A DAPSInt.h303 static APSInt getMaxValue(uint32_t numBits, bool Unsigned) { in getMaxValue() function
304 return APSInt(Unsigned ? APInt::getMaxValue(numBits) in getMaxValue()
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/
H A DStdLibraryFunctionsChecker.cpp916 const llvm::APSInt &PlusInf = BVF.getMaxValue(T); in applyAsWithinRange()
1245 return BVF.getMaxValue(Ty).getLimitedValue(); in initFunctionSummaries()
1253 } getMaxValue(BVF); in initFunctionSummaries() local
1289 const RangeInt IntMax = BVF.getMaxValue(IntTy).getLimitedValue(); in initFunctionSummaries()
1291 BVF.getMaxValue(UnsignedIntTy).getLimitedValue(); in initFunctionSummaries()
1292 const RangeInt LongMax = BVF.getMaxValue(LongTy).getLimitedValue(); in initFunctionSummaries()
1293 const RangeInt SizeMax = BVF.getMaxValue(SizeTy).getLimitedValue(); in initFunctionSummaries()
1302 std::min(BVF.getMaxValue(ACtx.UnsignedCharTy).getLimitedValue(), IntMax); in initFunctionSummaries()
1672 std::optional<RangeInt> Ssize_tMax = getMaxValue(Ssize_tTy); in initFunctionSummaries()
2537 std::optional<RangeInt> Socklen_tMax = getMaxValue(Socklen_tTy); in initFunctionSummaries()
H A DVLASizeChecker.cpp100 SVB.getBasicValueFactory().getMaxValue(SizeTy).getZExtValue(); in checkVLA()
H A DIterator.cpp276 llvm::APSInt Max = AT.getMaxValue() / AT.getValue(Scale); in assumeNoOverflow()
/openbsd-src/gnu/llvm/llvm/lib/Target/Hexagon/MCTargetDesc/
H A DHexagonMCInstrInfo.h157 int getMaxValue(MCInstrInfo const &MCII, MCInst const &MCI);
H A DHexagonMCInstrInfo.cpp353 int HexagonMCInstrInfo::getMaxValue(MCInstrInfo const &MCII, in getMaxValue() function in HexagonMCInstrInfo
575 int MaxValue = HexagonMCInstrInfo::getMaxValue(MCII, MCI); in isConstExtended()
/openbsd-src/gnu/llvm/llvm/lib/Target/Hexagon/
H A DHexagonInstrInfo.h463 int getMaxValue(const MachineInstr &MI) const;
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/
H A DLibCallsShrinkWrap.cpp436 if (D < 1.0f || D > APInt::getMaxValue(8).getZExtValue()) { in generateCondForPow()
H A DLowerSwitch.cpp376 APInt UnsignedMax = APInt::getMaxValue(BitWidth); in ProcessSwitchInst()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DLoopBoundSplit.cpp106 : APInt::getMaxValue(BitWidth); in calculateUpperBound()
/openbsd-src/gnu/llvm/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp216 if (KnownAmtBits.getMaxValue().ult(BitWidth)) { in simplifyX86immShift()
242 if (KnownLowerBits.getMaxValue().ult(BitWidth) && in simplifyX86immShift()
360 if (KnownAmt.getMaxValue().ult(BitWidth)) { in simplifyX86varShift()
/openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPUAtomicOptimizer.cpp446 return APInt::getMaxValue(BitWidth); in getIdentityValueForAtomicOp()

123