LLVM 20.0.0git
|
This is a constexpr reimplementation of a subset of std::bitset. More...
#include "llvm/ADT/Bitset.h"
Public Member Functions | |
constexpr | Bitset ()=default |
constexpr | Bitset (std::initializer_list< unsigned > Init) |
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 |
bool | any () const |
bool | none () const |
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 |
bool | operator== (const Bitset &RHS) const |
bool | operator!= (const Bitset &RHS) const |
bool | operator< (const Bitset &Other) const |
Protected Member Functions | |
constexpr | Bitset (const std::array< BitWord, NumWords > &B) |
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.
|
inlineconstexprprotected |
|
constexprdefault |
|
inlineconstexpr |
Definition at line 47 of file Bitset.h.
References I, and llvm::Bitset< NumBits >::set().
|
inline |
Definition at line 81 of file Bitset.h.
References llvm::any_of(), and I.
Referenced by llvm::Bitset< NumBits >::none().
|
inline |
Definition at line 85 of file Bitset.h.
References B, and llvm::popcount().
|
inlineconstexpr |
|
inline |
Definition at line 84 of file Bitset.h.
References llvm::Bitset< NumBits >::any().
|
inline |
|
inlineconstexpr |
|
inlineconstexpr |
|
inline |
Definition at line 140 of file Bitset.h.
References E, I, LHS, llvm::Other, RHS, llvm::Bitset< NumBits >::size(), and test.
|
inline |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inline |
Definition at line 52 of file Bitset.h.
Referenced by llvm::Bitset< NumBits >::Bitset().
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 79 of file Bitset.h.
Referenced by llvm::Bitset< NumBits >::operator<().
|
inlineconstexpr |
Definition at line 77 of file Bitset.h.
References I.
Referenced by llvm::AArch64::ExtensionSet::addArchDefaults(), llvm::AArch64::ExtensionSet::addCPUDefaults(), llvm::AArch64::getCpuSupportsMask(), llvm::AArch64::getExtensionFeatures(), and llvm::AArch64::ExtensionSet::toLLVMFeatureList().