|
LLVM 24.0.0git
|
This class describes a reference to an interned FoldingSetNodeID, which can be a useful to store node id data rather than using plain FoldingSetNodeIDs, since the 32-element SmallVector is often much larger than necessary, and the possibility of heap allocation means it requires a non-trivial destructor call. More...
#include "llvm/ADT/FoldingSet.h"
Public Member Functions | |
| FoldingSetNodeIDRef ()=default | |
| FoldingSetNodeIDRef (const unsigned *D, size_t S) | |
| unsigned | computeHash () const |
| unsigned | computeStableHash () const |
| bool | operator== (FoldingSetNodeIDRef RHS) const |
| bool | operator!= (FoldingSetNodeIDRef RHS) const |
| LLVM_ABI bool | operator< (FoldingSetNodeIDRef) const |
| Used to compare the "ordering" of two nodes as defined by the profiled bits and their ordering defined by memcmp(). | |
| const unsigned * | getData () const |
| size_t | getSize () const |
Static Public Attributes | |
| static constexpr unsigned | NotAHash = 0 |
This class describes a reference to an interned FoldingSetNodeID, which can be a useful to store node id data rather than using plain FoldingSetNodeIDs, since the 32-element SmallVector is often much larger than necessary, and the possibility of heap allocation means it requires a non-trivial destructor call.
Definition at line 168 of file FoldingSet.h.
|
default |
Referenced by operator!=(), operator<(), and operator==().
Definition at line 174 of file FoldingSet.h.
References D().
|
inline |
Definition at line 182 of file FoldingSet.h.
References llvm::hash_combine_range(), and NotAHash.
Referenced by llvm::FoldingSetNodeID::computeHash().
|
inline |
Definition at line 190 of file FoldingSet.h.
References llvm::xxh3_64bits().
Referenced by llvm::FoldingSetNodeID::computeStableHash().
Definition at line 206 of file FoldingSet.h.
|
inline |
Definition at line 207 of file FoldingSet.h.
|
inline |
Definition at line 200 of file FoldingSet.h.
References FoldingSetNodeIDRef(), and RHS.
| bool FoldingSetNodeIDRef::operator< | ( | FoldingSetNodeIDRef | RHS | ) | const |
Used to compare the "ordering" of two nodes as defined by the profiled bits and their ordering defined by memcmp().
Definition at line 27 of file FoldingSet.cpp.
References FoldingSetNodeIDRef().
|
inline |
Definition at line 195 of file FoldingSet.h.
References FoldingSetNodeIDRef(), and RHS.
|
staticconstexpr |
Definition at line 176 of file FoldingSet.h.
Referenced by computeHash(), llvm::FoldingSetBase::erase(), llvm::FoldingSetInsertToken::operator bool(), and llvm::FoldingSetBase::probe().