LLVM 22.0.0git
|
Compressor is used to manipulate the bits of a (possibly signed) integer type so it can be packed and unpacked into a bits sized integer, Compressor is specialized on signed-ness so no runtime cost is incurred. More...
#include "llvm/ADT/Bitfields.h"
Public Types | |
using | BP = BitPatterns<T, Bits> |
Static Public Member Functions | |
static T | pack (T UserValue, T UserMaxValue) |
static T | unpack (T StorageValue) |
Compressor is used to manipulate the bits of a (possibly signed) integer type so it can be packed and unpacked into a bits sized integer, Compressor is specialized on signed-ness so no runtime cost is incurred.
The pack method also checks that the passed in UserValue is valid.
Definition at line 121 of file Bitfields.h.
using llvm::bitfields_details::Compressor< T, Bits, bool >::BP = BitPatterns<T, Bits> |
Definition at line 123 of file Bitfields.h.
|
inlinestatic |
Definition at line 125 of file Bitfields.h.
|
inlinestatic |
Definition at line 131 of file Bitfields.h.