Home
last modified time | relevance | path

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

1234

/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DKnownBits.cpp33 APInt PossibleSumZero = LHS.getMaxValue() + RHS.getMaxValue() + !CarryZero; in computeForAddCarry()
100 APInt MaxVal = LHS.getMaxValue().usub_sat(RHS.getMinValue()); in computeForAddSub()
192 if (LHS.getMinValue().uge(RHS.getMaxValue())) in umax()
194 if (RHS.getMinValue().uge(LHS.getMaxValue())) in umax()
231 if (LHS.getMinValue().uge(RHS.getMaxValue())) in abdu()
234 if (RHS.getMinValue().uge(LHS.getMaxValue())) in abdu()
322 APInt MaxValue = RHS.getMaxValue(); in shl()
393 APInt MaxValue = RHS.getMaxValue(); in lshr()
453 APInt MaxValue = RHS.getMaxValue(); in ashr()
504 if (LHS.getMaxValue().ule(RHS.getMinValue())) in ugt()
[all …]
H A DAPFixedPoint.cpp131 auto Val = APSInt::getMaxValue(Sema.getWidth(), IsUnsigned); in getMax()
475 APSInt DstMax = APSInt::getMaxValue(DstWidth, !DstSign); in convertToInt()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DInstructionCost.h62 static CostType getMaxValue() { return std::numeric_limits<CostType>::max(); } in getMaxValue() function
72 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.h138 APInt getMaxValue() const { in getMaxValue() function
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DBasicValueFactory.h194 APSIntPtr getMaxValue(const llvm::APSInt &v) { in getMaxValue() function
195 return getValue(APSIntType(v).getMaxValue()); in getMaxValue()
202 APSIntPtr getMaxValue(QualType T) { return getMaxValue(getAPSIntType(T)); } in getMaxValue() function
206 APSIntPtr getMaxValue(APSIntType T) { return getValue(T.getMaxValue()); } in getMaxValue() function
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;
H A DSValBuilder.h124 virtual const llvm::APSInt *getMaxValue(ProgramStateRef state, SVal val) = 0;
/freebsd/contrib/llvm-project/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.cpp92 const llvm::APSInt *getMaxValue(ProgramStateRef state, SVal V) override;
262 llvm::APSInt Max = AT.getMaxValue() / AT.getValue(4), Min = -Max; in isWithinConstantOverflowBounds()
273 llvm::APSInt Max = AT.getMaxValue() / AT.getValue(4); in isWithinConstantOverflowBounds()
1239 const llvm::APSInt *SimpleSValBuilder::getMaxValue(ProgramStateRef state, in getMaxValue() function in SimpleSValBuilder
/freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/
H A DTruncInstCombine.cpp310 unsigned MinBitWidth = KnownRHS.getMaxValue() in getBestTruncatedType()
318 std::max(MinBitWidth, KnownLHS.getMaxValue().getActiveBits()); in getBestTruncatedType()
334 std::max(Known.getMaxValue().getActiveBits(), MinBitWidth); in getBestTruncatedType()
/freebsd/contrib/llvm-project/llvm/lib/FuzzMutate/
H A DOpDescriptor.cpp26 Cs.push_back(ConstantInt::get(IntTy, APInt::getMaxValue(W))); in makeConstantsWithType()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantRange.cpp46 : Lower(Full ? APInt::getMaxValue(BitWidth) : APInt::getMinValue(BitWidth)), in ConstantRange()
70 return ConstantRange(Known.getMinValue(), Known.getMaxValue() + 1); in fromKnownBits()
74 APInt Lower = Known.getMinValue(), Upper = Known.getMaxValue(); in fromKnownBits()
296 APIntOps::RoundingUDiv(APInt::getMaxValue(BitWidth), V, in makeExactMulNUWRegion()
392 APInt::getMaxValue(BitWidth).lshr(ShAmtUMax) + 1); in makeGuaranteedNoWrapRegion()
463 return MaxSize == 0 || APInt::getMaxValue(getBitWidth()).ugt(MaxSize - 1); in isSizeLargerThan()
495 return APInt::getMaxValue(getBitWidth()); in getUnsignedMax()
811 APInt Max = APInt::getMaxValue(BW); in castOp()
893 Union = ConstantRange(APInt::getMaxValue(DstTySize),Upper.trunc(DstTySize)); in truncate()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPSInt.h304 static APSInt getMaxValue(uint32_t numBits, bool Unsigned) { in getMaxValue() function
305 return APSInt(Unsigned ? APInt::getMaxValue(numBits) in getMaxValue()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DStdLibraryFunctionsChecker.cpp944 } else if (RMax == BVF.getMaxValue(ArgT)) { in appendInsideRangeDesc()
971 } else if (RMax == BVF.getMaxValue(ArgT)) { in appendOutOfRangeDesc()
1007 const llvm::APSInt &PlusInf = BVF.getMaxValue(ArgT); in applyOnOutOfRange()
1646 return BVF.getMaxValue(Ty)->getLimitedValue(); in initFunctionSummaries()
1654 } getMaxValue(BVF); in initFunctionSummaries() local
1690 const RangeInt IntMax = BVF.getMaxValue(IntTy)->getLimitedValue(); in initFunctionSummaries()
1692 BVF.getMaxValue(UnsignedIntTy)->getLimitedValue(); in initFunctionSummaries()
1693 const RangeInt LongMax = BVF.getMaxValue(LongTy)->getLimitedValue(); in initFunctionSummaries()
1694 const RangeInt SizeMax = BVF.getMaxValue(SizeTy)->getLimitedValue(); in initFunctionSummaries()
1703 std::min(BVF.getMaxValue(ACtx.UnsignedCharTy)->getLimitedValue(), IntMax); in initFunctionSummaries()
[all …]
H A DVLASizeChecker.cpp97 SVB.getBasicValueFactory().getMaxValue(SizeTy)->getZExtValue(); in checkVLA()
H A DIterator.cpp275 llvm::APSInt Max = AT.getMaxValue() / AT.getValue(Scale); in assumeNoOverflow()
H A DBuiltinFunctionChecker.cpp159 auto MaxValType = llvm::APSInt::getMaxValue(BitWidth, IsUnsigned); in checkOverflow()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DIVDescriptors.h316 : APInt::getMaxValue(BW)); in getSentinelValue()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/MCTargetDesc/
H A DHexagonMCInstrInfo.cpp353 int HexagonMCInstrInfo::getMaxValue(MCInstrInfo const &MCII, in getMaxValue() function in HexagonMCInstrInfo
578 int32_t MaxValue = HexagonMCInstrInfo::getMaxValue(MCII, MCI); in isConstExtended()
583 uint32_t MaxValue = HexagonMCInstrInfo::getMaxValue(MCII, MCI); in isConstExtended()
H A DHexagonMCInstrInfo.h157 int getMaxValue(MCInstrInfo const &MCII, MCInst const &MCI);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLibCallsShrinkWrap.cpp428 if (D < 1.0f || D > APInt::getMaxValue(8).getZExtValue()) { in generateCondForPow()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopBoundSplit.cpp106 : APInt::getMaxValue(BitWidth); in calculateUpperBound()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonInstrInfo.h465 int getMaxValue(const MachineInstr &MI) const;
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/java_api/src/
H A DTestBean.java402 getMaxValue() in getMaxValue() method in TestBean

1234