Return an APInt with exactly one bit set in the result.
Declared in <llvm/ADT/APInt.h>
static
APInt
getOneBitSet(
unsigned int numBits,
unsigned int BitNo);
An APInt with only bit BitNo set.
| Name | Description |
|---|---|
| numBits | Bit width of the result |
| BitNo | Zero-based index of the bit to set |