llvm::APIntOps Namespace Reference

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.

Function Documentation

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]

Performs bitwise AND operation on APInt LHS and APInt RHS.

Bitwise AND function for APInt.

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]
Returns:
a byte-swapped representation of the specified APInt Value.
APInt llvm::APIntOps::GreatestCommonDivisor ( const APInt Val1,
const APInt Val2 
)

GreatestCommonDivisor - This function returns the greatest common divisor of the two APInt values using Euclid's algorithm.

Returns:
the greatest common divisor of Val1 and Val2 Compute GCD of two APInt values.
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]
Returns:
true if the argument APInt value is a sequence of ones starting at the least significant bit with the remainder zero.
bool llvm::APIntOps::isShiftedMask ( unsigned  numBits,
const APInt &  APIVal 
) [inline]
Returns:
true if the argument APInt value contains a sequence of ones with the remainder zero.
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]
Returns:
the floor log base 2 of the specified APInt value.
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]

Performs bitwise OR operation on APInt LHS and APInt RHS.

Bitwise OR function for APInt.

double llvm::APIntOps::RoundAPIntToDouble ( const APInt &  APIVal  )  [inline]

Treats the APInt as an unsigned value for conversion purposes.

Converts the given APInt to a double value.

float llvm::APIntOps::RoundAPIntToFloat ( const APInt &  APIVal  )  [inline]

Converts the given APInt to a float vlalue.

APInt llvm::APIntOps::RoundDoubleToAPInt ( double  Double,
unsigned  width 
)

RoundDoubleToAPInt - This function convert a double value to an APInt value.

Converts the given double value into a APInt.

APInt llvm::APIntOps::RoundFloatToAPInt ( float  Float,
unsigned  width 
) [inline]

RoundFloatToAPInt - Converts a float value into an APInt value.

Converts a float value into a APInt.

double llvm::APIntOps::RoundSignedAPIntToDouble ( const APInt &  APIVal  )  [inline]

Treats the APInt as a signed value for conversion purposes.

Converts the given APInt to a double value.

float llvm::APIntOps::RoundSignedAPIntToFloat ( const APInt &  APIVal  )  [inline]

Treast the APInt as a signed value for conversion purposes.

Converts the given APInt to a float value.

APInt llvm::APIntOps::sdiv ( const APInt &  LHS,
const APInt &  RHS 
) [inline]

Signed divide APInt LHS by APInt RHS.

Signed division function for APInt.

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]

Unsigned divide APInt LHS by APInt RHS.

Unsigned division function for APInt.

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.

APInt llvm::APIntOps::Xor ( const APInt &  LHS,
const APInt &  RHS 
) [inline]

Performs bitwise XOR operation on APInt.

Bitwise XOR function for APInt.


Generated on 2 Nov 2013 for Galois by  doxygen 1.6.1