LLVM 20.0.0git
|
Holds functions to get, set or test bitfields. More...
#include "llvm/ADT/Bitfields.h"
Classes | |
struct | Element |
Describes an element of a Bitfield. More... | |
Static Public Member Functions | |
template<typename Bitfield , typename StorageType > | |
static Bitfield::Type | get (StorageType Packed) |
Unpacks the field from the Packed value. | |
template<typename Bitfield , typename StorageType > | |
static StorageType | test (StorageType Packed) |
Return a non-zero value if the field is non-zero. | |
template<typename Bitfield , typename StorageType > | |
static void | set (StorageType &Packed, typename Bitfield::Type Value) |
Sets the typed value in the provided Packed value. | |
template<typename A , typename B > | |
static constexpr bool | isOverlapping () |
Returns whether the two bitfields share common bits. | |
template<typename A > | |
static constexpr bool | areContiguous () |
template<typename A , typename B , typename... Others> | |
static constexpr bool | areContiguous () |
Holds functions to get, set or test bitfields.
Definition at line 212 of file Bitfields.h.
Definition at line 280 of file Bitfields.h.
Referenced by areContiguous().
|
inlinestaticconstexpr |
Definition at line 282 of file Bitfields.h.
References areContiguous(), and B.
|
inlinestatic |
|
inlinestaticconstexpr |
Returns whether the two bitfields share common bits.
Definition at line 276 of file Bitfields.h.
|
inlinestatic |
Sets the typed value in the provided Packed
value.
The method will asserts if the provided value is too big to fit in.
Definition at line 270 of file Bitfields.h.
References I.
|
inlinestatic |
Return a non-zero value if the field is non-zero.
It is more efficient than getField
.
Definition at line 262 of file Bitfields.h.
References I.