LLVM 20.0.0git
|
FoldingSetNodeIDRef - 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) const |
bool | operator!= (FoldingSetNodeIDRef RHS) const |
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 |
FoldingSetNodeIDRef - 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 290 of file FoldingSet.h.
|
default |
Definition at line 296 of file FoldingSet.h.
|
inline |
Definition at line 300 of file FoldingSet.h.
References llvm::hash_combine_range().
Referenced by llvm::FoldingSetNodeID::ComputeHash().
|
inline |
Definition at line 306 of file FoldingSet.h.
References llvm::xxh3_64bits().
Referenced by llvm::FoldingSetNodeID::computeStableHash().
Definition at line 319 of file FoldingSet.h.
|
inline |
Definition at line 320 of file FoldingSet.h.
|
inline |
Definition at line 313 of file FoldingSet.h.
References 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 34 of file FoldingSet.cpp.
bool FoldingSetNodeIDRef::operator== | ( | FoldingSetNodeIDRef | RHS | ) | const |
Definition at line 27 of file FoldingSet.cpp.