llvm::APInt::getLoBits

Compute an APInt containing numBits low bits from this APInt.

Synopsis

Declared in <llvm/ADT/APInt.h>

APInt
getLoBits(unsigned int numBits) const;

Description

Get an APInt with the same BitWidth as this APInt, just zero mask the high bits.

Return Value

the low "numBits" bits of this APInt.

Parameters

NameDescription
numBitsNumber of low bits to extract