Describes an element of a Bitfield. This type is then used with the Bitfield static member functions.
Synopsis
Declared in <llvm/ADT/Bitfields.h>
template<
typename T,
unsigned int Offset,
unsigned int Size,
T MaxValue = std::is_enum<T>::value ? T(0) : std::numeric_limits<T>::max()>
struct Element;
Type Aliases
Name |
Description |
Integer type used when packing and unpacking this element. |
|
Unpacked value type of this bitfield element. |
Static Data Members
Name |
Description |
Width of this field in bits. |
|
Index of the first bit occupied by this field. |
|
Index of the last bit occupied by this field. |
|
Index of the first bit after this field (start of a contiguous neighbor). |
|
Bit offset where this field begins in the packed storage word. |
Friends
Name |
Description |
Impl is where Bifield description and Storage are put together to interact with values. |
Template Parameters
Name |
Description |
T |
The type of the field once in unpacked form. |
Offset |
The position of the first bit. |
Size |
The size of the field. |
MaxValue |
For enums the maximum enum allowed. |
Created with MrDocs