LLVM API Documentation
#include <APSInt.h>
Inheritance diagram for llvm::APSInt:


Public Member Functions | |
| APSInt () | |
| Default constructor that creates an uninitialized APInt. | |
| APSInt (uint32_t BitWidth, bool isUnsigned=true) | |
| APSInt (const APInt &I, bool isUnsigned=true) | |
| APSInt & | operator= (const APSInt &RHS) |
| APSInt & | operator= (const APInt &RHS) |
| APSInt & | operator= (uint64_t RHS) |
| Assignment operator. | |
| bool | isSigned () const |
| bool | isUnsigned () const |
| void | setIsUnsigned (bool Val) |
| void | setIsSigned (bool Val) |
| void | toString (SmallVectorImpl< char > &Str, unsigned Radix=10) const |
| toString - Append this APSInt to the specified SmallString. | |
| std::string | toString (unsigned Radix) const |
| APSInt & | extend (uint32_t width) |
| APSInt & | extOrTrunc (uint32_t width) |
| const APSInt & | operator%= (const APSInt &RHS) |
| const APSInt & | operator/= (const APSInt &RHS) |
| APSInt | operator% (const APSInt &RHS) const |
| APSInt | operator/ (const APSInt &RHS) const |
| APSInt | operator>> (unsigned Amt) const |
| APSInt & | operator>>= (unsigned Amt) |
| bool | operator< (const APSInt &RHS) const |
| bool | operator> (const APSInt &RHS) const |
| bool | operator<= (const APSInt &RHS) const |
| bool | operator>= (const APSInt &RHS) const |
| APSInt | operator<< (unsigned Bits) const |
| APSInt & | operator<<= (unsigned Amt) |
| APSInt & | operator++ () |
| Prefix increment operator. | |
| APSInt & | operator-- () |
| Prefix decrement operator. | |
| APSInt | operator++ (int) |
| APSInt | operator-- (int) |
| Postfix decrement operator. | |
| APSInt | operator- () const |
| Unary negation operator. | |
| APSInt & | operator+= (const APSInt &RHS) |
| APSInt & | operator-= (const APSInt &RHS) |
| APSInt & | operator *= (const APSInt &RHS) |
| APSInt & | operator &= (const APSInt &RHS) |
| APSInt & | operator|= (const APSInt &RHS) |
| APSInt & | operator^= (const APSInt &RHS) |
| APSInt | operator & (const APSInt &RHS) const |
| APSInt | And (const APSInt &RHS) const |
| APSInt | operator| (const APSInt &RHS) const |
| APSInt | Or (const APSInt &RHS) const |
| APSInt | operator^ (const APSInt &RHS) const |
| APSInt | Xor (const APSInt &RHS) const |
| APSInt | operator * (const APSInt &RHS) const |
| APSInt | operator+ (const APSInt &RHS) const |
| APSInt | operator- (const APSInt &RHS) const |
| APSInt | operator~ () const |
| Unary bitwise complement operator. | |
| void | Profile (FoldingSetNodeID &ID) const |
| void | toString (SmallVectorImpl< char > &Str, unsigned Radix, bool Signed) const |
| std::string | toString (unsigned Radix, bool Signed) const |
|
|
Default constructor that creates an uninitialized APInt.
|
|
||||||||||||
|
APSInt ctor - Create an APSInt with the specified width, default to unsigned. |
|
||||||||||||
|
|
|
|
Definition at line 200 of file APSInt.h. References llvm::operator &(). |
|
|
|
|
|
|
|
|
Definition at line 55 of file APSInt.h. Referenced by llvm::operator<<(). |
|
|
|
|
|
Definition at line 196 of file APSInt.h. References IsUnsigned. |
|
|
Definition at line 180 of file APSInt.h. References IsUnsigned. |
|
|
Definition at line 221 of file APSInt.h. References IsUnsigned. |
|
|
Definition at line 175 of file APSInt.h. References IsUnsigned. |
|
|
Definition at line 103 of file APSInt.h. References IsUnsigned, llvm::APIntOps::srem(), and llvm::APIntOps::urem(). |
|
|
Definition at line 87 of file APSInt.h. References IsUnsigned, llvm::APIntOps::srem(), and llvm::APIntOps::urem(). |
|
|
Definition at line 225 of file APSInt.h. References IsUnsigned. |
|
|
Reimplemented from llvm::APInt. |
|
|
Prefix increment operator.
Reimplemented from llvm::APInt. |
|
|
Definition at line 165 of file APSInt.h. References IsUnsigned. |
|
|
Definition at line 229 of file APSInt.h. References IsUnsigned. |
|
|
Unary negation operator. Negates *this using two's complement logic.
Reimplemented from llvm::APInt. |
|
|
Postfix decrement operator.
Reimplemented from llvm::APInt. |
|
|
Prefix decrement operator.
Reimplemented from llvm::APInt. |
|
|
Definition at line 170 of file APSInt.h. References IsUnsigned. |
|
|
Definition at line 107 of file APSInt.h. References IsUnsigned, llvm::APIntOps::sdiv(), and llvm::APIntOps::udiv(). |
|
|
Definition at line 95 of file APSInt.h. References IsUnsigned, llvm::APIntOps::sdiv(), and llvm::APIntOps::udiv(). |
|
|
Definition at line 120 of file APSInt.h. References IsUnsigned. |
|
|
Reimplemented from llvm::APInt. |
|
|
|
|
|
Definition at line 128 of file APSInt.h. References IsUnsigned. |
|
|
Assignment operator. The RHS value is assigned to *this. If the significant bits in RHS exceed the bit width, the excess bits are truncated. If the bit width is larger than 64, the value is zero filled in the unspecified high order bits.
Reimplemented from llvm::APInt. |
|
|
Reimplemented from llvm::APInt. |
|
|
Definition at line 36 of file APSInt.h. References IsUnsigned. |
|
|
Definition at line 124 of file APSInt.h. References IsUnsigned. |
|
|
Definition at line 132 of file APSInt.h. References IsUnsigned. |
|
|
Definition at line 112 of file APSInt.h. References llvm::APIntOps::ashr(), and llvm::APIntOps::lshr(). |
|
|
|
|
|
Definition at line 213 of file APSInt.h. References IsUnsigned. |
|
|
Definition at line 190 of file APSInt.h. References IsUnsigned. |
|
|
Definition at line 204 of file APSInt.h. References IsUnsigned. |
|
|
Definition at line 185 of file APSInt.h. References IsUnsigned. |
|
|
Unary bitwise complement operator. Performs a bitwise complement operation on this APInt.
Reimplemented from llvm::APInt. |
|
|
Definition at line 208 of file APSInt.h. References llvm::operator|(). |
|
|
Profile - Used to insert APSInt objects, or objects that contain APSInt objects, into FoldingSets. Reimplemented from llvm::APInt. Definition at line 20 of file APSInt.cpp. References llvm::FoldingSetNodeID::AddInteger(), and llvm::APInt::Profile(). |
|
|
|
|
|
|
|
||||||||||||
|
toString - This returns the APInt as a std::string. Note that this is an inefficient method. It is better to pass in a SmallVector/SmallString to the methods above to avoid thrashing the heap for the string. |
|
||||||||||||||||
|
toString - Converts an APInt to a string and append it to Str. Str is commonly a SmallString. |
|
|
toString - Converts an APInt to a std::string. This is an inefficient method, your should prefer passing in a SmallString instead. |
|
||||||||||||
|
toString - Append this APSInt to the specified SmallString.
|
|
|
Definition at line 217 of file APSInt.h. References llvm::operator^(). |