LLVM API Documentation
#include <APSInt.h>
llvm::APSInt::APSInt | ( | ) | [inline, explicit] |
Default constructor that creates an uninitialized APInt.
Definition at line 26 of file APSInt.h.
Referenced by extend(), extOrTrunc(), getMaxValue(), getMinValue(), isSameValue(), operator%(), operator&(), operator*(), operator+(), operator++(), operator-(), operator--(), operator/(), operator<<(), operator==(), operator>>(), operator^(), operator|(), operator~(), and trunc().
llvm::APSInt::APSInt | ( | uint32_t | BitWidth, |
bool | isUnsigned = true |
||
) | [inline, explicit] |
llvm::APSInt::APSInt | ( | APInt | I, |
bool | isUnsigned = true |
||
) | [inline, explicit] |
APSInt LLVM_ATTRIBUTE_UNUSED_RESULT llvm::APSInt::And | ( | const APSInt & | RHS | ) | const [inline] |
Definition at line 209 of file APSInt.h.
References operator&().
APSInt LLVM_ATTRIBUTE_UNUSED_RESULT llvm::APSInt::extend | ( | uint32_t | width | ) | const [inline] |
Definition at line 69 of file APSInt.h.
References APSInt(), llvm::APInt::sext(), and llvm::APInt::zext().
Referenced by isSameValue().
APSInt LLVM_ATTRIBUTE_UNUSED_RESULT llvm::APSInt::extOrTrunc | ( | uint32_t | width | ) | const [inline] |
Definition at line 76 of file APSInt.h.
References APSInt(), llvm::APInt::sextOrTrunc(), and llvm::APInt::zextOrTrunc().
static APSInt llvm::APSInt::getMaxValue | ( | uint32_t | numBits, |
bool | Unsigned | ||
) | [inline, static] |
getMaxValue - Return the APSInt representing the maximum integer value with the given bit width and signedness.
Definition at line 248 of file APSInt.h.
References APSInt(), llvm::APInt::getMaxValue(), and llvm::APInt::getSignedMaxValue().
static APSInt llvm::APSInt::getMinValue | ( | uint32_t | numBits, |
bool | Unsigned | ||
) | [inline, static] |
getMinValue - Return the APSInt representing the minimum integer value with the given bit width and signedness.
Definition at line 255 of file APSInt.h.
References APSInt(), llvm::APInt::getMinValue(), and llvm::APInt::getSignedMinValue().
Determine if two APSInts have the same value, zero- or sign-extending as needed.
Definition at line 262 of file APSInt.h.
References APSInt(), extend(), llvm::APInt::getBitWidth(), llvm::APInt::isNegative(), and isSigned().
Referenced by operator==().
bool llvm::APSInt::isSigned | ( | ) | const [inline] |
Definition at line 49 of file APSInt.h.
Referenced by llvm::APFloat::convertToInteger(), isSameValue(), llvm::operator<<(), and toString().
bool llvm::APSInt::isUnsigned | ( | ) | const [inline] |
bool llvm::APSInt::operator!= | ( | const APSInt & | RHS | ) | const [inline] |
bool llvm::APSInt::operator!= | ( | int64_t | RHS | ) | const [inline] |
Definition at line 99 of file APSInt.h.
References APSInt(), llvm::APInt::srem(), and llvm::APInt::urem().
Definition at line 83 of file APSInt.h.
References llvm::APInt::srem(), and llvm::APInt::urem().
APSInt& llvm::APSInt::operator++ | ( | ) | [inline] |
Prefix increment operator.
Prefix increment operator. Increments the APInt by one.
Reimplemented from llvm::APInt.
Postfix increment operator.
Reimplemented from llvm::APInt.
Definition at line 165 of file APSInt.h.
References APSInt().
APSInt llvm::APSInt::operator- | ( | ) | const [inline] |
Unary negation operator.
Negates *this using two's complement logic.
Reimplemented from llvm::APInt.
Definition at line 171 of file APSInt.h.
References APSInt().
APSInt& llvm::APSInt::operator-- | ( | ) | [inline] |
Prefix decrement operator.
Prefix decrement operator. Decrements the APInt by one.
Reimplemented from llvm::APInt.
Postfix decrement operator.
Reimplemented from llvm::APInt.
Definition at line 168 of file APSInt.h.
References APSInt().
Definition at line 103 of file APSInt.h.
References APSInt(), llvm::APInt::sdiv(), and llvm::APInt::udiv().
Definition at line 91 of file APSInt.h.
References llvm::APInt::sdiv(), and llvm::APInt::udiv().
Definition at line 116 of file APSInt.h.
References llvm::APInt::slt(), and llvm::APInt::ult().
Left logical shift operator.
Shifts this APInt left by Bits
and returns the result.
Reimplemented from llvm::APInt.
Definition at line 149 of file APSInt.h.
References APSInt().
Left-shift assignment function.
Shifts *this left by shiftAmt and assigns the result to *this.
Reimplemented from llvm::APInt.
Definition at line 124 of file APSInt.h.
References llvm::APInt::sle(), and llvm::APInt::ule().
Definition at line 36 of file APSInt.h.
Referenced by operator=().
APSInt& llvm::APSInt::operator= | ( | uint64_t | RHS | ) | [inline] |
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.
Definition at line 42 of file APSInt.h.
References operator=().
Definition at line 132 of file APSInt.h.
References llvm::APInt::eq().
bool llvm::APSInt::operator== | ( | int64_t | RHS | ) | const [inline] |
Definition at line 136 of file APSInt.h.
References llvm::APInt::APInt(), APSInt(), and isSameValue().
Definition at line 120 of file APSInt.h.
References llvm::APInt::sgt(), and llvm::APInt::ugt().
Definition at line 128 of file APSInt.h.
References llvm::APInt::sge(), and llvm::APInt::uge().
Definition at line 108 of file APSInt.h.
References APSInt(), llvm::APInt::ashr(), and llvm::APInt::lshr().
APSInt llvm::APSInt::operator~ | ( | ) | const [inline] |
APSInt LLVM_ATTRIBUTE_UNUSED_RESULT llvm::APSInt::Or | ( | const APSInt & | RHS | ) | const [inline] |
Definition at line 217 of file APSInt.h.
References operator|().
void APSInt::Profile | ( | FoldingSetNodeID & | ID | ) | const |
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().
void llvm::APSInt::setIsSigned | ( | bool | Val | ) | [inline] |
void llvm::APSInt::setIsUnsigned | ( | bool | Val | ) | [inline] |
void llvm::APSInt::toString | ( | SmallVectorImpl< char > & | Str, |
unsigned | Radix = 10 |
||
) | const [inline] |
toString - Append this APSInt to the specified SmallString.
Definition at line 55 of file APSInt.h.
References isSigned().
Referenced by toString().
std::string llvm::APSInt::toString | ( | unsigned | Radix | ) | const [inline] |
toString - Converts an APInt to a std::string. This is an inefficient method; you should prefer passing in a SmallString instead.
Definition at line 60 of file APSInt.h.
References isSigned(), and toString().
APSInt LLVM_ATTRIBUTE_UNUSED_RESULT llvm::APSInt::trunc | ( | uint32_t | width | ) | const [inline] |
Definition at line 65 of file APSInt.h.
References APSInt(), and llvm::APInt::trunc().
APSInt LLVM_ATTRIBUTE_UNUSED_RESULT llvm::APSInt::Xor | ( | const APSInt & | RHS | ) | const [inline] |
Definition at line 226 of file APSInt.h.
References operator^().