Constructors
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...
| Name | Description |
|---|---|
| that | Source APInt to copy |
| numBits | the bit width of the constructed APInt |
| bigVal | a sequence of words to form the initial value of the APInt |
| str | the string to be interpreted |
| radix | the radix to use for the conversion |
| numWords | Number of words pointed to by bigVal |
| val | the initial value of the APInt |
| isSigned | how to treat signedness of val |
| implicitTrunc | allow implicit truncation of non-zero/sign bits of val beyond the range of numBits |