LLVM 20.0.0git
|
Store a vector of values using a specific number of bits for each value. More...
#include "llvm/ADT/PackedVector.h"
Classes | |
class | reference |
Public Member Functions | |
PackedVector ()=default | |
PackedVector (unsigned size) | |
bool | empty () const |
unsigned | size () const |
void | clear () |
void | resize (unsigned N) |
void | reserve (unsigned N) |
PackedVector & | reset () |
void | push_back (T val) |
reference | operator[] (unsigned Idx) |
T | operator[] (unsigned Idx) const |
bool | operator== (const PackedVector &RHS) const |
bool | operator!= (const PackedVector &RHS) const |
PackedVector & | operator|= (const PackedVector &RHS) |
const BitVectorTy & | raw_bits () const |
BitVectorTy & | raw_bits () |
Store a vector of values using a specific number of bits for each value.
Both signed and unsigned types can be used, e.g
will create a vector accepting values -2, -1, 0, 1. Any other value will hit an assertion.
Definition at line 76 of file PackedVector.h.
|
default |
|
inlineexplicit |
Definition at line 102 of file PackedVector.h.
|
inline |
Definition at line 108 of file PackedVector.h.
|
inline |
Definition at line 104 of file PackedVector.h.
|
inline |
Definition at line 136 of file PackedVector.h.
References RHS.
|
inline |
Definition at line 132 of file PackedVector.h.
References RHS.
|
inline |
Definition at line 124 of file PackedVector.h.
References Idx.
|
inline |
Definition at line 128 of file PackedVector.h.
References Idx.
|
inline |
Definition at line 140 of file PackedVector.h.
References RHS.
|
inline |
Definition at line 119 of file PackedVector.h.
References llvm::PackedVector< T, BitNum, BitVectorTy >::resize(), and llvm::PackedVector< T, BitNum, BitVectorTy >::size().
|
inline |
Definition at line 146 of file PackedVector.h.
|
inline |
Definition at line 145 of file PackedVector.h.
|
inline |
Definition at line 112 of file PackedVector.h.
References N.
|
inline |
Definition at line 114 of file PackedVector.h.
|
inline |
Definition at line 110 of file PackedVector.h.
References N.
Referenced by llvm::PackedVector< T, BitNum, BitVectorTy >::push_back().
|
inline |
Definition at line 106 of file PackedVector.h.
Referenced by llvm::PackedVector< T, BitNum, BitVectorTy >::push_back().