reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/Transforms/InstCombine/InstCombineCalls.cpp
 2103         APInt Max = APSInt::getMaxValue(BitWidth, !SI->isSigned());
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/APSIntType.h
   66     return llvm::APSInt::getMaxValue(BitWidth, IsUnsigned);
tools/clang/lib/Analysis/CFG.cpp
 1097       llvm::APSInt::getMaxValue(L1.getBitWidth(), L1.isUnsigned()),
tools/clang/lib/Basic/FixedPoint.cpp
  116   auto Val = llvm::APSInt::getMaxValue(Sema.getWidth(), IsUnsigned);
  227   llvm::APSInt DstMax = llvm::APSInt::getMaxValue(DstWidth, !DstSign);
tools/clang/lib/CodeGen/CGExprScalar.cpp
  904   APSInt Max = APSInt::getMaxValue(Width, Unsigned);
tools/clang/lib/Sema/SemaChecking.cpp
10531       PromotedMax = llvm::APSInt::getMaxValue(BitWidth, Unsigned);
10537       PromotedMax = llvm::APSInt::getMaxValue(R.Width, R.NonNegative)
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/NarrowingConversionsCheck.cpp
  144           llvm::APSInt::getMaxValue(TypeSize, IsUnsignedInteger)};
tools/clang/unittests/Basic/FixedPointTest.cpp
  135             APSInt::getMaxValue(Sema.getWidth(), !Sema.isSigned()));
  140             APSInt::getMaxValue(Sema.getWidth(), !Sema.isSigned()) >> 1);
tools/clang/unittests/Frontend/FixedPointString.cpp
   23   FixedPointValueToString(S, APSInt::getMaxValue(16, /*Unsigned=*/false), 7);
   28   FixedPointValueToString(S, APSInt::getMaxValue(32, /*Unsigned=*/false), 15);
   33   FixedPointValueToString(S, APSInt::getMaxValue(64, /*Unsigned=*/false), 31);
   38   FixedPointValueToString(S, APSInt::getMaxValue(16, /*Unsigned=*/true), 8);
   43   FixedPointValueToString(S, APSInt::getMaxValue(32, /*Unsigned=*/true), 16);
   48   FixedPointValueToString(S, APSInt::getMaxValue(64, /*Unsigned=*/true), 32);
   53   FixedPointValueToString(S, APSInt::getMaxValue(8, /*Unsigned=*/false), 7);
   58   FixedPointValueToString(S, APSInt::getMaxValue(16, /*Unsigned=*/false), 15);
   63   FixedPointValueToString(S, APSInt::getMaxValue(32, /*Unsigned=*/false), 31);
   68   FixedPointValueToString(S, APSInt::getMaxValue(8, /*Unsigned=*/true), 8);
   73   FixedPointValueToString(S, APSInt::getMaxValue(16, /*Unsigned=*/true), 16);
   78   FixedPointValueToString(S, APSInt::getMaxValue(32, /*Unsigned=*/true), 32);
unittests/ADT/APFloatTest.cpp
 1071   EXPECT_EQ(APSInt::getMaxValue(5, true), result);
 1096   EXPECT_EQ(APSInt::getMaxValue(5, false), result);