Functions | |
| APInt | smin (const APInt &A, const APInt &B) |
| Determine the smaller of two APInts considered to be signed. | |
| APInt | smax (const APInt &A, const APInt &B) |
| Determine the larger of two APInts considered to be signed. | |
| APInt | umin (const APInt &A, const APInt &B) |
| Determine the smaller of two APInts considered to be signed. | |
| APInt | umax (const APInt &A, const APInt &B) |
| Determine the larger of two APInts considered to be unsigned. | |
| bool | isIntN (unsigned N, const APInt &APIVal) |
| Check if the specified APInt has a N-bits unsigned integer value. | |
| bool | isSignedIntN (unsigned N, const APInt &APIVal) |
| Check if the specified APInt has a N-bits signed integer value. | |
| bool | isMask (unsigned numBits, const APInt &APIVal) |
| bool | isShiftedMask (unsigned numBits, const APInt &APIVal) |
| APInt | byteSwap (const APInt &APIVal) |
| unsigned | logBase2 (const APInt &APIVal) |
| APInt | GreatestCommonDivisor (const APInt &Val1, const APInt &Val2) |
| GreatestCommonDivisor - This function returns the greatest common divisor of the two APInt values using Euclid's algorithm. | |
| double | RoundAPIntToDouble (const APInt &APIVal) |
| Treats the APInt as an unsigned value for conversion purposes. | |
| double | RoundSignedAPIntToDouble (const APInt &APIVal) |
| Treats the APInt as a signed value for conversion purposes. | |
| float | RoundAPIntToFloat (const APInt &APIVal) |
| Converts the given APInt to a float vlalue. | |
| float | RoundSignedAPIntToFloat (const APInt &APIVal) |
| Treast the APInt as a signed value for conversion purposes. | |
| APInt | RoundDoubleToAPInt (double Double, unsigned width) |
| RoundDoubleToAPInt - This function convert a double value to an APInt value. | |
| APInt | RoundFloatToAPInt (float Float, unsigned width) |
| RoundFloatToAPInt - Converts a float value into an APInt value. | |
| APInt | ashr (const APInt &LHS, unsigned shiftAmt) |
| Arithmetic right-shift the APInt by shiftAmt. | |
| APInt | lshr (const APInt &LHS, unsigned shiftAmt) |
| Logical right-shift the APInt by shiftAmt. | |
| APInt | shl (const APInt &LHS, unsigned shiftAmt) |
| Left-shift the APInt by shiftAmt. | |
| APInt | sdiv (const APInt &LHS, const APInt &RHS) |
| Signed divide APInt LHS by APInt RHS. | |
| APInt | udiv (const APInt &LHS, const APInt &RHS) |
| Unsigned divide APInt LHS by APInt RHS. | |
| APInt | srem (const APInt &LHS, const APInt &RHS) |
| Signed remainder operation on APInt. | |
| APInt | urem (const APInt &LHS, const APInt &RHS) |
| Unsigned remainder operation on APInt. | |
| APInt | mul (const APInt &LHS, const APInt &RHS) |
| Performs multiplication on APInt values. | |
| APInt | add (const APInt &LHS, const APInt &RHS) |
| Performs addition on APInt values. | |
| APInt | sub (const APInt &LHS, const APInt &RHS) |
| Performs subtraction on APInt values. | |
| APInt | And (const APInt &LHS, const APInt &RHS) |
| Performs bitwise AND operation on APInt LHS and APInt RHS. | |
| APInt | Or (const APInt &LHS, const APInt &RHS) |
| Performs bitwise OR operation on APInt LHS and APInt RHS. | |
| APInt | Xor (const APInt &LHS, const APInt &RHS) |
| Performs bitwise XOR operation on APInt. | |
| APInt | Not (const APInt &APIVal) |
| Performs a bitwise complement operation on APInt. | |
| APInt llvm::APIntOps::add | ( | const APInt & | LHS, | |
| const APInt & | RHS | |||
| ) | [inline] |
Performs addition on APInt values.
Function for addition operation.
| APInt llvm::APIntOps::And | ( | const APInt & | LHS, | |
| const APInt & | RHS | |||
| ) | [inline] |
| APInt llvm::APIntOps::ashr | ( | const APInt & | LHS, | |
| unsigned | shiftAmt | |||
| ) | [inline] |
Arithmetic right-shift the APInt by shiftAmt.
Arithmetic right-shift function.
| APInt llvm::APIntOps::byteSwap | ( | const APInt & | APIVal | ) | [inline] |
| bool llvm::APIntOps::isIntN | ( | unsigned | N, | |
| const APInt & | APIVal | |||
| ) | [inline] |
Check if the specified APInt has a N-bits unsigned integer value.
| bool llvm::APIntOps::isMask | ( | unsigned | numBits, | |
| const APInt & | APIVal | |||
| ) | [inline] |
| bool llvm::APIntOps::isShiftedMask | ( | unsigned | numBits, | |
| const APInt & | APIVal | |||
| ) | [inline] |
| bool llvm::APIntOps::isSignedIntN | ( | unsigned | N, | |
| const APInt & | APIVal | |||
| ) | [inline] |
Check if the specified APInt has a N-bits signed integer value.
| unsigned llvm::APIntOps::logBase2 | ( | const APInt & | APIVal | ) | [inline] |
| APInt llvm::APIntOps::lshr | ( | const APInt & | LHS, | |
| unsigned | shiftAmt | |||
| ) | [inline] |
Logical right-shift the APInt by shiftAmt.
Logical right-shift function.
| APInt llvm::APIntOps::mul | ( | const APInt & | LHS, | |
| const APInt & | RHS | |||
| ) | [inline] |
Performs multiplication on APInt values.
Function for multiplication operation.
| APInt llvm::APIntOps::Not | ( | const APInt & | APIVal | ) | [inline] |
Performs a bitwise complement operation on APInt.
Bitwise complement function.
| APInt llvm::APIntOps::Or | ( | const APInt & | LHS, | |
| const APInt & | RHS | |||
| ) | [inline] |
| double llvm::APIntOps::RoundAPIntToDouble | ( | const APInt & | APIVal | ) | [inline] |
| float llvm::APIntOps::RoundAPIntToFloat | ( | const APInt & | APIVal | ) | [inline] |
Converts the given APInt to a float vlalue.
| APInt llvm::APIntOps::RoundDoubleToAPInt | ( | double | Double, | |
| unsigned | width | |||
| ) |
| APInt llvm::APIntOps::RoundFloatToAPInt | ( | float | Float, | |
| unsigned | width | |||
| ) | [inline] |
| double llvm::APIntOps::RoundSignedAPIntToDouble | ( | const APInt & | APIVal | ) | [inline] |
| float llvm::APIntOps::RoundSignedAPIntToFloat | ( | const APInt & | APIVal | ) | [inline] |
| APInt llvm::APIntOps::sdiv | ( | const APInt & | LHS, | |
| const APInt & | RHS | |||
| ) | [inline] |
| APInt llvm::APIntOps::shl | ( | const APInt & | LHS, | |
| unsigned | shiftAmt | |||
| ) | [inline] |
Left-shift the APInt by shiftAmt.
Left-shift function.
| APInt llvm::APIntOps::smax | ( | const APInt & | A, | |
| const APInt & | B | |||
| ) | [inline] |
Determine the larger of two APInts considered to be signed.
| APInt llvm::APIntOps::smin | ( | const APInt & | A, | |
| const APInt & | B | |||
| ) | [inline] |
Determine the smaller of two APInts considered to be signed.
| APInt llvm::APIntOps::srem | ( | const APInt & | LHS, | |
| const APInt & | RHS | |||
| ) | [inline] |
Signed remainder operation on APInt.
Function for signed remainder operation.
| APInt llvm::APIntOps::sub | ( | const APInt & | LHS, | |
| const APInt & | RHS | |||
| ) | [inline] |
Performs subtraction on APInt values.
Function for subtraction operation.
| APInt llvm::APIntOps::udiv | ( | const APInt & | LHS, | |
| const APInt & | RHS | |||
| ) | [inline] |
| APInt llvm::APIntOps::umax | ( | const APInt & | A, | |
| const APInt & | B | |||
| ) | [inline] |
Determine the larger of two APInts considered to be unsigned.
| APInt llvm::APIntOps::umin | ( | const APInt & | A, | |
| const APInt & | B | |||
| ) | [inline] |
Determine the smaller of two APInts considered to be signed.
| APInt llvm::APIntOps::urem | ( | const APInt & | LHS, | |
| const APInt & | RHS | |||
| ) | [inline] |
Unsigned remainder operation on APInt.
Function for unsigned remainder operation.
1.6.1