LLVM: llvm::Bitfield Struct Reference (original) (raw)

Holds functions to get, set or test bitfields. More...

#include "[llvm/ADT/Bitfields.h](Bitfields%5F8h%5Fsource.html)"

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 165 of file Bitfields.h.

areContiguous() [1/2]

template<typename A>

constexpr bool llvm::Bitfield::areContiguous ( ) inlinestaticconstexpr

areContiguous() [2/2]

template<typename A, typename B, typename... Others>

constexpr bool llvm::Bitfield::areContiguous ( ) inlinestaticconstexpr

get()

template<typename Bitfield, typename StorageType>

Bitfield::Type llvm::Bitfield::get ( StorageType Packed) inlinestatic

isOverlapping()

template<typename A, typename B>

constexpr bool llvm::Bitfield::isOverlapping ( ) inlinestaticconstexpr

set()

template<typename Bitfield, typename StorageType>

void llvm::Bitfield::set ( StorageType & Packed, typename Bitfield::Type Value ) inlinestatic

test()

template<typename Bitfield, typename StorageType>

StorageType llvm::Bitfield::test ( StorageType Packed) inlinestatic

Return a non-zero value if the field is non-zero.

It is more efficient than getField.

Definition at line 215 of file Bitfields.h.

References I.


The documentation for this struct was generated from the following file: