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

Declarations

include/llvm/ADT/APFloat.h
   36 class APSInt;
tools/clang/include/clang/AST/ComparisonCategories.h
   25   class APSInt;
tools/clang/include/clang/Sema/Sema.h
   64   class APSInt;
tools/clang/include/clang/Serialization/ASTWriter.h
   54 class APSInt;
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ConstraintManager.h
   27 class APSInt;
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h
   29 class APSInt;
tools/lldb/include/lldb/Core/ClangForward.h
  128 class APSInt;
tools/lldb/source/Plugins/SymbolFile/NativePDB/DWARFLocationExpression.h
   16 class APSInt;

References

include/llvm/ADT/APFloat.h
 1090   opStatus convertToInteger(APSInt &Result, roundingMode RM,
include/llvm/ADT/APSInt.h
   63   APSInt &operator=(APInt RHS) {
   69   APSInt &operator=(uint64_t RHS) {
   98   APSInt trunc(uint32_t width) const {
  102   APSInt extend(uint32_t width) const {
  109   APSInt extOrTrunc(uint32_t width) const {
  116   const APSInt &operator%=(const APSInt &RHS) {
  116   const APSInt &operator%=(const APSInt &RHS) {
  124   const APSInt &operator/=(const APSInt &RHS) {
  124   const APSInt &operator/=(const APSInt &RHS) {
  132   APSInt operator%(const APSInt &RHS) const {
  132   APSInt operator%(const APSInt &RHS) const {
  136   APSInt operator/(const APSInt &RHS) const {
  136   APSInt operator/(const APSInt &RHS) const {
  141   APSInt operator>>(unsigned Amt) const {
  144   APSInt& operator>>=(unsigned Amt) {
  152   inline bool operator<(const APSInt& RHS) const {
  156   inline bool operator>(const APSInt& RHS) const {
  160   inline bool operator<=(const APSInt& RHS) const {
  164   inline bool operator>=(const APSInt& RHS) const {
  168   inline bool operator==(const APSInt& RHS) const {
  172   inline bool operator!=(const APSInt& RHS) const {
  198   APSInt operator<<(unsigned Bits) const {
  201   APSInt& operator<<=(unsigned Amt) {
  206   APSInt& operator++() {
  210   APSInt& operator--() {
  214   APSInt operator++(int) {
  217   APSInt operator--(int) {
  220   APSInt operator-() const {
  223   APSInt& operator+=(const APSInt& RHS) {
  223   APSInt& operator+=(const APSInt& RHS) {
  228   APSInt& operator-=(const APSInt& RHS) {
  228   APSInt& operator-=(const APSInt& RHS) {
  233   APSInt& operator*=(const APSInt& RHS) {
  233   APSInt& operator*=(const APSInt& RHS) {
  238   APSInt& operator&=(const APSInt& RHS) {
  238   APSInt& operator&=(const APSInt& RHS) {
  243   APSInt& operator|=(const APSInt& RHS) {
  243   APSInt& operator|=(const APSInt& RHS) {
  248   APSInt& operator^=(const APSInt& RHS) {
  248   APSInt& operator^=(const APSInt& RHS) {
  254   APSInt operator&(const APSInt& RHS) const {
  254   APSInt operator&(const APSInt& RHS) const {
  259   APSInt operator|(const APSInt& RHS) const {
  259   APSInt operator|(const APSInt& RHS) const {
  264   APSInt operator^(const APSInt &RHS) const {
  264   APSInt operator^(const APSInt &RHS) const {
  269   APSInt operator*(const APSInt& RHS) const {
  269   APSInt operator*(const APSInt& RHS) const {
  273   APSInt operator+(const APSInt& RHS) const {
  273   APSInt operator+(const APSInt& RHS) const {
  277   APSInt operator-(const APSInt& RHS) const {
  277   APSInt operator-(const APSInt& RHS) const {
  281   APSInt operator~() const {
  287   static APSInt getMaxValue(uint32_t numBits, bool Unsigned) {
  294   static APSInt getMinValue(uint32_t numBits, bool Unsigned) {
  301   static bool isSameValue(const APSInt &I1, const APSInt &I2) {
  301   static bool isSameValue(const APSInt &I1, const APSInt &I2) {
  306   static int compareValues(const APSInt &I1, const APSInt &I2) {
  306   static int compareValues(const APSInt &I1, const APSInt &I2) {
  331   static APSInt get(int64_t X) { return APSInt(APInt(64, X), false); }
  332   static APSInt getUnsigned(uint64_t X) { return APSInt(APInt(64, X), true); }
  339 inline bool operator==(int64_t V1, const APSInt &V2) { return V2 == V1; }
  340 inline bool operator!=(int64_t V1, const APSInt &V2) { return V2 != V1; }
  341 inline bool operator<=(int64_t V1, const APSInt &V2) { return V2 >= V1; }
  342 inline bool operator>=(int64_t V1, const APSInt &V2) { return V2 <= V1; }
  343 inline bool operator<(int64_t V1, const APSInt &V2) { return V2 > V1; }
  344 inline bool operator>(int64_t V1, const APSInt &V2) { return V2 < V1; }
  346 inline raw_ostream &operator<<(raw_ostream &OS, const APSInt &I) {
include/llvm/ADT/FoldingSet.h
  221   static void Profile(const T &X, FoldingSetNodeID &ID) {
  224   static void Profile(T &X, FoldingSetNodeID &ID) {
  232   static inline bool Equals(T &X, const FoldingSetNodeID &ID, unsigned IDHash,
  240   static inline unsigned ComputeHash(T &X, FoldingSetNodeID &TempID);
  250   : public DefaultFoldingSetTrait<T> {};
  710   T data;
  714   explicit FoldingSetNodeWrapper(Ts &&... Args)
  717   void Profile(FoldingSetNodeID &ID) { FoldingSetTrait<T>::Profile(data, ID); }
  719   T &getValue() { return data; }
  720   const T &getValue() const { return data; }
  722   operator T&() { return data; }
  723   operator const T&() const { return data; }
include/llvm/ADT/Optional.h
   39     T value;
   60   explicit OptionalStorage(in_place_t, Args &&... args)
   61       : value(std::forward<Args>(args)...), hasVal(true) {}
   72   T &getValue() LLVM_LVALUE_FUNCTION noexcept {
   76   T const &getValue() const LLVM_LVALUE_FUNCTION noexcept {
   81   T &&getValue() && noexcept {
   87   template <class... Args> void emplace(Args &&... args) {
   89     ::new ((void *)std::addressof(value)) T(std::forward<Args>(args)...);
   89     ::new ((void *)std::addressof(value)) T(std::forward<Args>(args)...);
  216   optional_detail::OptionalStorage<T> Storage;
  219   using value_type = T;
  224   Optional(const T &y) : Storage(optional_detail::in_place_t{}, y) {}
  227   Optional(T &&y) : Storage(optional_detail::in_place_t{}, std::move(y)) {}
  230   Optional &operator=(T &&y) {
  241   static inline Optional create(const T *y) {
  245   Optional &operator=(const T &y) {
  253   const T *getPointer() const { return &Storage.getValue(); }
  254   T *getPointer() { return &Storage.getValue(); }
  255   const T &getValue() const LLVM_LVALUE_FUNCTION { return Storage.getValue(); }
  256   T &getValue() LLVM_LVALUE_FUNCTION { return Storage.getValue(); }
  260   const T *operator->() const { return getPointer(); }
  261   T *operator->() { return getPointer(); }
  262   const T &operator*() const LLVM_LVALUE_FUNCTION { return getValue(); }
  263   T &operator*() LLVM_LVALUE_FUNCTION { return getValue(); }
  266   constexpr T getValueOr(U &&value) const LLVM_LVALUE_FUNCTION {
  271   T &&getValue() && { return std::move(Storage.getValue()); }
  272   T &&operator*() && { return std::move(Storage.getValue()); }
  275   T getValueOr(U &&value) && {
include/llvm/ADT/SmallVector.h
   75   AlignedCharArrayUnion<T> FirstEl;
  114   using value_type = T;
  115   using iterator = T *;
  116   using const_iterator = const T *;
  121   using reference = T &;
  122   using const_reference = const T &;
  123   using pointer = T *;
  124   using const_pointer = const T *;
  179 class SmallVectorTemplateBase : public SmallVectorTemplateCommon<T> {
  183   static void destroy_range(T *S, T *E) {
  183   static void destroy_range(T *S, T *E) {
  211   void push_back(const T &Elt) {
  214     ::new ((void*) this->end()) T(Elt);
  218   void push_back(T &&Elt) {
  221     ::new ((void*) this->end()) T(::std::move(Elt));
  240   T *NewElts = static_cast<T*>(llvm::safe_malloc(NewCapacity*sizeof(T)));
  240   T *NewElts = static_cast<T*>(llvm::safe_malloc(NewCapacity*sizeof(T)));
  315 class SmallVectorImpl : public SmallVectorTemplateBase<T> {
  316   using SuperClass = SmallVectorTemplateBase<T>;
  357   void resize(size_type N, const T &NV) {
  374   LLVM_NODISCARD T pop_back_val() {
  397   void append(size_type NumInputs, const T &Elt) {
  405   void append(std::initializer_list<T> IL) {
  412   void assign(size_type NumElts, const T &Elt) {
  429   void assign(std::initializer_list<T> IL) {
  467   iterator insert(iterator I, T &&Elt) {
  497   iterator insert(iterator I, const T &Elt) {
  526   iterator insert(iterator I, size_type NumToInsert, const T &Elt) {
  637   void insert(iterator I, std::initializer_list<T> IL) {
  820   AlignedCharArrayUnion<T> InlineElts[N];
  837 class SmallVector : public SmallVectorImpl<T>, SmallVectorStorage<T, N> {
  837 class SmallVector : public SmallVectorImpl<T>, SmallVectorStorage<T, N> {
  846   explicit SmallVector(size_t Size, const T &Value = T())
  865   SmallVector(std::initializer_list<T> IL) : SmallVectorImpl<T>(N) {
  884   SmallVector(SmallVectorImpl<T> &&RHS) : SmallVectorImpl<T>(N) {
include/llvm/ADT/StringMap.h
  134   StringMapEntryStorage(size_t strLen, InitTy &&... InitVals)
  160   using StringMapEntryStorage<ValueTy>::StringMapEntryStorage;
  179                                 InitTy &&... InitVals) {
  204   static StringMapEntry *Create(StringRef Key, InitType &&... InitVal) {
  432   std::pair<iterator, bool> try_emplace(StringRef Key, ArgsTy &&... Args) {
include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h
  134   Error mapEncodedInteger(APSInt &Value, const Twine &Comment = "");
include/llvm/DebugInfo/CodeView/RecordSerialization.h
   52 Error consume(BinaryStreamReader &Reader, APSInt &Num);
   64 Error consume(StringRef &Data, APSInt &Num);
include/llvm/DebugInfo/CodeView/SymbolRecord.h
  922   APSInt Value;
include/llvm/DebugInfo/CodeView/TypeRecord.h
  839   EnumeratorRecord(MemberAttributes Attrs, APSInt Value, StringRef Name)
  842   EnumeratorRecord(MemberAccess Access, APSInt Value, StringRef Name)
  847   APSInt getValue() const { return Value; }
  851   APSInt Value;
include/llvm/Support/AlignOf.h
   24   T t;
   25   AlignerImpl<Ts...> rest;
   30   T t;
   35   char arr[sizeof(T)];
   36   SizerImpl<Ts...> rest;
   39 template <typename T> union SizerImpl<T> { char arr[sizeof(T)]; };
   50       llvm::detail::SizerImpl<T, Ts...>)];
   50       llvm::detail::SizerImpl<T, Ts...>)];
include/llvm/Support/SMTAPI.h
  399   virtual llvm::APSInt getBitvector(const SMTExprRef &Exp, unsigned BitWidth,
  412   virtual SMTExprRef mkBitvector(const llvm::APSInt Int, unsigned BitWidth) = 0;
  415   virtual bool getInterpretation(const SMTExprRef &Exp, llvm::APSInt &Int) = 0;
include/llvm/Support/ScopedPrinter.h
  194   void printNumber(StringRef Label, const APSInt &Value) {
include/llvm/Support/YAMLTraits.h
  313   using Signature_enumeration = void (*)(class IO&, T&);
  322     (sizeof(test<ScalarEnumerationTraits<T>>(nullptr)) == 1);
  329   using Signature_bitset = void (*)(class IO&, T&);
  337   static bool const value = (sizeof(test<ScalarBitSetTraits<T>>(nullptr)) == 1);
  344   using Signature_input = StringRef (*)(StringRef, void*, T&);
  345   using Signature_output = void (*)(const T&, void*, raw_ostream&);
  357       (sizeof(test<ScalarTraits<T>>(nullptr, nullptr, nullptr)) == 1);
  364   using Signature_input = StringRef (*)(StringRef, void *, T &);
  365   using Signature_output = void (*)(const T &, void *, raw_ostream &);
  375       (sizeof(test<BlockScalarTraits<T>>(nullptr, nullptr)) == 1);
  380   using Signature_input = StringRef (*)(StringRef, StringRef, void *, T &);
  381   using Signature_output = void (*)(const T &, void *, raw_ostream &,
  383   using Signature_mustQuote = QuotingType (*)(const T &, StringRef);
  393       (sizeof(test<TaggedScalarTraits<T>>(nullptr, nullptr, nullptr)) == 1);
  412   using Signature_mapping = void (*)(class IO &, T &);
  419   static bool const value = (sizeof(test<MappingTraits<T>>(nullptr)) == 1);
  438   using Signature_validate = StringRef (*)(class IO &, T &);
  445   static bool const value = (sizeof(test<MappingTraits<T>>(nullptr)) == 1);
  452   using Signature_size = size_t (*)(class IO&, T&);
  460   static bool const value =  (sizeof(test<SequenceTraits<T>>(nullptr)) == 1);
  467   using Signature_input = void (*)(IO &io, StringRef key, T &v);
  476       (sizeof(test<CustomMappingTraits<T>>(nullptr)) == 1);
  516   using Signature_size = size_t (*)(class IO &, T &);
  524   static bool const value = (sizeof(test<DocumentListTraits<T>>(nullptr))==1);
  528   using Signature_getKind = NodeKind (*)(const T &);
  535   static bool const value = (sizeof(test<PolymorphicTraits<T>>(nullptr)) == 1);
  849   template <typename T> void mapRequired(const char *Key, T &Val) {
  941   void processKey(const char *Key, T &Val, bool Required, Context &Ctx) {
  988 typename std::enable_if<has_ScalarTraits<T>::value, void>::type
  989 yamlize(IO &io, T &Val, bool, EmptyContext &Ctx) {
  993     ScalarTraits<T>::output(Val, io.getContext(), Buffer);
  995     io.scalarString(Str, ScalarTraits<T>::mustQuote(Str));
  999     io.scalarString(Str, ScalarTraits<T>::mustQuote(Str));
 1000     StringRef Result = ScalarTraits<T>::input(Str, io.getContext(), Val);
include/llvm/Support/type_traits.h
   91     T t;
  122     static auto get(F*) -> decltype(std::declval<F &>() = std::declval<const F &>(), std::true_type{});
  122     static auto get(F*) -> decltype(std::declval<F &>() = std::declval<const F &>(), std::true_type{});
  122     static auto get(F*) -> decltype(std::declval<F &>() = std::declval<const F &>(), std::true_type{});
  130     static auto get(F*) -> decltype(std::declval<F &>() = std::declval<F &&>(), std::true_type{});
  130     static auto get(F*) -> decltype(std::declval<F &>() = std::declval<F &&>(), std::true_type{});
  130     static auto get(F*) -> decltype(std::declval<F &>() = std::declval<F &&>(), std::true_type{});
  145       std::is_copy_constructible<detail::trivial_helper<T>>::value;
  147       !std::is_copy_constructible<T>::value;
  151       std::is_move_constructible<detail::trivial_helper<T>>::value;
  153       !std::is_move_constructible<T>::value;
  157       is_copy_assignable<detail::trivial_helper<T>>::value;
  159       !is_copy_assignable<T>::value;
  163       is_move_assignable<detail::trivial_helper<T>>::value;
  165       !is_move_assignable<T>::value;
  169       std::is_destructible<detail::trivial_helper<T>>::value;
lib/AsmParser/LLLexer.h
   42     APSInt  APSIntVal;
   62     const APSInt &getAPSIntVal() const { return APSIntVal; }
lib/AsmParser/LLParser.h
   64     APSInt APSIntVal;
lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
 2066                             APSInt::getUnsigned(Enumerator->getValue()),
lib/CodeGen/MIRParser/MILexer.cpp
   84 MIToken &MIToken::setIntegerValue(APSInt IntVal) {
lib/CodeGen/MIRParser/MILexer.h
  168   APSInt IntVal;
  177   MIToken &setIntegerValue(APSInt IntVal);
  217   const APSInt &integerValue() const { return IntVal; }
lib/CodeGen/MIRParser/MIParser.cpp
 1480   const APSInt &Int = Token.integerValue();
 2311       const APSInt &Int = Token.integerValue();
lib/CodeGen/SelectionDAG/FastISel.cpp
  427       APSInt SIntVal(IntBitWidth, /*isUnsigned=*/false);
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
 4393       APSInt IntVal(VT.getSizeInBits(), Opcode == ISD::FP_TO_UINT);
 9496     APSInt IntVal(BitWidth);
lib/DebugInfo/CodeView/CodeViewRecordIO.cpp
  164     APSInt N;
  181     APSInt N;
  189 Error CodeViewRecordIO::mapEncodedInteger(APSInt &Value, const Twine &Comment) {
lib/DebugInfo/CodeView/RecordSerialization.cpp
   36 Error llvm::codeview::consume(BinaryStreamReader &Reader, APSInt &Num) {
  104 Error llvm::codeview::consume(StringRef &Data, APSInt &Num) {
  116   APSInt N;
lib/IR/ConstantFold.cpp
  614       APSInt IntVal(DestBitWidth, opc == Instruction::FPToUI);
lib/ObjectYAML/CodeViewYAMLTypes.cpp
  184 void ScalarTraits<APSInt>::output(const APSInt &S, void *, raw_ostream &OS) {
  188 StringRef ScalarTraits<APSInt>::input(StringRef Scalar, void *Ctx, APSInt &S) {
lib/Support/APFloat.cpp
 4548 APFloat::opStatus APFloat::convertToInteger(APSInt &result,
lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
 2624   APSInt IntVal(65, true);
lib/Transforms/InstCombine/InstCombineCalls.cpp
 2098         APInt Min = APSInt::getMinValue(BitWidth, !SI->isSigned());
 2103         APInt Max = APSInt::getMaxValue(BitWidth, !SI->isSigned());
lib/Transforms/InstCombine/InstCombineCompares.cpp
 5621     APSInt RHSCvt(IntTy->getBitWidth(), LHSUnsigned);
lib/Transforms/Scalar/Float2Int.cpp
  334         APSInt Int(MaxIntegerBW+1, false);
  449       APSInt Val(ToTy->getPrimitiveSizeInBits(), /*isUnsigned=*/false);
lib/Transforms/Utils/SimplifyLibCalls.cpp
 1523     APSInt NI(64, false);
 1741     APSInt IntExpo(32, /*isUnsigned=*/false);
tools/clang/include/clang/AST/APValue.h
  116   typedef llvm::APSInt APSInt;
tools/clang/include/clang/AST/ASTContext.h
 2683   llvm::APSInt MakeIntValue(uint64_t Value, QualType Type) const {
 2686     llvm::APSInt Res(64, !Type->isSignedIntegerOrEnumerationType());
tools/clang/include/clang/AST/ComparisonCategories.h
   89     llvm::APSInt getIntValue() const;
tools/clang/include/clang/AST/Decl.h
 2864   llvm::APSInt Val; // The value.
 2869                    const llvm::APSInt &V)
 2878                                   const llvm::APSInt &V);
 2883   const llvm::APSInt &getInitVal() const { return Val; }
 2886   void setInitVal(const llvm::APSInt &V) { Val = V; }
tools/clang/include/clang/AST/Expr.h
  506   bool isIntegerConstantExpr(llvm::APSInt &Result, const ASTContext &Ctx,
  653   llvm::APSInt EvaluateKnownConstInt(
  657   llvm::APSInt EvaluateKnownConstIntCheckOverflow(
 1033   llvm::APSInt getResultAsAPSInt() const;
 4022   llvm::APSInt getShuffleMaskIdx(const ASTContext &Ctx, unsigned N) const {
tools/clang/include/clang/AST/OptionalDiagnostic.h
   34   template <typename T> OptionalDiagnostic &operator<<(const T &v) {
   40   OptionalDiagnostic &operator<<(const llvm::APSInt &I) {
tools/clang/include/clang/AST/TemplateBase.h
  161   TemplateArgument(ASTContext &Ctx, const llvm::APSInt &Value, QualType Type);
  300   llvm::APSInt getAsIntegral() const {
tools/clang/include/clang/AST/Type.h
 6958 void FixedPointValueToString(SmallVectorImpl<char> &Str, llvm::APSInt Val,
tools/clang/include/clang/Basic/FixedPoint.h
  110    llvm::APSInt getValue() const { return llvm::APSInt(Val, !Sema.isSigned()); }
  146   llvm::APSInt getIntPart() const {
  161   llvm::APSInt convertToInt(unsigned DstWidth, bool DstSign,
  195   static APFixedPoint getFromIntValue(const llvm::APSInt &Value,
  200   llvm::APSInt Val;
tools/clang/include/clang/Sema/Sema.h
 2965                                               llvm::APSInt &Value, CCEKind CCE);
10681   void ConvertIntegerToTypeWarnOnOverflow(llvm::APSInt &OldVal,
10706   ExprResult VerifyIntegerConstantExpression(Expr *E, llvm::APSInt *Result,
10709   ExprResult VerifyIntegerConstantExpression(Expr *E, llvm::APSInt *Result,
10713                                              llvm::APSInt *Result = nullptr);
11317                               llvm::APSInt &Result);
tools/clang/include/clang/Sema/Template.h
  204                             const llvm::APSInt &Value,
tools/clang/include/clang/Serialization/ASTReader.h
 2226   llvm::APSInt ReadAPSInt(const RecordData &Record, unsigned &Idx);
 2636   llvm::APSInt readAPSInt() {
tools/clang/include/clang/Serialization/ASTWriter.h
  861   void AddAPSInt(const llvm::APSInt &Value);
tools/clang/include/clang/StaticAnalyzer/Checkers/SValExplainer.h
   66     llvm::APSInt I = V.getValue();
   78     llvm::APSInt I = V.getValue();
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/APSIntType.h
   27   /* implicit */ APSIntType(const llvm::APSInt &Value)
   37   void apply(llvm::APSInt &Value) const {
   48   llvm::APSInt convert(const llvm::APSInt &Value) const LLVM_READONLY {
   48   llvm::APSInt convert(const llvm::APSInt &Value) const LLVM_READONLY {
   49     llvm::APSInt Result(Value, Value.isUnsigned());
   55   llvm::APSInt getZeroValue() const LLVM_READONLY {
   60   llvm::APSInt getMinValue() const LLVM_READONLY {
   61     return llvm::APSInt::getMinValue(BitWidth, IsUnsigned);
   65   llvm::APSInt getMaxValue() const LLVM_READONLY {
   66     return llvm::APSInt::getMaxValue(BitWidth, IsUnsigned);
   69   llvm::APSInt getValue(uint64_t RawValue) const LLVM_READONLY {
   88   RangeTestResultKind testInRange(const llvm::APSInt &Val,
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/BasicValueFactory.h
  108       llvm::FoldingSet<llvm::FoldingSetNodeWrapper<llvm::APSInt>>;
  125   const llvm::APSInt& getValue(uint64_t X, unsigned BitWidth, bool isUnsigned);
  136   const llvm::APSInt& getValue(const llvm::APSInt& X);
  136   const llvm::APSInt& getValue(const llvm::APSInt& X);
  137   const llvm::APSInt& getValue(const llvm::APInt& X, bool isUnsigned);
  138   const llvm::APSInt& getValue(uint64_t X, QualType T);
  149   const llvm::APSInt &Convert(const llvm::APSInt& To,
  149   const llvm::APSInt &Convert(const llvm::APSInt& To,
  150                               const llvm::APSInt& From) {
  158   const llvm::APSInt &Convert(QualType T, const llvm::APSInt &From) {
  158   const llvm::APSInt &Convert(QualType T, const llvm::APSInt &From) {
  166   const llvm::APSInt &getIntValue(uint64_t X, bool isUnsigned) {
  171   const llvm::APSInt &getMaxValue(const llvm::APSInt &v) {
  171   const llvm::APSInt &getMaxValue(const llvm::APSInt &v) {
  175   const llvm::APSInt &getMinValue(const llvm::APSInt &v) {
  175   const llvm::APSInt &getMinValue(const llvm::APSInt &v) {
  179   const llvm::APSInt &getMaxValue(QualType T) {
  183   const llvm::APSInt &getMinValue(QualType T) {
  187   const llvm::APSInt &Add1(const llvm::APSInt &V) {
  187   const llvm::APSInt &Add1(const llvm::APSInt &V) {
  188     llvm::APSInt X = V;
  193   const llvm::APSInt &Sub1(const llvm::APSInt &V) {
  193   const llvm::APSInt &Sub1(const llvm::APSInt &V) {
  194     llvm::APSInt X = V;
  199   const llvm::APSInt &getZeroWithTypeSize(QualType T) {
  204   const llvm::APSInt &getZeroWithPtrWidth(bool isUnsigned = true) {
  208   const llvm::APSInt &getIntWithPtrWidth(uint64_t X, bool isUnsigned) {
  212   const llvm::APSInt &getTruthValue(bool b, QualType T) {
  217   const llvm::APSInt &getTruthValue(bool b) {
  253   const llvm::APSInt* evalAPSInt(BinaryOperator::Opcode Op,
  254                                      const llvm::APSInt& V1,
  255                                      const llvm::APSInt& V2);
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ConstraintManager.h
  122                                                const llvm::APSInt &From,
  123                                                const llvm::APSInt &To,
  128                                                     const llvm::APSInt &From,
  129                                                     const llvm::APSInt &To) {
  155   virtual const llvm::APSInt* getSymVal(ProgramStateRef state,
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h
   74   typedef llvm::ImmutableSet<llvm::APSInt*>                IntSetTy;
  204                                                       const llvm::APSInt &From,
  205                                                       const llvm::APSInt &To,
  214   assumeInclusiveRange(DefinedOrUnknownSVal Val, const llvm::APSInt &From,
  215                        const llvm::APSInt &To) const;
  677     DefinedOrUnknownSVal Val, const llvm::APSInt &From, const llvm::APSInt &To,
  677     DefinedOrUnknownSVal Val, const llvm::APSInt &From, const llvm::APSInt &To,
  690                                    const llvm::APSInt &From,
  691                                    const llvm::APSInt &To) const {
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/RangedConstraintManager.h
   27 class Range : public std::pair<const llvm::APSInt *, const llvm::APSInt *> {
   27 class Range : public std::pair<const llvm::APSInt *, const llvm::APSInt *> {
   29   Range(const llvm::APSInt &from, const llvm::APSInt &to)
   29   Range(const llvm::APSInt &from, const llvm::APSInt &to)
   33   bool Includes(const llvm::APSInt &v) const {
   36   const llvm::APSInt &From() const { return *first; }
   37   const llvm::APSInt &To() const { return *second; }
   38   const llvm::APSInt *getConcreteValue() const {
   89   RangeSet(Factory &F, const llvm::APSInt &from, const llvm::APSInt &to)
   89   RangeSet(Factory &F, const llvm::APSInt &from, const llvm::APSInt &to)
   99   const llvm::APSInt *getConcreteValue() const {
  105                         const llvm::APSInt &Lower, const llvm::APSInt &Upper,
  105                         const llvm::APSInt &Lower, const llvm::APSInt &Upper,
  109   const llvm::APSInt &getMinValue() const;
  111   bool pin(llvm::APSInt &Lower, llvm::APSInt &Upper) const;
  111   bool pin(llvm::APSInt &Lower, llvm::APSInt &Upper) const;
  114   RangeSet Intersect(BasicValueFactory &BV, Factory &F, llvm::APSInt Lower,
  115                      llvm::APSInt Upper) const;
  153                                           const llvm::APSInt &From,
  154                                           const llvm::APSInt &To,
  164                                const llvm::APSInt &Int);
  174                                       const llvm::APSInt &V,
  175                                       const llvm::APSInt &Adjustment) = 0;
  178                                       const llvm::APSInt &V,
  179                                       const llvm::APSInt &Adjustment) = 0;
  182                                       const llvm::APSInt &V,
  183                                       const llvm::APSInt &Adjustment) = 0;
  186                                       const llvm::APSInt &V,
  187                                       const llvm::APSInt &Adjustment) = 0;
  190                                       const llvm::APSInt &V,
  191                                       const llvm::APSInt &Adjustment) = 0;
  194                                       const llvm::APSInt &V,
  195                                       const llvm::APSInt &Adjustment) = 0;
  198       ProgramStateRef State, SymbolRef Sym, const llvm::APSInt &From,
  199       const llvm::APSInt &To, const llvm::APSInt &Adjustment) = 0;
  199       const llvm::APSInt &To, const llvm::APSInt &Adjustment) = 0;
  202       ProgramStateRef State, SymbolRef Sym, const llvm::APSInt &From,
  203       const llvm::APSInt &To, const llvm::APSInt &Adjustment) = 0;
  203       const llvm::APSInt &To, const llvm::APSInt &Adjustment) = 0;
  209   static void computeAdjustment(SymbolRef &Sym, llvm::APSInt &Adjustment);
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SMTConstraintManager.h
   62                                           const llvm::APSInt &From,
   63                                           const llvm::APSInt &To,
  108   const llvm::APSInt *getSymVal(ProgramStateRef State,
  116       llvm::APSInt Value(Ctx.getTypeSize(Ty),
  162       const llvm::APSInt *Value;
  169       const llvm::APSInt *LHS, *RHS;
  187       llvm::APSInt ConvertedLHS, ConvertedRHS;
  191       SMTConv::doIntTypeConversion<llvm::APSInt, &SMTConv::castAPSInt>(
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SMTConv.h
  313   static inline llvm::APSInt castAPSInt(llvm::SMTSolverRef &Solver,
  314                                         const llvm::APSInt &V, QualType ToTy,
  387       llvm::APSInt NewRInt;
  395       llvm::APSInt NewLInt;
  505                const llvm::APSInt &From, const llvm::APSInt &To, bool InRange) {
  505                const llvm::APSInt &From, const llvm::APSInt &To, bool InRange) {
  508     llvm::APSInt NewFromInt;
  523     llvm::APSInt NewToInt;
  544                                        const llvm::APSInt &Int) {
  549   static inline std::pair<llvm::APSInt, QualType>
  550   fixAPSInt(ASTContext &Ctx, const llvm::APSInt &Int) {
  551     llvm::APSInt NewInt;
  645                                          ASTContext &Ctx, T &LHS, QualType &LTy,
  646                                          T &RHS, QualType &RTy) {
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h
  133   virtual const llvm::APSInt *getKnownValue(ProgramStateRef state, SVal val) = 0;
  290   nonloc::ConcreteInt makeIntVal(const llvm::APSInt& integer) {
  294   loc::ConcreteInt makeIntLocVal(const llvm::APSInt &integer) {
  323                     const llvm::APSInt& rhs, QualType type);
  325   NonLoc makeNonLoc(const llvm::APSInt& rhs, BinaryOperator::Opcode op,
  365   Loc makeLoc(const llvm::APSInt& integer) {
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h
  381   explicit ConcreteInt(const llvm::APSInt& V) : NonLoc(ConcreteIntKind, &V) {}
  383   const llvm::APSInt& getValue() const {
  642   explicit ConcreteInt(const llvm::APSInt& V) : Loc(ConcreteIntKind, &V) {}
  644   const llvm::APSInt &getValue() const {
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SimpleConstraintManager.h
   43                                        const llvm::APSInt &From,
   44                                        const llvm::APSInt &To,
   63                                                   const llvm::APSInt &From,
   64                                                   const llvm::APSInt &To,
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SymbolManager.h
  334   const llvm::APSInt& RHS;
  338              const llvm::APSInt &rhs, QualType t)
  346   const llvm::APSInt &getRHS() const { return RHS; }
  355                       BinaryOperator::Opcode op, const llvm::APSInt& rhs,
  376   const llvm::APSInt& LHS;
  380   IntSymExpr(const llvm::APSInt &lhs, BinaryOperator::Opcode op,
  389   const llvm::APSInt &getLHS() const { return LHS; }
  397   static void Profile(llvm::FoldingSetNodeID& ID, const llvm::APSInt& lhs,
  518                                   const llvm::APSInt& rhs, QualType t);
  521                                   const llvm::APSInt& rhs, QualType t) {
  525   const IntSymExpr *getIntSymExpr(const llvm::APSInt& lhs,
tools/clang/lib/AST/ASTContext.cpp
 9068           llvm::APSInt TheInt;
tools/clang/lib/AST/ASTDiagnostic.cpp
  545       llvm::APSInt Val;
  637     void SetIntegerDiff(const llvm::APSInt &FromInt, const llvm::APSInt &ToInt,
  637     void SetIntegerDiff(const llvm::APSInt &FromInt, const llvm::APSInt &ToInt,
  674         Expr *FromExpr, const llvm::APSInt &ToInt, bool IsValidToInt,
  690         const llvm::APSInt &FromInt, bool IsValidFromInt, QualType FromIntType,
  793     void GetIntegerDiff(llvm::APSInt &FromInt, llvm::APSInt &ToInt,
  793     void GetIntegerDiff(llvm::APSInt &FromInt, llvm::APSInt &ToInt,
  825         Expr *&FromExpr, llvm::APSInt &ToInt, bool &IsValidToInt,
  840         llvm::APSInt &FromInt, bool &IsValidFromInt, QualType &FromIntType,
 1163                                              llvm::APSInt &Value, bool &HasInt,
 1234     llvm::APSInt FromInt, ToInt;
 1479         llvm::APSInt FromInt, ToInt;
 1508         llvm::APSInt ToInt;
 1522         llvm::APSInt FromInt;
 1734   void PrintAPSInt(const llvm::APSInt &FromInt, const llvm::APSInt &ToInt,
 1734   void PrintAPSInt(const llvm::APSInt &FromInt, const llvm::APSInt &ToInt,
 1767   void PrintAPSInt(const llvm::APSInt &Val, Expr *E, bool Valid,
 1879                                 const llvm::APSInt &Val, QualType IntType,
 1899   void PrintIntegerAndValueDecl(const llvm::APSInt &Val, QualType IntType,
tools/clang/lib/AST/ASTImporter.cpp
  216       auto operator()(Args &&... args)
  230                                                 Args &&... args) {
  257                                    FromDeclT *FromD, Args &&... args) {
 2056   const llvm::APSInt &FromVal = FromEC->getInitVal();
 2057   const llvm::APSInt &ToVal = ToEC->getInitVal();
tools/clang/lib/AST/ASTStructuralEquivalence.cpp
  325     return llvm::APSInt::isSameValue(Arg1.getAsIntegral(),
 1363     llvm::APSInt Val1 = EC1->getInitVal();
 1364     llvm::APSInt Val2 = EC2->getInitVal();
 1365     if (!llvm::APSInt::isSameValue(Val1, Val2) ||
tools/clang/lib/AST/ComparisonCategories.cpp
   45 llvm::APSInt ComparisonCategoryInfo::ValueInfo::getIntValue() const {
tools/clang/lib/AST/Decl.cpp
 4676                                            Expr *E, const llvm::APSInt &V) {
tools/clang/lib/AST/Expr.cpp
  339 llvm::APSInt ConstantExpr::getResultAsAPSInt() const {
  961       S, llvm::APSInt::getUnsigned(getValue().getZExtValue()), Scale);
 2209     llvm::APSInt IntVal(Ctx.getIntWidth(Ctx.UnsignedIntTy),
tools/clang/lib/AST/ExprConstant.cpp
  442                                    const APSInt &N);
  444     void adjustIndex(EvalInfo &Info, const Expr *E, APSInt N) {
 1362                                                     const APSInt &N) {
 1427     APSInt IntReal, IntImag;
 1439     APSInt &getComplexIntReal() { return IntReal; }
 1440     APSInt &getComplexIntImag() { return IntImag; }
 1599                               const APSInt &Index, CharUnits ElementSize) {
 1734 static bool EvaluateInteger(const Expr *E, APSInt &Result, EvalInfo &Info);
 1757 static void negateAsSigned(APSInt &Int) {
 2336                            const T &SrcValue, QualType DestType) {
 2344                                  QualType DestType, APSInt &Result) {
 2367 static APSInt HandleIntToIntCast(EvalInfo &Info, const Expr *E,
 2369                                  const APSInt &Value) {
 2373   APSInt Result = Value.extOrTrunc(DestWidth);
 2381                                  QualType SrcType, const APSInt &Value,
 2402   APSInt &Int = Value.getInt();
 2462                                  const APSInt &LHS, const APSInt &RHS,
 2462                                  const APSInt &LHS, const APSInt &RHS,
 2464                                  APSInt &Result) {
 2470   APSInt Value(Op(LHS.extend(BitWidth), RHS.extend(BitWidth)), false);
 2484 static bool handleIntIntBinOp(EvalInfo &Info, const Expr *E, const APSInt &LHS,
 2485                               BinaryOperatorKind Opcode, APSInt RHS,
 2486                               APSInt &Result) {
 2780                                         APSInt Adjustment) {
 2793                                      APSInt::get(Adjustment));
 2929 static APSInt extractStringLiteralCharacter(EvalInfo &Info, const Expr *Lit,
 2939     return APSInt::getUnsigned(Str.c_str()[Index]);
 2951   APSInt Value(S->getCharByteWidth() * Info.Ctx.getCharWidth(),
 2974   APSInt Value(S->getCharByteWidth() * Info.Ctx.getCharWidth(),
 3370   bool found(APSInt &Value, QualType SubobjType) {
 3417   bool found(APSInt &Value, QualType SubobjType) {
 3838   bool found(APSInt &Value, QualType SubobjType) {
 3850       APSInt LHS =
 3889     APSInt Offset = RHS.getInt();
 3972   bool found(APSInt &Value, QualType SubobjType) {
 4000         APSInt ActualValue(Value, /*IsUnsigned*/true);
 4008         APSInt ActualValue(Value.sext(BitWidth + 1), /*IsUnsigned*/false);
 4396   APSInt Value;
 4428     APSInt LHS = CS->getLHS()->EvaluateKnownConstInt(Info.Ctx);
 4429     APSInt RHS = CS->getRHS() ? CS->getRHS()->EvaluateKnownConstInt(Info.Ctx)
 4952   bool found(APSInt &Value, QualType SubobjType) { return true; }
 5303   bool found(APSInt &Value, QualType SubobjType) {
 5924   bool found(APSInt &Value, QualType SubobjType) {
 5982   APSInt ByteSize;
 6302   bool visitInt(const APSInt &Val, QualType Ty, CharUnits Offset) {
 6311     APSInt AsInt(Val.bitcastToAPInt());
 6375     APSInt Val(SizeOf.getQuantity() * Info.Ctx.getCharWidth(), true);
 7602   APSInt Index;
 7722   APSInt SizeOfElem;
 7731   APSInt NumberOfElems;
 7919   llvm::APSInt Offset;
 8149     APSInt Alignment;
 8155       APSInt Offset;
 8225     APSInt Desired;
 8233       APSInt N;
 8268       if (!APSInt::isSameValue(HandleIntToIntCast(Info, E, CharTy,
 8344     APSInt N;
 8524     llvm::APSInt ArrayBound;
 8612       bool found(APSInt &Value, QualType SubobjType) {
 9270       APSInt IntResult;
 9355       llvm::APSInt sInt(32);
 9651   bool Success(const llvm::APSInt &SI, const Expr *E, APValue &Result) {
 9661   bool Success(const llvm::APSInt &SI, const Expr *E) {
 9844 static bool EvaluateInteger(const Expr *E, APSInt &Result, EvalInfo &Info) {
 9883     APSInt Val;
 9910       llvm::APSInt Val = ECD->getInitVal();
10546     APSInt Val;
10559     APSInt Val;
10570     APSInt Val;
10600     APSInt Val;
10621     APSInt Val;
10676     APSInt Val;
10686     APSInt Val;
10781       APSInt N;
10847         APSInt Char1InMem = Char1.getInt().extOrTrunc(CharTy1Width);
10848         APSInt Char2InMem = Char2.getInt().extOrTrunc(CharTy1Width);
10906     APSInt SizeVal;
10972     APSInt LHS, RHS;
10980     APSInt Result;
11054       APSInt Temp = Result.extOrTrunc(Info.Ctx.getTypeSize(ResultType));
11057       if (!APSInt::isSameValue(Temp, Result))
11171   bool Success(const APSInt &Value, const Expr *E, APValue &Result) {
11255 static void addOrSubLValueAsInteger(APValue &LVal, const APSInt &Index,
11354   APSInt Value(Info.Ctx.getIntWidth(E->getType()),
11457     APSInt LHS, RHS;
11880     APSInt LHS(llvm::APInt(65, (int64_t)LHSOffset.getQuantity(), true), false);
11881     APSInt RHS(llvm::APInt(65, (int64_t)RHSOffset.getQuantity(), true), false);
11882     APSInt ElemSize(llvm::APInt(65, (int64_t)ElementSize.getQuantity(), true),
11884     APSInt TrueResult = (LHS - RHS) / ElemSize;
11885     APSInt Result = TrueResult.trunc(Info.Ctx.getIntWidth(E->getType()));
11962       APSInt IdxResult;
12037     const APSInt &Value = Result.getInt();
12143     llvm::APSInt Result = Src.convertToInt(
12199     APSInt AsInt;
12220     APSInt Value;
12317     APSInt Src;
12579     APSInt IntResult;
12649     APSInt Zero = Info.Ctx.MakeIntValue(0, ElemTy);
12672     APSInt &Imag = Result.IntImag;
12783     APSInt &Real = Result.IntReal;
13032       APSInt Den = RHS.getComplexIntReal() * RHS.getComplexIntReal() +
13711 APSInt Expr::EvaluateKnownConstInt(const ASTContext &Ctx,
13729 APSInt Expr::EvaluateKnownConstIntCheckOverflow(
14079           llvm::APSInt REval = Exp->getRHS()->EvaluateKnownConstInt(Ctx);
14083             llvm::APSInt LEval = Exp->getLHS()->EvaluateKnownConstInt(Ctx);
14134         APSInt IgnoredVal(DestWidth, !DestSigned);
14221                                                     llvm::APSInt *Value,
14257 bool Expr::isIntegerConstantExpr(llvm::APSInt &Value, const ASTContext &Ctx,
tools/clang/lib/AST/Interp/ByteCodeEmitter.cpp
   18 using APSInt = llvm::APSInt;
tools/clang/lib/AST/Interp/ByteCodeExprGen.cpp
   21 using APSInt = llvm::APSInt;
tools/clang/lib/AST/Interp/EvalEmitter.cpp
   19 using APSInt = llvm::APSInt;
tools/clang/lib/AST/Interp/Integral.h
   28 using APSInt = llvm::APSInt;
tools/clang/lib/AST/Interp/Interp.h
   38 using APSInt = llvm::APSInt;
tools/clang/lib/AST/Interp/InterpState.cpp
   22 using APSInt = llvm::APSInt;
   51 bool InterpState::reportOverflow(const Expr *E, const llvm::APSInt &Value) {
tools/clang/lib/AST/Interp/InterpState.h
   78   bool reportOverflow(const Expr *E, const llvm::APSInt &Value);
tools/clang/lib/AST/ItaniumMangle.cpp
  421   void mangleNumber(const llvm::APSInt &I);
  533   void mangleIntegerLiteral(QualType T, const llvm::APSInt &Value);
 1046 void CXXNameMangler::mangleNumber(const llvm::APSInt &Value) {
 3453                                           const llvm::APSInt &Value) {
 3985       llvm::APSInt V = SAE->EvaluateKnownConstInt(Context.getASTContext());
 4259     llvm::APSInt Value(cast<IntegerLiteral>(E)->getValue());
 4280       llvm::APSInt Value(cast<IntegerLiteral>(IE->getSubExpr())->getValue());
tools/clang/lib/AST/MicrosoftMangle.cpp
  378   void mangleIntegerLiteral(const llvm::APSInt &Number, bool IsBoolean);
 1348 void MicrosoftCXXNameMangler::mangleIntegerLiteral(const llvm::APSInt &Value,
 1363   llvm::APSInt Value;
 1503           mangleIntegerLiteral(llvm::APSInt::get(-1), /*IsBoolean=*/false);
 1508     mangleIntegerLiteral(llvm::APSInt::getUnsigned(0), /*IsBoolean=*/false);
 1842     Extra.mangleIntegerLiteral(llvm::APSInt::getUnsigned(TargetAS),
 2723     Extra.mangleIntegerLiteral(llvm::APSInt::getUnsigned(T->getNumElements()),
tools/clang/lib/AST/TemplateBase.cpp
   55   const llvm::APSInt &Val = TemplArg.getAsIntegral();
   63       if (llvm::APSInt::isSameValue(ECD->getInitVal(), Val)) {
   86 TemplateArgument::TemplateArgument(ASTContext &Ctx, const llvm::APSInt &Value,
tools/clang/lib/AST/Type.cpp
  163   llvm::APSInt SizeExtended(NumElements, true);
  168   llvm::APSInt TotalSize(llvm::APInt(SizeExtended.getBitWidth(), ElementSize));
 4150                                     llvm::APSInt Val, unsigned Scale) {
tools/clang/lib/Analysis/CFG.cpp
 1010                                           const llvm::APSInt &Value1,
 1011                                           const llvm::APSInt &Value2) {
 1077     llvm::APSInt L1 = L1Result.Val.getInt();
 1078     llvm::APSInt L2 = L2Result.Val.getInt();
 1086     const llvm::APSInt Values[] = {
 1088       llvm::APSInt::getMinValue(L1.getBitWidth(), L1.isUnsigned()),
 1097       llvm::APSInt::getMaxValue(L1.getBitWidth(), L1.isUnsigned()),
 1111     for (const llvm::APSInt &Value : Values) {
 1206               llvm::APSInt IntVal = LHSResult.Val.getInt();
 1213               llvm::APSInt IntVal = RHSResult.Val.getInt();
 4112       const llvm::APSInt &lhsInt = CS->getLHS()->EvaluateKnownConstInt(Ctx);
 4113       const llvm::APSInt &condInt = switchCond->Val.getInt();
 4122           const llvm::APSInt &V2 = RHS->EvaluateKnownConstInt(Ctx);
tools/clang/lib/Basic/FixedPoint.cpp
   20   llvm::APSInt NewVal = Val;
   64   llvm::APSInt ThisVal = getValue();
   65   llvm::APSInt OtherVal = Other.getValue();
  116   auto Val = llvm::APSInt::getMaxValue(Sema.getWidth(), IsUnsigned);
  116   auto Val = llvm::APSInt::getMaxValue(Sema.getWidth(), IsUnsigned);
  123   auto Val = llvm::APSInt::getMinValue(Sema.getWidth(), !Sema.isSigned());
  123   auto Val = llvm::APSInt::getMinValue(Sema.getWidth(), !Sema.isSigned());
  157   llvm::APSInt ThisVal = ConvertedThis.getValue();
  158   llvm::APSInt OtherVal = ConvertedOther.getValue();
  161   llvm::APSInt Result;
  177   llvm::APSInt Val = getValue();
  185   llvm::APSInt IntPart = Val >> Scale;
  221 llvm::APSInt APFixedPoint::convertToInt(unsigned DstWidth, bool DstSign,
  223   llvm::APSInt Result = getIntPart();
  226   llvm::APSInt DstMin = llvm::APSInt::getMinValue(DstWidth, !DstSign);
  226   llvm::APSInt DstMin = llvm::APSInt::getMinValue(DstWidth, !DstSign);
  227   llvm::APSInt DstMax = llvm::APSInt::getMaxValue(DstWidth, !DstSign);
  227   llvm::APSInt DstMax = llvm::APSInt::getMaxValue(DstWidth, !DstSign);
  250 APFixedPoint APFixedPoint::getFromIntValue(const llvm::APSInt &Value,
tools/clang/lib/CodeGen/CGBuiltin.cpp
 2416     llvm::APSInt Size = SizeResult.Val.getInt();
 2417     llvm::APSInt DstSize = DstSizeResult.Val.getInt();
 2442     llvm::APSInt Size = SizeResult.Val.getInt();
 2443     llvm::APSInt DstSize = DstSizeResult.Val.getInt();
 2482     llvm::APSInt Size = SizeResult.Val.getInt();
 2483     llvm::APSInt DstSize = DstSizeResult.Val.getInt();
 4167         llvm::APSInt Result;
 5241   llvm::APSInt NeonTypeConst;
 6023     llvm::APSInt Value = Result.Val.getInt();
 6421       llvm::APSInt Result;
 6624   llvm::APSInt Result;
 6931   llvm::APSInt Result;
 7251     llvm::APSInt Value = Result.Val.getInt();
 7472       llvm::APSInt Result;
 7491   llvm::APSInt Result;
10182     llvm::APSInt Result;
13170     llvm::APSInt M4, M5;
13217     llvm::APSInt M4;
13247     llvm::APSInt M4;
13910     llvm::APSInt isColMajorArg;
13954     llvm::APSInt isColMajorArg;
14004     llvm::APSInt LayoutArg;
14010     llvm::APSInt SatfArg;
14084     llvm::APSInt SegConst;
14087     llvm::APSInt MemConst;
14100     llvm::APSInt SegConst;
14229     llvm::APSInt LaneConst;
14257     llvm::APSInt LaneConst;
tools/clang/lib/CodeGen/CGDebugInfo.cpp
 2815     const auto &InitVal = Enum->getInitVal();
tools/clang/lib/CodeGen/CGExpr.cpp
 3671     llvm::APSInt ConstLength;
 3679       llvm::APSInt ConstLowerBound(PointerWidthInBits, /*isUnsigned=*/false);
tools/clang/lib/CodeGen/CGExprScalar.cpp
  892   APSInt Min = APSInt::getMinValue(Width, Unsigned);
  892   APSInt Min = APSInt::getMinValue(Width, Unsigned);
  904   APSInt Max = APSInt::getMaxValue(Width, Unsigned);
  904   APSInt Max = APSInt::getMaxValue(Width, Unsigned);
 1633     llvm::APSInt Idx = E->getShuffleMaskIdx(CGF.getContext(), i-2);
 1726       llvm::APSInt Value = Result.Val.getInt();
 2639     llvm::APSInt Value = EVResult.Val.getInt();
tools/clang/lib/CodeGen/CGLoopInfo.cpp
  609         llvm::APSInt ValueAPS = ValueExpr->EvaluateKnownConstInt(Ctx);
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
 7311     llvm::APSInt ConstLength = Result.Val.getInt();
10237     llvm::APSInt StrideOrArg;
10238     llvm::APSInt Alignment;
10296                            const llvm::APSInt &VLENVal,
10338         Out << llvm::APSInt::getUnsigned(Data.VecRegSize / NumElts);
10716                 : llvm::APSInt::getUnsigned(
10743                 ParamAttr.StrideOrArg = llvm::APSInt::getUnsigned(
10754       llvm::APSInt VLENVal;
11050   llvm::APSInt LHSVal = LHS->EvaluateKnownConstInt(Ctx);
11051   llvm::APSInt RHSVal = RHS->EvaluateKnownConstInt(Ctx);
11052   return llvm::APSInt::compareValues(LHSVal, RHSVal) >= 0;
tools/clang/lib/CodeGen/CGStmt.cpp
 1177   llvm::APSInt LHS = S.getLHS()->EvaluateKnownConstInt(getContext());
 1178   llvm::APSInt RHS = S.getRHS()->EvaluateKnownConstInt(getContext());
 1533                                        const llvm::APSInt &ConstantCondValue,
 1593   llvm::APSInt ConstantCondValue;
 1859       llvm::APSInt IntResult;
tools/clang/lib/CodeGen/CGStmtOpenMP.cpp
 2417           llvm::APSInt EvaluatedChunk = Result.Val.getInt();
tools/clang/lib/CodeGen/CodeGenFunction.cpp
 1332   llvm::APSInt ResultInt;
 1344                                                    llvm::APSInt &ResultInt,
 1352   llvm::APSInt Int = Result.Val.getInt();
tools/clang/lib/CodeGen/CodeGenFunction.h
 4054   bool ConstantFoldsToSimpleInteger(const Expr *Cond, llvm::APSInt &Result,
tools/clang/lib/CodeGen/TargetInfo.cpp
 6495       llvm::APSInt MaxThreads(32);
 6504         llvm::APSInt MinBlocks(32);
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp
 3675         llvm::APSInt Val = EC->getInitVal();
tools/clang/lib/Lex/PPExpressions.cpp
   48   llvm::APSInt Val;
  369     llvm::APSInt Val(NumBits);
  625     llvm::APSInt Res(LHS.getBitWidth());
tools/clang/lib/Sema/SemaAttr.cpp
  296     llvm::APSInt Val;
tools/clang/lib/Sema/SemaCast.cpp
 2662         llvm::APSInt CastInt = Result.Val.getInt();
tools/clang/lib/Sema/SemaChecking.cpp
  399   llvm::APSInt ObjectSize;
  426     ObjectSize = llvm::APSInt::getUnsigned(Result).extOrTrunc(SizeTypeWidth);
  434   llvm::APSInt UsedSize = Result.Val.getInt();
 1088     llvm::APSInt Result;
 1653   llvm::APSInt Result;
 1981   llvm::APSInt Value;
 3304     llvm::APSInt AbortCode(32);
 3585   llvm::APSInt Result;
 3695   llvm::APSInt Result;
 4956     llvm::APSInt Result(32);
 4966     llvm::APSInt Result(32);
 5831   llvm::APSInt Value;
 5927     llvm::APSInt Result(32);
 6036     llvm::APSInt Result = Arg->EvaluateKnownConstInt(Context);
 6069     llvm::APSInt Result;
 6179                                   llvm::APSInt &Result) {
 6199   llvm::APSInt Result;
 6230   llvm::APSInt Result;
 6251   llvm::APSInt Result;
 6271 static bool IsShiftedByte(llvm::APSInt Value) {
 6297   llvm::APSInt Result;
 6322   llvm::APSInt Result;
 6606   llvm::APSInt Result;
 6684 static void sumOffsets(llvm::APSInt &Offset, llvm::APSInt Addend,
 6684 static void sumOffsets(llvm::APSInt &Offset, llvm::APSInt Addend,
 6703   llvm::APSInt ResOffset = Offset;
 6800                       llvm::APSInt Offset,
10156 static IntRange GetValueRange(ASTContext &C, llvm::APSInt &value,
10333       llvm::APSInt shift;
10364       llvm::APSInt divisor;
10519   llvm::APSInt PromotedMin;
10521   llvm::APSInt PromotedMax;
10530       PromotedMin = llvm::APSInt::getMinValue(BitWidth, Unsigned);
10531       PromotedMax = llvm::APSInt::getMaxValue(BitWidth, Unsigned);
10533       PromotedMin = llvm::APSInt::getMinValue(R.Width, R.NonNegative)
10537       PromotedMax = llvm::APSInt::getMaxValue(R.Width, R.NonNegative)
10566   ComparisonResult compare(const llvm::APSInt &Value) const {
10578     switch (llvm::APSInt::compareValues(Value, PromotedMin)) {
10582       switch (llvm::APSInt::compareValues(Value, PromotedMax)) {
10659                                         const llvm::APSInt &Value,
10798     llvm::APSInt RHSValue;
10799     llvm::APSInt LHSValue;
10814       const llvm::APSInt &Value = RhsConstant ? RHSValue : LHSValue;
10992   llvm::APSInt Value = Result.Val.getInt();
11005   llvm::APSInt TruncatedValue = Value.trunc(FieldWidth);
11010   if (llvm::APSInt::isSameValue(Value, TruncatedValue))
11126   llvm::APSInt IntegerValue(S.Context.getIntWidth(T),
11248 static std::string PrettyPrintInRange(const llvm::APSInt &Value,
11252   llvm::APSInt ValueInRange = Value;
11744         llvm::APSInt IntResult = FXResult.convertToInt(
11763         llvm::APSInt Value = Result.Val.getInt();
11798       llvm::APSInt SourceInt;
11861       llvm::APSInt Value(32);
11910       llvm::APSInt Value = Result.Val.getInt();
13259   llvm::APSInt index = Result.Val.getInt();
13587           llvm::APSInt Value;
tools/clang/lib/Sema/SemaDecl.cpp
 5733                                                     llvm::APSInt &Oversized) {
 5778   llvm::APSInt Res = Result.Val.getInt();
 5835                                               llvm::APSInt &Oversized) {
 5946       llvm::APSInt Oversized;
 7688     llvm::APSInt Oversized;
12773     llvm::APSInt MagicValueInt;
15796   llvm::APSInt Value;
16046     llvm::APSInt Oversized;
16854                                         llvm::APSInt &Value,
16900   llvm::APSInt EnumVal(IntWidth);
17231     llvm::APSInt Val = D->getInitVal();
17328       const auto &EVal = E->getInitVal();
17388     const llvm::APSInt &InitVal = ECD->getInitVal();
17511     llvm::APSInt InitVal = ECD->getInitVal();
17570       llvm::APSInt InitVal = ECD->getInitVal();
tools/clang/lib/Sema/SemaDeclAttr.cpp
  244   llvm::APSInt I(32);
  284     llvm::APSInt I(32); // for toString
  336   llvm::APSInt IdxInt;
 1560     llvm::APSInt I(64);
 1582       llvm::APSInt I(64);
 2641     llvm::APSInt Idx(32);
 2661     llvm::APSInt Idx(32);
 3594     llvm::APSInt Alignment;
 3703   llvm::APSInt Alignment;
 4710   llvm::APSInt I(64);
 5488   llvm::APSInt NumParams(32);
tools/clang/lib/Sema/SemaDeclCXX.cpp
  875     QualType DecompType, const llvm::APSInt &NumElems, QualType ElemType,
  902                                         const llvm::APSInt &NumElems,
  926       S, Bindings, Src, DecompType, llvm::APSInt::get(VT->getNumElements()),
  936       S, Bindings, Src, DecompType, llvm::APSInt::get(2),
 1030                                llvm::APSInt &Size) {
 1120                                         const llvm::APSInt &TupleSize) {
 1452   llvm::APSInt TupleSize(32);
11288   llvm::APSInt Result;
14473     llvm::APSInt Cond;
tools/clang/lib/Sema/SemaExceptionSpec.cpp
   91   llvm::APSInt Result;
tools/clang/lib/Sema/SemaExpr.cpp
 1745     llvm::APSInt Value(CharBits, CharIsUnsigned);
 3375   llvm::APSInt ValueAPS;
 3496       llvm::APSInt Value(CharBits, CharIsUnsigned);
 3544     auto MaxVal = Context.getFixedPointMax(Ty).getValue();
 4566       llvm::APSInt LowerBoundValue = Result.Val.getInt();
 4580       llvm::APSInt LengthValue = Result.Val.getInt();
 8859     llvm::APSInt Result = EVResult.Val.getInt();
 8897     llvm::APSInt Result = EVResult.Val.getInt();
 8901     llvm::APSInt ConvertBack(S.Context.getIntWidth(IntTy),
 9804   llvm::APSInt Right = RHSResult.Val.getInt();
 9834   llvm::APSInt Left = LHSResult.Val.getInt();
 9850   llvm::APSInt Result = Left.extend(ResultBits.getLimitedValue());
11371       llvm::APSInt Result = EVResult.Val.getInt();
14053     llvm::APSInt condEval(32);
tools/clang/lib/Sema/SemaExprCXX.cpp
 1687             llvm::APSInt Value(IntWidth);
 2000       llvm::APSInt Value;
 3678   llvm::APSInt Value(/*BitWidth*/1);
 5309     llvm::APSInt Value;
tools/clang/lib/Sema/SemaInit.cpp
  343                       llvm::APSInt elementIndex,
  352                                   llvm::APSInt *NextElementIndex,
 1277     llvm::APSInt Zero(
 1815                                      llvm::APSInt elementIndex,
 1866   llvm::APSInt maxElements(elementIndex.getBitWidth(),
 1931     llvm::APSInt Zero(maxElements.getBitWidth(), maxElements.isUnsigned());
 2363                                             llvm::APSInt *NextElementIndex,
 2797   llvm::APSInt DesignatedStartIndex, DesignatedEndIndex;
 2822     llvm::APSInt MaxElements(cast<ConstantArrayType>(AT)->getSize(), false);
 3110 CheckArrayDesignatorExpr(Sema &S, Expr *Index, llvm::APSInt &Value) {
 3147       llvm::APSInt IndexValue;
 3164       llvm::APSInt StartValue;
 3165       llvm::APSInt EndValue;
 8532         llvm::APSInt Result = EVResult.Val.getInt();
tools/clang/lib/Sema/SemaOpenMP.cpp
  101       llvm::StringMap<std::pair<const OMPCriticalDirective *, llvm::APSInt>>;
  405   void addCriticalWithHint(const OMPCriticalDirective *D, llvm::APSInt Hint) {
  408   const std::pair<const OMPCriticalDirective *, llvm::APSInt>
 5185       llvm::APSInt Result;
 5499     llvm::APSInt Result;
 6843   llvm::APSInt Result;
 6921       llvm::APSInt Result = EVResult.Val.getInt();
 7116   llvm::APSInt Result;
 7628     llvm::APSInt SimdlenRes = SimdlenResult.Val.getInt();
 7629     llvm::APSInt SafelenRes = SafelenResult.Val.getInt();
 7864   llvm::APSInt Hint;
 7887     if (llvm::APSInt::compareValues(Hint, Pair.second) != 0) {
11096     llvm::APSInt Result;
11155   llvm::APSInt Result;
11658       llvm::APSInt Result;
12986     SmallVectorImpl<llvm::APSInt> &ArraySizes) {
12996     ArraySizes.push_back(llvm::APSInt::get(1));
13002     llvm::APSInt ConstantLengthValue = Result.Val.getInt();
13021       ArraySizes.push_back(llvm::APSInt::get(1));
13027       llvm::APSInt ConstantLengthValue = Result.Val.getInt();
13040       ArraySizes.push_back(llvm::APSInt::get(1));
13352       llvm::SmallVector<llvm::APSInt, 4> ArraySizes;
13358         for (llvm::APSInt &Size : ArraySizes)
13909     llvm::APSInt Result;
14346   llvm::APSInt DepCounter(/*BitWidth=*/32);
14347   llvm::APSInt TotalDepCount(/*BitWidth=*/32);
14558     llvm::APSInt ConstLowerBound = Result.Val.getInt();
14582   llvm::APSInt ConstLength = Result.Val.getInt();
14617   llvm::APSInt ConstLength = Result.Val.getInt();
16099       llvm::APSInt Result;
tools/clang/lib/Sema/SemaOverload.cpp
  344       llvm::APSInt IntConstantValue;
  358         llvm::APSInt ConvertedValue = IntConstantValue;
  428       llvm::APSInt InitializerValue;
  451         llvm::APSInt ConvertedValue = InitializerValue;
 2124       llvm::APSInt BitWidth;
 2127         llvm::APSInt ToSize(BitWidth.getBitWidth(), BitWidth.isUnsigned());
 5627                                                   llvm::APSInt &Value,
 9559       return llvm::APSInt::isSameValue(EA->getInitVal(), EB->getInitVal());
12551     llvm::APSInt Zero(Context.getTypeSize(Context.IntTy), false);
12996             llvm::APSInt Zero(Context.getTypeSize(Context.IntTy), false);
tools/clang/lib/Sema/SemaStmt.cpp
  450       llvm::APSInt TempVal;
  605     bool operator()(const std::pair<llvm::APSInt, CaseStmt*> &LHS,
  606                     const llvm::APSInt &RHS) {
  609     bool operator()(const std::pair<llvm::APSInt, CaseStmt*> &LHS,
  610                     const std::pair<llvm::APSInt, CaseStmt*> &RHS) {
  613     bool operator()(const llvm::APSInt &LHS,
  614                     const std::pair<llvm::APSInt, CaseStmt*> &RHS) {
  622 static bool CmpCaseVals(const std::pair<llvm::APSInt, CaseStmt*>& lhs,
  623                         const std::pair<llvm::APSInt, CaseStmt*>& rhs) {
  636 static bool CmpEnumVals(const std::pair<llvm::APSInt, EnumConstantDecl*>& lhs,
  637                         const std::pair<llvm::APSInt, EnumConstantDecl*>& rhs)
  644 static bool EqEnumVals(const std::pair<llvm::APSInt, EnumConstantDecl*>& lhs,
  645                        const std::pair<llvm::APSInt, EnumConstantDecl*>& rhs)
  755 static void AdjustAPSInt(llvm::APSInt &Val, unsigned BitWidth, bool IsSigned) {
  762 static void checkCaseValue(Sema &S, SourceLocation Loc, const llvm::APSInt &Val,
  772     llvm::APSInt ConvVal(Val);
  784 typedef SmallVector<std::pair<llvm::APSInt, EnumConstantDecl*>, 64> EnumValsTy;
  793                                               const llvm::APSInt &Val) {
  894   typedef SmallVector<std::pair<llvm::APSInt, CaseStmt*>, 64> CaseValsTy;
  898   typedef std::vector<std::pair<llvm::APSInt, CaseStmt*> > CaseRangesTy;
  935       llvm::APSInt LoVal = LoBeforePromotion->EvaluateKnownConstInt(Context);
  964     llvm::APSInt ConstantCondValue;
 1030       std::vector<llvm::APSInt> HiVals;
 1032         llvm::APSInt &LoVal = CaseRanges[i].first;
 1038         llvm::APSInt HiVal = HiBeforePromotion->EvaluateKnownConstInt(Context);
 1070         llvm::APSInt &CRLo = CaseRanges[i].first;
 1071         llvm::APSInt &CRHi = HiVals[i];
 1077         llvm::APSInt OverlapVal(32);
 1141         llvm::APSInt Val = EDI->getInitVal();
 1169         llvm::APSInt Hi =
 1214           llvm::APSInt Hi =
 1274         llvm::APSInt RhsVal = SrcExpr->EvaluateKnownConstInt(Context);
 1286           typedef SmallVector<std::pair<llvm::APSInt, EnumConstantDecl *>, 64>
 1293             llvm::APSInt Val = EDI->getInitVal();
tools/clang/lib/Sema/SemaStmtAsm.cpp
  389           llvm::APSInt IntResult;
tools/clang/lib/Sema/SemaStmtAttr.cpp
  299     llvm::APSInt ArgVal(32);
tools/clang/lib/Sema/SemaTemplate.cpp
 3011     llvm::APSInt NumArgs = NumArgsArg.getAsIntegral();
 3024     for (llvm::APSInt I(NumArgs.getBitWidth(), NumArgs.isUnsigned());
 3045     llvm::APSInt Index = IndexArg.getAsIntegral();
 6579       llvm::APSInt Value;
 6619     llvm::APSInt Value;
 6688       llvm::APSInt OldValue = Value;
tools/clang/lib/Sema/SemaTemplateDeduction.cpp
  114 static bool hasSameExtendedValue(llvm::APSInt X, llvm::APSInt Y) {
  114 static bool hasSameExtendedValue(llvm::APSInt X, llvm::APSInt Y) {
  423     NonTypeTemplateParmDecl *NTTP, const llvm::APSInt &Value,
 1643         llvm::APSInt Size(ConstantArrayArg->getSize());
 1707         llvm::APSInt Noexcept(1);
 1958         llvm::APSInt ArgSize(S.Context.getTypeSize(S.Context.IntTy), false);
 2011         llvm::APSInt ArgSize(S.Context.getTypeSize(S.Context.IntTy), false);
 2073         llvm::APSInt ArgAddressSpace(S.Context.getTypeSize(S.Context.IntTy),
tools/clang/lib/Sema/SemaType.cpp
 2107 static bool isArraySizeVLA(Sema &S, Expr *ArraySize, llvm::APSInt &SizeVal) {
 2231   llvm::APSInt ConstVal(Context.getTypeSize(Context.getSizeType()));
 2364   llvm::APSInt VecSize(32);
 2421     llvm::APSInt vecSize(32);
 5896     llvm::APSInt addrSpace(32);
 5914     llvm::APSInt max(addrSpace.getBitWidth());
 7281   llvm::APSInt numEltsInt(32);
tools/clang/lib/Serialization/ASTReader.cpp
 9308     llvm::APSInt Value = ReadAPSInt(Record, Idx);
 9620     llvm::APSInt First = ReadAPSInt(Record, Idx);
 9654 llvm::APSInt ASTReader::ReadAPSInt(const RecordData &Record, unsigned &Idx) {
tools/clang/lib/Serialization/ASTWriter.cpp
 5443 void ASTRecordWriter::AddAPSInt(const llvm::APSInt &Value) {
tools/clang/lib/StaticAnalyzer/Checkers/ArrayBoundCheckerV2.cpp
   89       llvm::APSInt constant =
tools/clang/lib/StaticAnalyzer/Checkers/BuiltinFunctionChecker.cpp
  113       llvm::APSInt Result = EVResult.Val.getInt();
tools/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp
  674   const llvm::APSInt &maxValInt = BVF.getMaxValue(sizeTy);
  777       const llvm::APSInt &maxValInt = BVF.getMaxValue(sizeTy);
  778       llvm::APSInt fourInt = APSIntType(maxValInt).getValue(4);
  779       const llvm::APSInt *maxLengthInt = BVF.evalAPSInt(BO_Div, maxValInt,
 1981       if (const llvm::APSInt *len = svalBuilder.getKnownValue(state, lenVal)) {
tools/clang/lib/StaticAnalyzer/Checkers/CastSizeChecker.cpp
  113   const llvm::APSInt *extentInt = svalBuilder.getKnownValue(state, extent);
tools/clang/lib/StaticAnalyzer/Checkers/CheckSecuritySyntaxOnly.cpp
  616     llvm::APSInt Result = EVResult.Val.getInt();
tools/clang/lib/StaticAnalyzer/Checkers/EnumCastOutOfRangeChecker.cpp
   44   bool operator()(const llvm::APSInt &EnumDeclInitValue) {
   67 using EnumValueVector = llvm::SmallVector<llvm::APSInt, 6>;
tools/clang/lib/StaticAnalyzer/Checkers/IteratorChecker.cpp
  960                     nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(1))));
  978                     nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(1))));
 1013                      nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(1))));
 1020                      nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(1))));
 1330                     nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(1))),
 1356                     nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(1))),
 1399                       nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(1))),
 1434                     nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(1))),
 1541                   nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(1))),
 2114   llvm::APSInt Max = AT.getMaxValue() / AT.getValue(Scale);
 2124   llvm::APSInt Min = -Max;
 2286                  nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(0))),
tools/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/MPIChecker.cpp
  166     const llvm::APSInt &ArrSize = Size.getAs<nonloc::ConcreteInt>()->getValue();
tools/clang/lib/StaticAnalyzer/Checkers/MallocOverflowSecurityChecker.cpp
   37   APSInt maxVal;
   39   MallocOverflowCheck(const BinaryOperator *m, const Expr *v, APSInt val)
   60 static inline bool EvaluatesToZero(APSInt &Val, BinaryOperatorKind op) {
   76   APSInt maxVal;
  178       APSInt denomVal;
tools/clang/lib/StaticAnalyzer/Checkers/NumberObjectConversionChecker.cpp
   92         llvm::APSInt Result = EVResult.Val.getInt();
tools/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
  253       const llvm::APSInt &Min = BVF.getValue(R[I].first, T);
  254       const llvm::APSInt &Max = BVF.getValue(R[I].second, T);
  284     const llvm::APSInt &MinusInf = BVF.getMinValue(T);
  285     const llvm::APSInt &PlusInf = BVF.getMaxValue(T);
  287     const llvm::APSInt &Left = BVF.getValue(R[0].first - 1ULL, T);
  295     const llvm::APSInt &Right = BVF.getValue(R[E - 1].second + 1ULL, T);
  304       const llvm::APSInt &Min = BVF.getValue(R[I - 1].second + 1ULL, T);
  305       const llvm::APSInt &Max = BVF.getValue(R[I].first - 1ULL, T);
tools/clang/lib/StaticAnalyzer/Checkers/UndefResultChecker.cpp
   69   const llvm::APSInt *LHS = SB.getKnownValue(State, C.getSVal(B->getLHS()));
   70   const llvm::APSInt *RHS = SB.getKnownValue(State, C.getSVal(B->getRHS()));
  137         const llvm::APSInt *I =
  157         const llvm::APSInt *LHS =
  159         const llvm::APSInt *RHS =
tools/clang/lib/StaticAnalyzer/Core/APSIntType.cpp
   15 APSIntType::testInRange(const llvm::APSInt &Value,
tools/clang/lib/StaticAnalyzer/Core/BasicValueFactory.cpp
   89 const llvm::APSInt& BasicValueFactory::getValue(const llvm::APSInt& X) {
   89 const llvm::APSInt& BasicValueFactory::getValue(const llvm::APSInt& X) {
   93   using FoldNodeTy = llvm::FoldingSetNodeWrapper<llvm::APSInt>;
  107 const llvm::APSInt& BasicValueFactory::getValue(const llvm::APInt& X,
  109   llvm::APSInt V(X, isUnsigned);
  113 const llvm::APSInt& BasicValueFactory::getValue(uint64_t X, unsigned BitWidth,
  115   llvm::APSInt V(BitWidth, isUnsigned);
  120 const llvm::APSInt& BasicValueFactory::getValue(uint64_t X, QualType T) {
  204 const llvm::APSInt*
  206                              const llvm::APSInt& V1, const llvm::APSInt& V2) {
  206                              const llvm::APSInt& V1, const llvm::APSInt& V2) {
tools/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
  207 static Optional<const llvm::APSInt *>
 2643   Optional<const llvm::APSInt *> IntValue;
tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
 2365     llvm::APSInt V1 = Case->getLHS()->EvaluateKnownConstInt(getContext());
 2369     llvm::APSInt V2;
tools/clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp
  851     APSInt IV = Result.Val.getInt();
  894     APSInt Value = Ex->EvaluateKnownConstInt(getContext());
tools/clang/lib/StaticAnalyzer/Core/ProgramState.cpp
  272       if (const llvm::APSInt *Int = getStateManager()
  289         const llvm::APSInt &NewV = getBasicVals().Convert(T, *Int);
tools/clang/lib/StaticAnalyzer/Core/RangeConstraintManager.cpp
   27                       const llvm::APSInt &Lower, const llvm::APSInt &Upper,
   27                       const llvm::APSInt &Lower, const llvm::APSInt &Upper,
   63 const llvm::APSInt &RangeSet::getMinValue() const {
   68 bool RangeSet::pin(llvm::APSInt &Lower, llvm::APSInt &Upper) const {
   68 bool RangeSet::pin(llvm::APSInt &Lower, llvm::APSInt &Upper) const {
  157                              llvm::APSInt Lower, llvm::APSInt Upper) const {
  157                              llvm::APSInt Lower, llvm::APSInt Upper) const {
  200     const llvm::APSInt &from = i->From(), &to = i->To();
  201     const llvm::APSInt &newTo = (from.isMinSignedValue() ?
  209       const llvm::APSInt &newFrom = newRanges.begin()->From();
  213       const llvm::APSInt &newFrom = BV.getValue(- to);
  259   const llvm::APSInt *getSymVal(ProgramStateRef State,
  273                               const llvm::APSInt &V,
  274                               const llvm::APSInt &Adjustment) override;
  277                               const llvm::APSInt &V,
  278                               const llvm::APSInt &Adjustment) override;
  281                               const llvm::APSInt &V,
  282                               const llvm::APSInt &Adjustment) override;
  285                               const llvm::APSInt &V,
  286                               const llvm::APSInt &Adjustment) override;
  289                               const llvm::APSInt &V,
  290                               const llvm::APSInt &Adjustment) override;
  293                               const llvm::APSInt &V,
  294                               const llvm::APSInt &Adjustment) override;
  297       ProgramStateRef State, SymbolRef Sym, const llvm::APSInt &From,
  298       const llvm::APSInt &To, const llvm::APSInt &Adjustment) override;
  298       const llvm::APSInt &To, const llvm::APSInt &Adjustment) override;
  301       ProgramStateRef State, SymbolRef Sym, const llvm::APSInt &From,
  302       const llvm::APSInt &To, const llvm::APSInt &Adjustment) override;
  302       const llvm::APSInt &To, const llvm::APSInt &Adjustment) override;
  312                          const llvm::APSInt &Int,
  313                          const llvm::APSInt &Adjustment);
  315                          const llvm::APSInt &Int,
  316                          const llvm::APSInt &Adjustment);
  318                          const llvm::APSInt &Int,
  319                          const llvm::APSInt &Adjustment);
  321                          const llvm::APSInt &Int,
  322                          const llvm::APSInt &Adjustment);
  324                          const llvm::APSInt &Int,
  325                          const llvm::APSInt &Adjustment);
  391   if (const llvm::APSInt *Value = Ranges->getConcreteValue())
  396   llvm::APSInt Zero = IntType.getZeroValue();
  406 const llvm::APSInt *RangeConstraintManager::getSymVal(ProgramStateRef St,
  458   const llvm::APSInt &RHS = SIE->getRHS();
  459   const llvm::APSInt &Zero = BV.getAPSIntType(T).getZeroValue();
  555                                     const llvm::APSInt &Int,
  556                                     const llvm::APSInt &Adjustment) {
  562   llvm::APSInt Lower = AdjustmentType.convert(Int) - Adjustment;
  563   llvm::APSInt Upper = Lower;
  575                                     const llvm::APSInt &Int,
  576                                     const llvm::APSInt &Adjustment) {
  583   llvm::APSInt AdjInt = AdjustmentType.convert(Int) - Adjustment;
  590                                                const llvm::APSInt &Int,
  591                                                const llvm::APSInt &Adjustment) {
  604   llvm::APSInt ComparisonVal = AdjustmentType.convert(Int);
  605   llvm::APSInt Min = AdjustmentType.getMinValue();
  609   llvm::APSInt Lower = Min - Adjustment;
  610   llvm::APSInt Upper = ComparisonVal - Adjustment;
  618                                     const llvm::APSInt &Int,
  619                                     const llvm::APSInt &Adjustment) {
  626                                                const llvm::APSInt &Int,
  627                                                const llvm::APSInt &Adjustment) {
  640   llvm::APSInt ComparisonVal = AdjustmentType.convert(Int);
  641   llvm::APSInt Max = AdjustmentType.getMaxValue();
  645   llvm::APSInt Lower = ComparisonVal - Adjustment;
  646   llvm::APSInt Upper = Max - Adjustment;
  654                                     const llvm::APSInt &Int,
  655                                     const llvm::APSInt &Adjustment) {
  662                                                const llvm::APSInt &Int,
  663                                                const llvm::APSInt &Adjustment) {
  676   llvm::APSInt ComparisonVal = AdjustmentType.convert(Int);
  677   llvm::APSInt Min = AdjustmentType.getMinValue();
  681   llvm::APSInt Max = AdjustmentType.getMaxValue();
  682   llvm::APSInt Lower = ComparisonVal - Adjustment;
  683   llvm::APSInt Upper = Max - Adjustment;
  690                                     const llvm::APSInt &Int,
  691                                     const llvm::APSInt &Adjustment) {
  698       const llvm::APSInt &Int,
  699       const llvm::APSInt &Adjustment) {
  712   llvm::APSInt ComparisonVal = AdjustmentType.convert(Int);
  713   llvm::APSInt Max = AdjustmentType.getMaxValue();
  717   llvm::APSInt Min = AdjustmentType.getMinValue();
  718   llvm::APSInt Lower = Min - Adjustment;
  719   llvm::APSInt Upper = ComparisonVal - Adjustment;
  726                                                const llvm::APSInt &Int,
  727                                                const llvm::APSInt &Adjustment) {
  733                                     const llvm::APSInt &Int,
  734                                     const llvm::APSInt &Adjustment) {
  740     ProgramStateRef State, SymbolRef Sym, const llvm::APSInt &From,
  741     const llvm::APSInt &To, const llvm::APSInt &Adjustment) {
  741     const llvm::APSInt &To, const llvm::APSInt &Adjustment) {
  750     ProgramStateRef State, SymbolRef Sym, const llvm::APSInt &From,
  751     const llvm::APSInt &To, const llvm::APSInt &Adjustment) {
  751     const llvm::APSInt &To, const llvm::APSInt &Adjustment) {
tools/clang/lib/StaticAnalyzer/Core/RangedConstraintManager.cpp
   60       const llvm::APSInt &Zero = getBasicVals().getValue(0, DiffTy);
   74     ProgramStateRef State, SymbolRef Sym, const llvm::APSInt &From,
   75     const llvm::APSInt &To, bool InRange) {
   80   llvm::APSInt Adjustment = WraparoundType.getZeroValue();
   86   llvm::APSInt ConvertedFrom = ComparisonType.convert(From);
   87   llvm::APSInt ConvertedTo = ComparisonType.convert(To);
  112   const llvm::APSInt &Zero = BVF.getValue(0, T);
  122                                                       const llvm::APSInt &Int) {
  148   llvm::APSInt Adjustment = WraparoundType.getZeroValue();
  153   llvm::APSInt ConvertedInt = ComparisonType.convert(Int);
  185                                                 llvm::APSInt &Adjustment) {
tools/clang/lib/StaticAnalyzer/Core/RegionStore.cpp
  882     const llvm::APSInt &ExtentInt = ExtentCI->getValue();
 1398   const llvm::APSInt *SizeInt = svalBuilder.getKnownValue(state, Size);
tools/clang/lib/StaticAnalyzer/Core/SValBuilder.cpp
   68                                 const llvm::APSInt& rhs, QualType type) {
   77 NonLoc SValBuilder::makeNonLoc(const llvm::APSInt& lhs,
  105     const llvm::APSInt& I = CI->getValue();
  502   llvm::APSInt ToTypeMax = ToType.getMaxValue();
tools/clang/lib/StaticAnalyzer/Core/SVals.cpp
  245   const llvm::APSInt* X =
  273   const llvm::APSInt *X = BasicVals.evalAPSInt(Op, getValue(), R.getValue());
  316       const auto &Value = castAs<nonloc::ConcreteInt>().getValue();
tools/clang/lib/StaticAnalyzer/Core/SimpleConstraintManager.cpp
   95     ProgramStateRef State, NonLoc Value, const llvm::APSInt &From,
   96     const llvm::APSInt &To, bool InRange) {
  122     const llvm::APSInt &IntVal = Value.castAs<nonloc::ConcreteInt>().getValue();
tools/clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp
   47   const llvm::APSInt *getKnownValue(ProgramStateRef state, SVal V) override;
   54                      const llvm::APSInt &RHS, QualType resultTy);
  121   llvm::APSInt i = val.castAs<nonloc::ConcreteInt>().getValue();
  180     llvm::APSInt i = val.castAs<loc::ConcreteInt>().getValue();
  219                                     const llvm::APSInt &RHS,
  272       const llvm::APSInt &Result = BasicVals.Convert(resultTy, RHS);
  286   const llvm::APSInt *ConvertedRHS = &RHS;
  314                          llvm::APSInt Bound, ProgramStateRef State) {
  340   llvm::APSInt Max = AT.getMaxValue() / AT.getValue(4), Min = -Max;
  346 static bool isWithinConstantOverflowBounds(llvm::APSInt I) {
  351   llvm::APSInt Max = AT.getMaxValue() / AT.getValue(4), Min = -Max;
  355 static std::pair<SymbolRef, llvm::APSInt>
  373                                    SymbolRef LSym, llvm::APSInt LInt,
  374                                    SymbolRef RSym, llvm::APSInt RInt) {
  403   llvm::APSInt ResultInt;
  430   const llvm::APSInt &PersistentResultInt = BV.getValue(ResultInt);
  439                             SymbolRef Sym, llvm::APSInt Int, QualType Ty) {
  493   llvm::APSInt LInt, RInt;
  573           llvm::APSInt i = rhs.castAs<nonloc::ConcreteInt>().getValue();
  598       llvm::APSInt LHSValue = lhs.castAs<nonloc::ConcreteInt>().getValue();
  601       if (const llvm::APSInt *KnownRHSValue = getKnownValue(state, rhs)) {
  602         llvm::APSInt RHSValue = *KnownRHSValue;
  617         const llvm::APSInt *Result =
  714         if (const llvm::APSInt *RHSValue = getKnownValue(state, rhs)) {
  728               const llvm::APSInt &first = IntType.convert(symIntExpr->getRHS());
  729               const llvm::APSInt &second = IntType.convert(*RHSValue);
  731               const llvm::APSInt *newRHS;
  761       if (const llvm::APSInt *RHSValue = getKnownValue(state, rhs))
  890       const llvm::APSInt &lVal = lhs.castAs<loc::ConcreteInt>().getValue();
 1139       const llvm::APSInt &leftI = lhsInt->getValue();
 1141       llvm::APSInt rightI(rhsInt->getValue(), /* isUnsigned */ true);
 1148       llvm::APSInt Multiplicand(rightI.getBitWidth(), /* isUnsigned */ true);
 1210 const llvm::APSInt *SimpleSValBuilder::getKnownValue(ProgramStateRef state,
 1263       if (const llvm::APSInt *I =
tools/clang/lib/StaticAnalyzer/Core/Store.cpp
  515   const llvm::APSInt &BaseIdxI =
  529   const llvm::APSInt& OffI = Offset.castAs<nonloc::ConcreteInt>().getValue();
tools/clang/lib/StaticAnalyzer/Core/SymbolManager.cpp
  271                                                const llvm::APSInt& v,
  287 const IntSymExpr *SymbolManager::getIntSymExpr(const llvm::APSInt& lhs,
tools/clang/tools/extra/clang-tidy/abseil/DurationRewriter.cpp
   27 static llvm::Optional<llvm::APSInt>
   34     return llvm::APSInt::get(static_cast<int64_t>(Value));
  210     if (llvm::Optional<llvm::APSInt> IntValue = truncateIfIntegral(*LitFloat))
tools/clang/tools/extra/clang-tidy/bugprone/SuspiciousEnumUsageCheck.cpp
   37   llvm::APSInt MinVal;
   38   llvm::APSInt MaxVal;
   44           return llvm::APSInt::compareValues(E1->getInitVal(),
   60   return llvm::APSInt::compareValues(Range1.MaxVal, Range2.MinVal) < 0 ||
   61          llvm::APSInt::compareValues(Range2.MaxVal, Range1.MinVal) < 0;
   65   llvm::APSInt Val = EnumConst->getInitVal();
tools/clang/tools/extra/clang-tidy/bugprone/SuspiciousMemsetUsageCheck.cpp
   83     llvm::APSInt NumValue = EVResult.Val.getInt();
  111       llvm::APSInt Value1 = EVResult.Val.getInt();
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/NarrowingConversionsCheck.cpp
   73   llvm::APSInt IntegerConstant;
   83                                         const Expr &E, llvm::APSInt &Value) {
  104     return llvm::APSInt::compareValues(Lower, From.Lower) <= 0 &&
  105            llvm::APSInt::compareValues(Upper, From.Upper) >= 0;
  108   bool Contains(const llvm::APSInt &Value) const {
  109     return llvm::APSInt::compareValues(Lower, Value) <= 0 &&
  110            llvm::APSInt::compareValues(Upper, Value) >= 0;
  113   llvm::APSInt Lower;
  114   llvm::APSInt Upper;
  133     llvm::APSInt UpperValue(PrecisionBits + 2, /*isUnsigned*/ false);
  135     llvm::APSInt LowerValue(PrecisionBits + 2, /*isUnsigned*/ false);
  143   return {llvm::APSInt::getMinValue(TypeSize, IsUnsignedInteger),
  144           llvm::APSInt::getMaxValue(TypeSize, IsUnsignedInteger)};
  156                                const llvm::APSInt &IntegerConstant,
  162 static llvm::SmallString<64> getValueAsString(const llvm::APSInt &Value,
  194     const llvm::APSInt &Value) {
  203     const llvm::APSInt &Value, const uint64_t HexBits) {
  248   llvm::APSInt IntegerConstant;
  273   llvm::APSInt IntegerConstant;
  296   llvm::APSInt Result = llvm::APSInt(DestWidth, !DestSigned);
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/NarrowingConversionsCheck.h
   39                                  const Expr &Rhs, const llvm::APSInt &Value);
   43                                             const llvm::APSInt &Value,
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProBoundsConstantArrayIndexCheck.cpp
   74   llvm::APSInt Index;
tools/clang/tools/extra/clang-tidy/misc/RedundantExpressionCheck.cpp
   44 static bool incrementWithoutOverflow(const APSInt &Value, APSInt &Result) {
   44 static bool incrementWithoutOverflow(const APSInt &Value, APSInt &Result) {
  140                                 const APSInt &ValueLHS,
  142                                 const APSInt &ValueRHS) {
  146   if (APSInt::compareValues(ValueLHS, ValueRHS) == 0)
  150   APSInt ValueLHS_plus1;
  154          APSInt::compareValues(ValueLHS_plus1, ValueRHS) == 0;
  160                                const APSInt &ValueLHS,
  162                                const APSInt &ValueRHS) {
  167   if (APSInt::compareValues(ValueLHS, ValueRHS) == 0) {
  192   APSInt ValueLHS_plus1;
  195       APSInt::compareValues(ValueLHS_plus1, ValueRHS) == 0)
  204                                    const APSInt &ValueLHS,
  206                                    const APSInt &ValueRHS) {
  211   if (APSInt::compareValues(ValueLHS, ValueRHS) == 0) {
  231   APSInt ValueLHS_plus1;
  234       APSInt::compareValues(ValueLHS_plus1, ValueRHS) == 0)
  251                                const APSInt &ValueLHS,
  253                                const APSInt &ValueRHS) {
  254   int Comparison = APSInt::compareValues(ValueLHS, ValueRHS);
  286                                            APSInt &Value) {
  346                                         StringRef Id, APSInt &Value,
  355                                         StringRef Id, APSInt &Value) {
  402                                  const Expr *&Symbol, APSInt &Value) {
  496     APSInt &Value, const Expr *&ConstExpr) {
  769   APSInt LhsValue, RhsValue;
  810       if ((Opcode == BO_EQ && APSInt::compareValues(LhsValue, RhsValue) == 0) ||
  811           (Opcode == BO_NE && APSInt::compareValues(LhsValue, RhsValue) != 0)) {
  815                   APSInt::compareValues(LhsValue, RhsValue) != 0) ||
  817                   APSInt::compareValues(LhsValue, RhsValue) == 0)) {
  825 static bool exprEvaluatesToZero(BinaryOperatorKind Opcode, APSInt Value) {
  830                                               APSInt Value) {
  834 static bool exprEvaluatesToSymbolic(BinaryOperatorKind Opcode, APSInt Value) {
  846     APSInt LhsValue, RhsValue;
  876     APSInt Value;
  925     APSInt LhsValue, RhsValue;
  935     if (APSInt::compareValues(LhsValue, RhsValue) > 0) {
 1040     APSInt ShiftingValue;
 1047     APSInt AndValue;
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertUtils.cpp
  441   llvm::APSInt ConditionSize;
  444   llvm::APSInt ArraySize(ConstType->getSize());
  445   return llvm::APSInt::isSameValue(ConditionSize, ArraySize);
tools/clang/tools/libclang/CIndex.cpp
 3817     auto& val = ER.Val.getInt();
tools/clang/unittests/Frontend/FixedPointString.cpp
   14   FixedPointValueToString(S, APSInt::get(320), 7);
   18   FixedPointValueToString(S, APSInt::get(0), 7);
   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);
   84   FixedPointValueToString(S, APSInt::get(-320), 7);
   88   FixedPointValueToString(S, APSInt::get(-64), 7);
   93   FixedPointValueToString(S, APSInt::getMinValue(16, /*Unsigned=*/false), 7);
   98   FixedPointValueToString(S, APSInt::getMinValue(32, /*Unsigned=*/false), 15);
  103   FixedPointValueToString(S, APSInt::getMinValue(64, /*Unsigned=*/false), 31);
tools/lldb/include/lldb/Symbol/ClangASTContext.h
  729                          const llvm::APSInt &value)> const &callback) override;
  869       const llvm::APSInt &value);
tools/lldb/include/lldb/Symbol/CompilerType.h
  271                          const llvm::APSInt &value)> const &callback) const;
  387   llvm::APSInt value;
tools/lldb/include/lldb/Symbol/Type.h
  477                      ConstString name, const llvm::APSInt &value);
  496   llvm::APSInt m_value;
tools/lldb/include/lldb/Symbol/TypeSystem.h
  304                          const llvm::APSInt &value)> const &callback) {}
tools/lldb/source/Plugins/SymbolFile/NativePDB/DWARFLocationExpression.cpp
  222     TypeIndex underlying_ti, TpiStream &tpi, const llvm::APSInt &constant,
tools/lldb/source/Plugins/SymbolFile/NativePDB/DWARFLocationExpression.h
   40     const llvm::APSInt &constant, lldb::ModuleSP module);
tools/lldb/source/Symbol/ClangASTContext.cpp
 1717       llvm::APSInt bit_width_apsint;
 5789                        const llvm::APSInt &value)> const &callback) {
 5943                 llvm::APSInt bitfield_apsint = result.Val.getInt();
 6004                 llvm::APSInt bitfield_apsint = result.Val.getInt();
 8863     const llvm::APSInt &value) {
 8914   llvm::APSInt value(enum_value_bit_size, is_signed);
tools/lldb/source/Symbol/CompilerType.cpp
  528                        const llvm::APSInt &value)> const &callback) const {
tools/lldb/source/Symbol/CxxModuleHandler.cpp
  239       llvm::APSInt integral = arg.getAsIntegral();
tools/lldb/source/Symbol/Type.cpp
 1100                                        const llvm::APSInt &value)
tools/lldb/unittests/Symbol/TestClangASTContext.cpp
  401   llvm::APSInt arg(llvm::APInt(8, 47));
tools/llvm-cov/RenderingSupport.h
   43 inline raw_ostream &operator<<(const ColoredRawOstream &OS, T &&Value) {
unittests/ADT/APFloatTest.cpp
 1053   APSInt result(5, /*isUnsigned=*/true);
unittests/ADT/APSIntTest.cpp
   17   APSInt A(32, true);
   20   APSInt B(128, false);
   24   APSInt C(B);
   29   APSInt D(std::move(Wide));
   81   auto U = [](uint64_t V) { return APSInt::getUnsigned(V); };
   82   auto S = [](int64_t V) { return APSInt::get(V); };
  163   APSInt False(APInt(1, 0), false);
  164   APSInt True(APInt(1, 1), false);
  165   APSInt CharMin(APInt(8, 0), false);
  166   APSInt CharSmall(APInt(8, 0x13), false);
  167   APSInt CharBoundaryUnder(APInt(8, 0x7f), false);
  168   APSInt CharBoundaryOver(APInt(8, 0x80), false);
  169   APSInt CharLarge(APInt(8, 0xd9), false);
  170   APSInt CharMax(APInt(8, 0xff), false);
  206   APSInt False(APInt(1, 0));
  207   APSInt True(APInt(1, 1));
  208   APSInt CharMin(APInt(8, 0));
  209   APSInt CharSmall(APInt(8, 0x13));
  210   APSInt CharBoundaryUnder(APInt(8, 0x7f));
  211   APSInt CharBoundaryOver(APInt(8, 0x80));
  212   APSInt CharLarge(APInt(8, 0xd9));
  213   APSInt CharMax(APInt(8, 0xff));
unittests/IR/PatternMatch.cpp
  520   Value *CIntMin = IRB.getInt64(APSInt::getSignedMinValue(64).getSExtValue());
usr/include/c++/7.4.0/bits/alloc_traits.h
  387       using allocator_type = allocator<_Tp>;
  389       using value_type = _Tp;
  392       using pointer = _Tp*;
  395       using const_pointer = const _Tp*;
  474 	construct(allocator_type& __a, _Up* __p, _Args&&... __args)
  474 	construct(allocator_type& __a, _Up* __p, _Args&&... __args)
  486 	destroy(allocator_type& __a, _Up* __p)
usr/include/c++/7.4.0/bits/allocator.h
  108     class allocator: public __allocator_base<_Tp>
  113       typedef _Tp*       pointer;
  114       typedef const _Tp* const_pointer;
  115       typedef _Tp&       reference;
  116       typedef const _Tp& const_reference;
  117       typedef _Tp        value_type;
  137 	allocator(const allocator<_Tp1>&) throw() { }
usr/include/c++/7.4.0/bits/move.h
   46     inline _GLIBCXX_CONSTEXPR _Tp*
   47     __addressof(_Tp& __r) _GLIBCXX_NOEXCEPT
   72     constexpr _Tp&&
   73     forward(typename std::remove_reference<_Tp>::type& __t) noexcept
   83     constexpr _Tp&&
   84     forward(typename std::remove_reference<_Tp>::type&& __t) noexcept
   98     move(_Tp&& __t) noexcept
  104     : public __and_<__not_<is_nothrow_move_constructible<_Tp>>,
  105                     is_copy_constructible<_Tp>>::type { };
  136     inline _GLIBCXX17_CONSTEXPR _Tp*
  137     addressof(_Tp& __r) noexcept
  143     const _Tp* addressof(const _Tp&&) = delete;
  143     const _Tp* addressof(const _Tp&&) = delete;
  184     typename enable_if<__and_<__not_<__is_tuple_like<_Tp>>,
  185 			      is_move_constructible<_Tp>,
  186 			      is_move_assignable<_Tp>>::value>::type
  187     swap(_Tp& __a, _Tp& __b)
  187     swap(_Tp& __a, _Tp& __b)
  198       _Tp __tmp = _GLIBCXX_MOVE(__a);
usr/include/c++/7.4.0/bits/std_function.h
  299       _M_invoke(const _Any_data& __functor, _ArgTypes&&... __args)
  628       using _Invoker_type = _Res (*)(const _Any_data&, _ArgTypes&&...);
usr/include/c++/7.4.0/bits/stl_algo.h
 2024 		const _Tp& __val, _Compare __comp)
 2040 		  const _Tp& __val, _Compare __comp)
 2108 		const _Tp& __val, _Compare __comp)
usr/include/c++/7.4.0/bits/stl_algobase.h
  947 		  const _Tp& __val, _Compare __comp)
usr/include/c++/7.4.0/bits/stl_construct.h
   74     _Construct(_T1* __p, _Args&&... __args)
   74     _Construct(_T1* __p, _Args&&... __args)
   75     { ::new(static_cast<void*>(__p)) _T1(std::forward<_Args>(__args)...); }
   75     { ::new(static_cast<void*>(__p)) _T1(std::forward<_Args>(__args)...); }
   97     _Destroy(_Tp* __pointer)
  204 	     allocator<_Tp>&)
usr/include/c++/7.4.0/bits/stl_function.h
  121       typedef _Arg1 	first_argument_type; 
  124       typedef _Arg2 	second_argument_type;
  127       typedef _Result 	result_type;
  167     struct plus : public binary_function<_Tp, _Tp, _Tp>
  167     struct plus : public binary_function<_Tp, _Tp, _Tp>
  167     struct plus : public binary_function<_Tp, _Tp, _Tp>
  170       _Tp
  171       operator()(const _Tp& __x, const _Tp& __y) const
  171       operator()(const _Tp& __x, const _Tp& __y) const
  177     struct minus : public binary_function<_Tp, _Tp, _Tp>
  177     struct minus : public binary_function<_Tp, _Tp, _Tp>
  177     struct minus : public binary_function<_Tp, _Tp, _Tp>
  180       _Tp
  181       operator()(const _Tp& __x, const _Tp& __y) const
  181       operator()(const _Tp& __x, const _Tp& __y) const
  187     struct multiplies : public binary_function<_Tp, _Tp, _Tp>
  187     struct multiplies : public binary_function<_Tp, _Tp, _Tp>
  187     struct multiplies : public binary_function<_Tp, _Tp, _Tp>
  190       _Tp
  191       operator()(const _Tp& __x, const _Tp& __y) const
  191       operator()(const _Tp& __x, const _Tp& __y) const
usr/include/c++/7.4.0/bits/stl_iterator.h
 1224     __make_move_if_noexcept_iterator(_Tp* __i)
usr/include/c++/7.4.0/bits/stl_iterator_base_types.h
  181       typedef _Tp                         value_type;
  183       typedef _Tp*                        pointer;
  184       typedef _Tp&                        reference;
  192       typedef _Tp                         value_type;
  194       typedef const _Tp*                  pointer;
  195       typedef const _Tp&                  reference;
usr/include/c++/7.4.0/bits/stl_pair.h
  100 	return __and_<is_constructible<_T1, const _U1&>,
  100 	return __and_<is_constructible<_T1, const _U1&>,
  101 		      is_constructible<_T2, const _U2&>>::value;
  101 		      is_constructible<_T2, const _U2&>>::value;
  107 	return __and_<is_convertible<const _U1&, _T1>,
  107 	return __and_<is_convertible<const _U1&, _T1>,
  108 		      is_convertible<const _U2&, _T2>>::value;
  108 		      is_convertible<const _U2&, _T2>>::value;
  114 	return __and_<is_constructible<_T1, _U1&&>,
  114 	return __and_<is_constructible<_T1, _U1&&>,
  115 		      is_constructible<_T2, _U2&&>>::value;
  115 		      is_constructible<_T2, _U2&&>>::value;
  121 	return __and_<is_convertible<_U1&&, _T1>,
  121 	return __and_<is_convertible<_U1&&, _T1>,
  122 		      is_convertible<_U2&&, _T2>>::value;
  122 		      is_convertible<_U2&&, _T2>>::value;
  128 	using __do_converts = __and_<is_convertible<const _U1&, _T1>,
  128 	using __do_converts = __and_<is_convertible<const _U1&, _T1>,
  129 				  is_convertible<_U2&&, _T2>>;
  129 				  is_convertible<_U2&&, _T2>>;
  133 	return __and_<is_constructible<_T1, const _U1&>,
  133 	return __and_<is_constructible<_T1, const _U1&>,
  134 		      is_constructible<_T2, _U2&&>,
  134 		      is_constructible<_T2, _U2&&>,
  142 	using __do_converts = __and_<is_convertible<_U1&&, _T1>,
  142 	using __do_converts = __and_<is_convertible<_U1&&, _T1>,
  143 				  is_convertible<const _U2&, _T2>>;
  143 				  is_convertible<const _U2&, _T2>>;
  147 	return __and_<is_constructible<_T1, _U1&&>,
  147 	return __and_<is_constructible<_T1, _U1&&>,
  148 		      is_constructible<_T2, const _U2&&>,
  148 		      is_constructible<_T2, const _U2&&>,
  209     : private __pair_base<_T1, _T2>
  209     : private __pair_base<_T1, _T2>
  211       typedef _T1 first_type;    /// @c first_type is the first bound type
  212       typedef _T2 second_type;   /// @c second_type is the second bound type
  214       _T1 first;                 /// @c first is a copy of the first object
  215       _T2 second;                /// @c second is a copy of the second object
  252       using _PCCP = _PCC<true, _T1, _T2>;
  252       using _PCCP = _PCC<true, _T1, _T2>;
  260       constexpr pair(const _T1& __a, const _T2& __b)
  260       constexpr pair(const _T1& __a, const _T2& __b)
  269       explicit constexpr pair(const _T1& __a, const _T2& __b)
  269       explicit constexpr pair(const _T1& __a, const _T2& __b)
  283 			    _T1, _T2>;
  283 			    _T1, _T2>;
  291         constexpr pair(const pair<_U1, _U2>& __p)
  311        constexpr pair(_U1&& __x, const _T2& __y)
  311        constexpr pair(_U1&& __x, const _T2& __y)
  318        explicit constexpr pair(_U1&& __x, const _T2& __y)
  325        constexpr pair(const _T1& __x, _U2&& __y)
  325        constexpr pair(const _T1& __x, _U2&& __y)
  332        explicit pair(const _T1& __x, _U2&& __y)
  341 	constexpr pair(_U1&& __x, _U2&& __y)
  341 	constexpr pair(_U1&& __x, _U2&& __y)
  342 	: first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) { }
  360 	constexpr pair(pair<_U1, _U2>&& __p)
  362 	  second(std::forward<_U2>(__p.second)) { }
  379 		__and_<is_copy_assignable<_T1>,
  380 		       is_copy_assignable<_T2>>::value,
  390 		__and_<is_move_assignable<_T1>,
  391 		       is_move_assignable<_T2>>::value,
  402       typename enable_if<__and_<is_assignable<_T1&, const _U1&>,
  402       typename enable_if<__and_<is_assignable<_T1&, const _U1&>,
  403 				is_assignable<_T2&, const _U2&>>::value,
  403 				is_assignable<_T2&, const _U2&>>::value,
  405 	operator=(const pair<_U1, _U2>& __p)
  405 	operator=(const pair<_U1, _U2>& __p)
  413       typename enable_if<__and_<is_assignable<_T1&, _U1&&>,
  413       typename enable_if<__and_<is_assignable<_T1&, _U1&&>,
  414 				is_assignable<_T2&, _U2&&>>::value,
  414 				is_assignable<_T2&, _U2&&>>::value,
  416 	operator=(pair<_U1, _U2>&& __p)
  416 	operator=(pair<_U1, _U2>&& __p)
  454     operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
  454     operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
  495     swap(pair<_T1, _T2>& __x, pair<_T1, _T2>& __y)
  495     swap(pair<_T1, _T2>& __x, pair<_T1, _T2>& __y)
  523                    typename __decay_and_strip<_T2>::__type>
  524     make_pair(_T1&& __x, _T2&& __y)
  524     make_pair(_T1&& __x, _T2&& __y)
  527       typedef typename __decay_and_strip<_T2>::__type __ds_type2;
  529       return __pair_type(std::forward<_T1>(__x), std::forward<_T2>(__y));
usr/include/c++/7.4.0/bits/stl_uninitialized.h
  144 		      const _Tp& __x)
  182 		       const _Tp& __x)
  288 			   _ForwardIterator __result, allocator<_Tp>&)
usr/include/c++/7.4.0/bits/stl_vector.h
   77 	rebind<_Tp>::other _Tp_alloc_type;
  216     class vector : protected _Vector_base<_Tp, _Alloc>
  227       typedef _Vector_base<_Tp, _Alloc>			_Base;
  232       typedef _Tp					value_type;
  919       _Tp*
  923       const _Tp*
 1483 	_M_realloc_insert(iterator __position, _Args&&... __args);
usr/include/c++/7.4.0/ext/alloc_traits.h
  117       { typedef typename _Base_type::template rebind_alloc<_Tp> other; };
usr/include/c++/7.4.0/ext/new_allocator.h
   63       typedef _Tp*       pointer;
   64       typedef const _Tp* const_pointer;
   65       typedef _Tp&       reference;
   66       typedef const _Tp& const_reference;
   67       typedef _Tp        value_type;
  111 	return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp)));
  130       { return size_t(-1) / sizeof(_Tp); }
  135 	construct(_Up* __p, _Args&&... __args)
  135 	construct(_Up* __p, _Args&&... __args)
  136 	{ ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
  140 	destroy(_Up* __p) { __p->~_Up(); }
usr/include/c++/7.4.0/initializer_list
   50       typedef _E 		value_type;
   51       typedef const _E& 	reference;
   52       typedef const _E& 	const_reference;
   54       typedef const _E* 	iterator;
   55       typedef const _E* 	const_iterator;
usr/include/c++/7.4.0/tuple
  125       constexpr _Head_base(const _Head& __h)
  132         constexpr _Head_base(_UHead&& __h)
  159       static constexpr _Head&
  162       static constexpr const _Head&
  194       static constexpr _Head&
  197       static constexpr const _Head&
  210       constexpr _Tuple_impl(const _Head& __head, const _Tail&... __tail)
  210       constexpr _Tuple_impl(const _Head& __head, const _Tail&... __tail)
  216         constexpr _Tuple_impl(_UHead&& __head, _UTail&&... __tail)
  216         constexpr _Tuple_impl(_UHead&& __head, _UTail&&... __tail)
  242 	_Tuple_impl(allocator_arg_t __tag, const _Alloc& __a)
  248 		    const _Head& __head, const _Tail&... __tail)
  248 		    const _Head& __head, const _Tail&... __tail)
  350       static constexpr _Head&
  353       static constexpr const _Head&
  360       constexpr _Tuple_impl(const _Head& __head)
  365         constexpr _Tuple_impl(_UHead&& __head)
  390 		    const _Head& __head)
  473       return __and_<is_constructible<_Elements, const _UElements&>...>::value;
  479       return __and_<is_convertible<const _UElements&, _Elements>...>::value;
  485       return __and_<is_constructible<_Elements, _UElements&&>...>::value;
  491       return __and_<is_convertible<_UElements&&, _Elements>...>::value;
  947         constexpr tuple(const _T1& __a1, const _T2& __a2)
  947         constexpr tuple(const _T1& __a1, const _T2& __a2)
  956         explicit constexpr tuple(const _T1& __a1, const _T2& __a2)
  956         explicit constexpr tuple(const _T1& __a1, const _T2& __a2)
  971         constexpr tuple(_U1&& __a1, _U2&& __a2)
  971         constexpr tuple(_U1&& __a1, _U2&& __a2)
 1066 	tuple(allocator_arg_t __tag, const _Alloc& __a)
 1078 	      const _T1& __a1, const _T2& __a2)
 1078 	      const _T1& __a1, const _T2& __a2)
 1090 	      const _T1& __a1, const _T2& __a2)
 1090 	      const _T1& __a1, const _T2& __a2)
 1241         operator=(const pair<_U1, _U2>& __in)
 1241         operator=(const pair<_U1, _U2>& __in)
 1250         operator=(pair<_U1, _U2>&& __in)
 1250         operator=(pair<_U1, _U2>&& __in)
 1252 	  this->_M_head(*this) = std::forward<_U1>(__in.first);
 1253 	  this->_M_tail(*this)._M_head(*this) = std::forward<_U2>(__in.second);
 1588     constexpr tuple<_Elements&...>
 1589     tie(_Elements&... __args) noexcept
usr/include/c++/7.4.0/type_traits
  215     : public __is_void_helper<typename remove_cv<_Tp>::type>::type
  326     : public __is_integral_helper<typename remove_cv<_Tp>::type>::type
  354     : public __is_floating_point_helper<typename remove_cv<_Tp>::type>::type
  381     : public __is_pointer_helper<typename remove_cv<_Tp>::type>::type
  567     : public __is_null_pointer_helper<typename remove_cv<_Tp>::type>::type
  581     : public __or_<is_lvalue_reference<_Tp>,
  582                    is_rvalue_reference<_Tp>>::type
  588     : public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type
  588     : public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type
  601     : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
  601     : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
  602                           is_void<_Tp>>>::type
  611     : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
  611     : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
  611     : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
  612                    is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type
  612                    is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type
  631     : public __is_member_pointer_helper<typename remove_cv<_Tp>::type>::type
  638     : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
  638     : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
  777     : public __and_<is_array<_Tp>, __not_<extent<_Tp>>>
  777     : public __and_<is_array<_Tp>, __not_<extent<_Tp>>>
  798       typedef decltype(__test<_Tp>(0)) type;
  811                remove_all_extents<_Tp>::type>::type
  825     : public __is_destructible_safe<_Tp>::type
  984       typedef decltype(__test<_Tp, _Arg>(0)) type;
  989     : public __and_<is_destructible<_Tp>,
  990                     __is_direct_constructible_impl<_Tp, _Arg>>
 1072 			 __is_direct_constructible_ref_cast<_Tp, _Arg>,
 1073 			 __is_direct_constructible_new_safe<_Tp, _Arg>
 1079     : public __is_direct_constructible_new<_Tp, _Arg>::type
 1119     : public __is_direct_constructible<_Tp, _Arg>
 1130     : public __is_constructible_impl<_Tp, _Args...>::type
 1142     : public is_constructible<_Tp, const _Tp&>
 1142     : public is_constructible<_Tp, const _Tp&>
 1148     : public __is_copy_constructible_impl<_Tp>
 1160     : public is_constructible<_Tp, _Tp&&>
 1160     : public is_constructible<_Tp, _Tp&&>
 1166     : public __is_move_constructible_impl<_Tp>
 1215     : public __and_<is_constructible<_Tp, _Args...>,
 1216 		    __is_nt_constructible_impl<_Tp, _Args...>>
 1246     : public is_nothrow_constructible<_Tp, _Tp&&>
 1246     : public is_nothrow_constructible<_Tp, _Tp&&>
 1252     : public __is_nothrow_move_constructible_impl<_Tp>
 1286     : public is_assignable<_Tp&, const _Tp&>
 1286     : public is_assignable<_Tp&, const _Tp&>
 1292     : public __is_copy_assignable_impl<_Tp>
 1304     : public is_assignable<_Tp&, _Tp&&>
 1304     : public is_assignable<_Tp&, _Tp&&>
 1310     : public __is_move_assignable_impl<_Tp>
 1352     : public is_nothrow_assignable<_Tp&, _Tp&&>
 1352     : public is_nothrow_assignable<_Tp&, _Tp&&>
 1358     : public __is_nt_move_assignable_impl<_Tp>
 1526 	static void __test_aux(_To1);
 1538       typedef decltype(__test<_From, _To>(0)) type;
 1545     : public __is_convertible_helper<_From, _To>::type
 1554     { typedef _Tp     type; };
 1558     { typedef _Tp     type; };
 1563     { typedef _Tp     type; };
 1574       remove_const<typename remove_volatile<_Tp>::type>::type     type;
 1629     { typedef _Tp   type; };
 1633     { typedef _Tp   type; };
 1659     { typedef _Tp&&   type; };
 1955     { typedef _Tp     type; };
 2104     { typedef typename remove_cv<_Up>::type __type; };
 2118       typedef typename remove_reference<_Tp>::type __remove_type;
 2131       typedef _Tp __type;
 2144 	typename decay<_Tp>::type>::__type __type;
 2574       typename remove_reference<_Tp>::type>::type>::type
 2579     typename enable_if<__and_<__not_<__is_tuple_like<_Tp>>,
 2580 			      is_move_constructible<_Tp>,
 2581 			      is_move_assignable<_Tp>>::value>::type
 2582     swap(_Tp&, _Tp&)
 2582     swap(_Tp&, _Tp&)
 2609           noexcept(swap(std::declval<_Tp&>(), std::declval<_Tp&>()))
 2609           noexcept(swap(std::declval<_Tp&>(), std::declval<_Tp&>()))
 2629       typedef decltype(__test<_Tp>(0)) type;
 2639     : public __is_nothrow_swappable_impl<_Tp>::type
utils/unittest/googletest/include/gtest/gtest-printers.h
  223 void DefaultPrintNonContainerTo(const T& value, ::std::ostream* os) {
  276   static ::std::string Format(const ToPrint& value) {
  351     const T1& value, const T2& /* other_operand */) {
  351     const T1& value, const T2& /* other_operand */) {
  352   return FormatForComparison<T1, T2>::Format(value);
  352   return FormatForComparison<T1, T2>::Format(value);
  366 void UniversalPrint(const T& value, ::std::ostream* os);
  373                     const C& container, ::std::ostream* os) {
  439                     const T& value, ::std::ostream* os) {
  455 void PrintTo(const T& value, ::std::ostream* os) {
  478   DefaultPrintTo(IsContainerTest<T>(0), is_pointer<T>(), value, os);
  699   static void Print(const T& value, ::std::ostream* os) {
  784   static void Print(const T& value, ::std::ostream* os) {
  856   typedef T T1;
  983   internal::UniversalTersePrinter<T>::Print(value, &ss);
utils/unittest/googletest/include/gtest/gtest.h
 1377                                    const T1& lhs, const T2& rhs) {
 1377                                    const T1& lhs, const T2& rhs) {
 1389                             const T1& lhs,
 1390                             const T2& rhs) {
 1419                                  const T1& lhs,
 1420                                  const T2& rhs) {
utils/unittest/googletest/include/gtest/internal/custom/raw-ostream.h
   35 auto printable(const T &V) -> decltype(StreamSwitch<T>::printable(V)) {
   35 auto printable(const T &V) -> decltype(StreamSwitch<T>::printable(V)) {
   37   return StreamSwitch<T>::printable(V);
   54   const T& V;
   55   friend std::ostream &operator<<(std::ostream &S, const RawStreamProxy<T> &V) {
   69   static const RawStreamProxy<T> printable(const T &V) { return {V}; }
   69   static const RawStreamProxy<T> printable(const T &V) { return {V}; }
utils/unittest/googletest/include/gtest/internal/gtest-internal.h
   94 ::std::string PrintToString(const T& value);