llvm::APInt::APInt

Constructors

Synopses

Declared in <llvm/ADT/APInt.h>

Default constructor that creates an APInt with a 1-bit zero value.

explicit
APInt();
» more...

Copy constructor.

APInt(APInt const& that);
» more...

Move constructor.

APInt(APInt&& that);
» more...

Construct an APInt of numBits width, initialized as bigVal[].

APInt(
    unsigned int numBits,
    ArrayRef<uint64_t> bigVal);
» more...

Construct an APInt from a string representation.

APInt(
    unsigned int numBits,
    StringRef str,
    uint8_t radix);
» more...

Deleted constructor that previously took a raw word pointer.

APInt(
    unsigned int numBits,
    unsigned int numWords,
    uint64_t const bigVal[]) = delete;
» more...

Create a new APInt of numBits width, initialized as val.

APInt(
    unsigned int numBits,
    uint64_t val,
    bool isSigned = false,
    bool implicitTrunc = false);
» more...

Parameters

NameDescription
thatSource APInt to copy
numBitsthe bit width of the constructed APInt
bigVala sequence of words to form the initial value of the APInt
strthe string to be interpreted
radixthe radix to use for the conversion
numWordsNumber of words pointed to by bigVal
valthe initial value of the APInt
isSignedhow to treat signedness of val
implicitTruncallow implicit truncation of non-zero/sign bits of val beyond the range of numBits