LLVM: llvm::Bitfield::Element< T, Offset, Size, MaxValue (original) (raw)
Describes an element of a Bitfield. More...
#include "[llvm/ADT/Bitfields.h](Bitfields%5F8h%5Fsource.html)"
| Public Types | |
|---|---|
| using | Type = T |
| using | IntegerType |
| Static Public Attributes | |
|---|---|
| static constexpr unsigned | Shift = Offset |
| static constexpr unsigned | Bits = Size |
| static constexpr unsigned | FirstBit = Offset |
| static constexpr unsigned | LastBit = Shift + Bits - 1 |
| static constexpr unsigned | NextBit = Shift + Bits |
| Friends | |
|---|---|
| template<typename, typename> | |
| struct | bitfields_details::Impl |
template<typename T, unsigned Offset, unsigned Size, T MaxValue = std::is_enum::value ? T(0) : std::numeric_limits::max()>
struct llvm::Bitfield::Element< T, Offset, Size, MaxValue >
Describes an element of a Bitfield.
This type is then used with the Bitfield static member functions.
Template Parameters
| 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. |
Definition at line 176 of file Bitfields.h.
◆ IntegerType
template<typename T, unsigned Offset, unsigned Size, T MaxValue = std::is_enum::value ? T(0) : std::numeric_limits::max()>
Initial value:
std::underlying_type_t< T > type
Definition at line 178 of file Bitfields.h.
◆ Type
template<typename T, unsigned Offset, unsigned Size, T MaxValue = std::is_enum::value ? T(0) : std::numeric_limits::max()>
◆ bitfields_details::Impl
template<typename T, unsigned Offset, unsigned Size, T MaxValue = std::is_enum::value ? T(0) : std::numeric_limits::max()>
template<typename, typename>
◆ Bits
template<typename T, unsigned Offset, unsigned Size, T MaxValue = std::is_enum::value ? T(0) : std::numeric_limits::max()>
◆ FirstBit
template<typename T, unsigned Offset, unsigned Size, T MaxValue = std::is_enum::value ? T(0) : std::numeric_limits::max()>
◆ LastBit
template<typename T, unsigned Offset, unsigned Size, T MaxValue = std::is_enum::value ? T(0) : std::numeric_limits::max()>
◆ NextBit
template<typename T, unsigned Offset, unsigned Size, T MaxValue = std::is_enum::value ? T(0) : std::numeric_limits::max()>
◆ Shift
template<typename T, unsigned Offset, unsigned Size, T MaxValue = std::is_enum::value ? T(0) : std::numeric_limits::max()>
The documentation for this struct was generated from the following file:
- include/llvm/ADT/Bitfields.h