/external/llvm/unittests/ADT/ |
APSIntTest.cpp | 1 //===- llvm/unittest/ADT/APSIntTest.cpp - APSInt unit tests ---------------===// 10 #include "llvm/ADT/APSInt.h" 18 APSInt A(32, true); 21 APSInt B(128, false); 25 APSInt C(B); 30 APSInt D(std::move(Wide)); 34 A = APSInt(64, true); 45 EXPECT_TRUE(APSInt::get(7).isSigned()); 46 EXPECT_EQ(64u, APSInt::get(7).getBitWidth()); 47 EXPECT_EQ(7u, APSInt::get(7).getZExtValue()) [all...] |
/external/swiftshader/third_party/LLVM/include/llvm/ADT/ |
APSInt.h | 1 //===-- llvm/ADT/APSInt.h - Arbitrary Precision Signed Int -----*- C++ -*--===// 10 // This file implements the APSInt class, which is a simple class that 22 class APSInt : public APInt { 26 explicit APSInt() {} 28 /// APSInt ctor - Create an APSInt with the specified width, default to 30 explicit APSInt(uint32_t BitWidth, bool isUnsigned = true) 33 explicit APSInt(const APInt &I, bool isUnsigned = true) 36 APSInt &operator=(const APSInt &RHS) [all...] |
/external/llvm/include/llvm/ADT/ |
APSInt.h | 1 //===-- llvm/ADT/APSInt.h - Arbitrary Precision Signed Int -----*- C++ -*--===// 10 // This file implements the APSInt class, which is a simple class that 22 class APSInt : public APInt { 27 explicit APSInt() : IsUnsigned(false) {} 29 /// APSInt ctor - Create an APSInt with the specified width, default to 31 explicit APSInt(uint32_t BitWidth, bool isUnsigned = true) 34 explicit APSInt(APInt I, bool isUnsigned = true) 37 /// Construct an APSInt from a string representation. 41 /// constructed APSInt is determined automatically [all...] |
/prebuilts/clang/host/darwin-x86/clang-3957855/prebuilt_include/llvm/include/llvm/ADT/ |
APSInt.h | 1 //===-- llvm/ADT/APSInt.h - Arbitrary Precision Signed Int -----*- C++ -*--===// 10 // This file implements the APSInt class, which is a simple class that 22 class LLVM_NODISCARD APSInt : public APInt { 27 explicit APSInt() : IsUnsigned(false) {} 29 /// APSInt ctor - Create an APSInt with the specified width, default to 31 explicit APSInt(uint32_t BitWidth, bool isUnsigned = true) 34 explicit APSInt(APInt I, bool isUnsigned = true) 37 /// Construct an APSInt from a string representation. 41 /// constructed APSInt is determined automatically [all...] |
/prebuilts/clang/host/darwin-x86/clang-3960126/prebuilt_include/llvm/include/llvm/ADT/ |
APSInt.h | 1 //===-- llvm/ADT/APSInt.h - Arbitrary Precision Signed Int -----*- C++ -*--===// 10 // This file implements the APSInt class, which is a simple class that 22 class LLVM_NODISCARD APSInt : public APInt { 27 explicit APSInt() : IsUnsigned(false) {} 29 /// APSInt ctor - Create an APSInt with the specified width, default to 31 explicit APSInt(uint32_t BitWidth, bool isUnsigned = true) 34 explicit APSInt(APInt I, bool isUnsigned = true) 37 /// Construct an APSInt from a string representation. 41 /// constructed APSInt is determined automatically [all...] |
/prebuilts/clang/host/darwin-x86/clang-3977809/prebuilt_include/llvm/include/llvm/ADT/ |
APSInt.h | 1 //===-- llvm/ADT/APSInt.h - Arbitrary Precision Signed Int -----*- C++ -*--===// 10 // This file implements the APSInt class, which is a simple class that 22 class LLVM_NODISCARD APSInt : public APInt { 27 explicit APSInt() : IsUnsigned(false) {} 29 /// APSInt ctor - Create an APSInt with the specified width, default to 31 explicit APSInt(uint32_t BitWidth, bool isUnsigned = true) 34 explicit APSInt(APInt I, bool isUnsigned = true) 37 /// Construct an APSInt from a string representation. 41 /// constructed APSInt is determined automatically [all...] |
/prebuilts/clang/host/darwin-x86/clang-4053586/prebuilt_include/llvm/include/llvm/ADT/ |
APSInt.h | 1 //===-- llvm/ADT/APSInt.h - Arbitrary Precision Signed Int -----*- C++ -*--===// 10 // This file implements the APSInt class, which is a simple class that 22 class LLVM_NODISCARD APSInt : public APInt { 27 explicit APSInt() : IsUnsigned(false) {} 29 /// APSInt ctor - Create an APSInt with the specified width, default to 31 explicit APSInt(uint32_t BitWidth, bool isUnsigned = true) 34 explicit APSInt(APInt I, bool isUnsigned = true) 37 /// Construct an APSInt from a string representation. 41 /// constructed APSInt is determined automatically [all...] |
/prebuilts/clang/host/linux-x86/clang-3957855/prebuilt_include/llvm/include/llvm/ADT/ |
APSInt.h | 1 //===-- llvm/ADT/APSInt.h - Arbitrary Precision Signed Int -----*- C++ -*--===// 10 // This file implements the APSInt class, which is a simple class that 22 class LLVM_NODISCARD APSInt : public APInt { 27 explicit APSInt() : IsUnsigned(false) {} 29 /// APSInt ctor - Create an APSInt with the specified width, default to 31 explicit APSInt(uint32_t BitWidth, bool isUnsigned = true) 34 explicit APSInt(APInt I, bool isUnsigned = true) 37 /// Construct an APSInt from a string representation. 41 /// constructed APSInt is determined automatically [all...] |
/prebuilts/clang/host/linux-x86/clang-3960126/prebuilt_include/llvm/include/llvm/ADT/ |
APSInt.h | 1 //===-- llvm/ADT/APSInt.h - Arbitrary Precision Signed Int -----*- C++ -*--===// 10 // This file implements the APSInt class, which is a simple class that 22 class LLVM_NODISCARD APSInt : public APInt { 27 explicit APSInt() : IsUnsigned(false) {} 29 /// APSInt ctor - Create an APSInt with the specified width, default to 31 explicit APSInt(uint32_t BitWidth, bool isUnsigned = true) 34 explicit APSInt(APInt I, bool isUnsigned = true) 37 /// Construct an APSInt from a string representation. 41 /// constructed APSInt is determined automatically [all...] |
/prebuilts/clang/host/linux-x86/clang-3977809/prebuilt_include/llvm/include/llvm/ADT/ |
APSInt.h | 1 //===-- llvm/ADT/APSInt.h - Arbitrary Precision Signed Int -----*- C++ -*--===// 10 // This file implements the APSInt class, which is a simple class that 22 class LLVM_NODISCARD APSInt : public APInt { 27 explicit APSInt() : IsUnsigned(false) {} 29 /// APSInt ctor - Create an APSInt with the specified width, default to 31 explicit APSInt(uint32_t BitWidth, bool isUnsigned = true) 34 explicit APSInt(APInt I, bool isUnsigned = true) 37 /// Construct an APSInt from a string representation. 41 /// constructed APSInt is determined automatically [all...] |
/prebuilts/clang/host/linux-x86/clang-4053586/prebuilt_include/llvm/include/llvm/ADT/ |
APSInt.h | 1 //===-- llvm/ADT/APSInt.h - Arbitrary Precision Signed Int -----*- C++ -*--===// 10 // This file implements the APSInt class, which is a simple class that 22 class LLVM_NODISCARD APSInt : public APInt { 27 explicit APSInt() : IsUnsigned(false) {} 29 /// APSInt ctor - Create an APSInt with the specified width, default to 31 explicit APSInt(uint32_t BitWidth, bool isUnsigned = true) 34 explicit APSInt(APInt I, bool isUnsigned = true) 37 /// Construct an APSInt from a string representation. 41 /// constructed APSInt is determined automatically [all...] |
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
APSIntType.h | 13 #include "llvm/ADT/APSInt.h" 19 /// \brief A record of the "type" of an APSInt, used for conversions. 28 /* implicit */ APSIntType(const llvm::APSInt &Value) 34 /// \brief Convert a given APSInt, in place, to match this type. 38 void apply(llvm::APSInt &Value) const { 45 /// Convert and return a new APSInt with the given value, but this 49 llvm::APSInt convert(const llvm::APSInt &Value) const LLVM_READONLY { 50 llvm::APSInt Result(Value, Value.isUnsigned()); 56 llvm::APSInt getZeroValue() const LLVM_READONLY [all...] |
BasicValueFactory.h | 11 // of APSInt objects and symbolic constraints used by ExprEngine 63 typedef llvm::FoldingSet<llvm::FoldingSetNodeWrapper<llvm::APSInt> > 79 const llvm::APSInt& getValue(uint64_t X, unsigned BitWidth, bool isUnsigned); 90 const llvm::APSInt& getValue(const llvm::APSInt& X); 91 const llvm::APSInt& getValue(const llvm::APInt& X, bool isUnsigned); 92 const llvm::APSInt& getValue(uint64_t X, QualType T); 94 /// Returns the type of the APSInt used to store values of the given QualType. 101 /// Convert - Create a new persistent APSInt with the same value as 'From' 103 const llvm::APSInt &Convert(const llvm::APSInt& To [all...] |
/prebuilts/clang/host/darwin-x86/clang-3957855/prebuilt_include/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
APSIntType.h | 13 #include "llvm/ADT/APSInt.h" 19 /// \brief A record of the "type" of an APSInt, used for conversions. 28 /* implicit */ APSIntType(const llvm::APSInt &Value) 34 /// \brief Convert a given APSInt, in place, to match this type. 38 void apply(llvm::APSInt &Value) const { 45 /// Convert and return a new APSInt with the given value, but this 49 llvm::APSInt convert(const llvm::APSInt &Value) const LLVM_READONLY { 50 llvm::APSInt Result(Value, Value.isUnsigned()); 56 llvm::APSInt getZeroValue() const LLVM_READONLY [all...] |
/prebuilts/clang/host/darwin-x86/clang-3960126/prebuilt_include/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
APSIntType.h | 13 #include "llvm/ADT/APSInt.h" 19 /// \brief A record of the "type" of an APSInt, used for conversions. 28 /* implicit */ APSIntType(const llvm::APSInt &Value) 34 /// \brief Convert a given APSInt, in place, to match this type. 38 void apply(llvm::APSInt &Value) const { 45 /// Convert and return a new APSInt with the given value, but this 49 llvm::APSInt convert(const llvm::APSInt &Value) const LLVM_READONLY { 50 llvm::APSInt Result(Value, Value.isUnsigned()); 56 llvm::APSInt getZeroValue() const LLVM_READONLY [all...] |
/prebuilts/clang/host/darwin-x86/clang-3977809/prebuilt_include/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
APSIntType.h | 13 #include "llvm/ADT/APSInt.h" 19 /// \brief A record of the "type" of an APSInt, used for conversions. 28 /* implicit */ APSIntType(const llvm::APSInt &Value) 34 /// \brief Convert a given APSInt, in place, to match this type. 38 void apply(llvm::APSInt &Value) const { 45 /// Convert and return a new APSInt with the given value, but this 49 llvm::APSInt convert(const llvm::APSInt &Value) const LLVM_READONLY { 50 llvm::APSInt Result(Value, Value.isUnsigned()); 56 llvm::APSInt getZeroValue() const LLVM_READONLY [all...] |
/prebuilts/clang/host/darwin-x86/clang-4053586/prebuilt_include/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
APSIntType.h | 13 #include "llvm/ADT/APSInt.h" 19 /// \brief A record of the "type" of an APSInt, used for conversions. 28 /* implicit */ APSIntType(const llvm::APSInt &Value) 34 /// \brief Convert a given APSInt, in place, to match this type. 38 void apply(llvm::APSInt &Value) const { 45 /// Convert and return a new APSInt with the given value, but this 49 llvm::APSInt convert(const llvm::APSInt &Value) const LLVM_READONLY { 50 llvm::APSInt Result(Value, Value.isUnsigned()); 56 llvm::APSInt getZeroValue() const LLVM_READONLY [all...] |
/prebuilts/clang/host/linux-x86/clang-3957855/prebuilt_include/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
APSIntType.h | 13 #include "llvm/ADT/APSInt.h" 19 /// \brief A record of the "type" of an APSInt, used for conversions. 28 /* implicit */ APSIntType(const llvm::APSInt &Value) 34 /// \brief Convert a given APSInt, in place, to match this type. 38 void apply(llvm::APSInt &Value) const { 45 /// Convert and return a new APSInt with the given value, but this 49 llvm::APSInt convert(const llvm::APSInt &Value) const LLVM_READONLY { 50 llvm::APSInt Result(Value, Value.isUnsigned()); 56 llvm::APSInt getZeroValue() const LLVM_READONLY [all...] |
/prebuilts/clang/host/linux-x86/clang-3960126/prebuilt_include/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
APSIntType.h | 13 #include "llvm/ADT/APSInt.h" 19 /// \brief A record of the "type" of an APSInt, used for conversions. 28 /* implicit */ APSIntType(const llvm::APSInt &Value) 34 /// \brief Convert a given APSInt, in place, to match this type. 38 void apply(llvm::APSInt &Value) const { 45 /// Convert and return a new APSInt with the given value, but this 49 llvm::APSInt convert(const llvm::APSInt &Value) const LLVM_READONLY { 50 llvm::APSInt Result(Value, Value.isUnsigned()); 56 llvm::APSInt getZeroValue() const LLVM_READONLY [all...] |
/prebuilts/clang/host/linux-x86/clang-3977809/prebuilt_include/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
APSIntType.h | 13 #include "llvm/ADT/APSInt.h" 19 /// \brief A record of the "type" of an APSInt, used for conversions. 28 /* implicit */ APSIntType(const llvm::APSInt &Value) 34 /// \brief Convert a given APSInt, in place, to match this type. 38 void apply(llvm::APSInt &Value) const { 45 /// Convert and return a new APSInt with the given value, but this 49 llvm::APSInt convert(const llvm::APSInt &Value) const LLVM_READONLY { 50 llvm::APSInt Result(Value, Value.isUnsigned()); 56 llvm::APSInt getZeroValue() const LLVM_READONLY [all...] |
/prebuilts/clang/host/linux-x86/clang-4053586/prebuilt_include/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
APSIntType.h | 13 #include "llvm/ADT/APSInt.h" 19 /// \brief A record of the "type" of an APSInt, used for conversions. 28 /* implicit */ APSIntType(const llvm::APSInt &Value) 34 /// \brief Convert a given APSInt, in place, to match this type. 38 void apply(llvm::APSInt &Value) const { 45 /// Convert and return a new APSInt with the given value, but this 49 llvm::APSInt convert(const llvm::APSInt &Value) const LLVM_READONLY { 50 llvm::APSInt Result(Value, Value.isUnsigned()); 56 llvm::APSInt getZeroValue() const LLVM_READONLY [all...] |
/external/clang/test/SemaCXX/ |
unused.cpp | 10 class APSInt : public APInt { 13 APSInt &operator=(const APSInt &RHS); 16 APSInt& APSInt::operator=(const APSInt &RHS) {
|
/external/clang/lib/StaticAnalyzer/Core/ |
SimpleConstraintManager.h | 43 const llvm::APSInt &From, 44 const llvm::APSInt &To, 50 const llvm::APSInt& Int); 54 const llvm::APSInt &From, 55 const llvm::APSInt &To, 68 const llvm::APSInt& V, 69 const llvm::APSInt& Adjustment) = 0; 72 const llvm::APSInt& V, 73 const llvm::APSInt& Adjustment) = 0; 76 const llvm::APSInt& V [all...] |
/external/llvm/lib/Support/ |
APSInt.cpp | 1 //===-- llvm/ADT/APSInt.cpp - Arbitrary Precision Signed Int ---*- C++ -*--===// 10 // This file implements the APSInt class, which is a simple class that 15 #include "llvm/ADT/APSInt.h" 21 APSInt::APSInt(StringRef Str) { 31 *this = APSInt(Tmp, /*IsUnsigned=*/false); 37 *this = APSInt(Tmp, /*IsUnsigned=*/true); 40 void APSInt::Profile(FoldingSetNodeID& ID) const {
|
/external/swiftshader/third_party/LLVM/lib/Support/ |
APSInt.cpp | 1 //===-- llvm/ADT/APSInt.cpp - Arbitrary Precision Signed Int ---*- C++ -*--===// 10 // This file implements the APSInt class, which is a simple class that 15 #include "llvm/ADT/APSInt.h" 20 void APSInt::Profile(FoldingSetNodeID& ID) const {
|