|
LLVM 23.0.0git
|
This is a constexpr reimplementation of a subset of std::bitset. More...
#include "llvm/ADT/Bitset.h"
Public Member Functions | |
| constexpr | Bitset (const std::array< uint64_t,(NumBits+63)/64 > &B) |
| constexpr | Bitset ()=default |
| constexpr | Bitset (std::initializer_list< unsigned > Init) |
| constexpr Bitset & | set () |
| constexpr Bitset & | set (unsigned I) |
| constexpr Bitset & | reset (unsigned I) |
| constexpr Bitset & | flip (unsigned I) |
| constexpr bool | operator[] (unsigned I) const |
| constexpr bool | test (unsigned I) const |
| constexpr size_t | size () const |
| constexpr bool | any () const |
| constexpr bool | none () const |
| constexpr bool | all () const |
| constexpr size_t | count () const |
| constexpr Bitset & | operator^= (const Bitset &RHS) |
| constexpr Bitset | operator^ (const Bitset &RHS) const |
| constexpr Bitset & | operator&= (const Bitset &RHS) |
| constexpr Bitset | operator& (const Bitset &RHS) const |
| constexpr Bitset & | operator|= (const Bitset &RHS) |
| constexpr Bitset | operator| (const Bitset &RHS) const |
| constexpr Bitset | operator~ () const |
| constexpr bool | operator== (const Bitset &RHS) const |
| constexpr bool | operator!= (const Bitset &RHS) const |
| constexpr bool | operator< (const Bitset &Other) const |
| constexpr Bitset & | operator<<= (unsigned N) |
| constexpr Bitset | operator<< (unsigned N) const |
| constexpr Bitset & | operator>>= (unsigned N) |
| constexpr Bitset | operator>> (unsigned N) const |
| constexpr uint64_t | getWord64 (unsigned I) const |
| Return the I-th 64-bit word of the bitset, from least significant to most. | |
| constexpr int | findLastSet () const |
| Return the index of the highest set bit, or -1 if no bits are set. | |
Static Public Member Functions | |
| static constexpr unsigned | getNumWords64 () |
| Return the number of 64-bit words needed to hold all bits. | |
This is a constexpr reimplementation of a subset of std::bitset.
It would be nice to use std::bitset directly, but it doesn't support constant initialization.
|
inlineexplicitconstexpr |
|
constexprdefault |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 113 of file Bitset.h.
Referenced by isAspectNeeded(), and llvm::Bitset< AEK_NUM_EXTENSIONS >::none().
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlinestaticconstexpr |
Return the number of 64-bit words needed to hold all bits.
Definition at line 289 of file Bitset.h.
Referenced by llvm::Bitset< AEK_NUM_EXTENSIONS >::getWord64().
|
inlineconstexpr |
Return the I-th 64-bit word of the bitset, from least significant to most.
All words other than the last contain exactly 64 stored bits. The last word (I == getNumWords64() - 1) may cover fewer than 64 stored bits when NumBits is not a multiple of 64; in that case the unused high bits are reported as 0.
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 81 of file Bitset.h.
Referenced by llvm::Bitset< AEK_NUM_EXTENSIONS >::Bitset(), and parseFormatStringSpecifiers().
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 111 of file Bitset.h.
Referenced by llvm::Bitset< AEK_NUM_EXTENSIONS >::operator<().
|
inlineconstexpr |
Definition at line 109 of file Bitset.h.
Referenced by llvm::AArch64::ExtensionSet::addArchDefaults(), llvm::AArch64::ExtensionSet::addCPUDefaults(), llvm::AArch64::getCpuSupportsMask(), llvm::AArch64::getExtensionFeatures(), and llvm::AArch64::getFMVPriority().