LLVM: llvm::FoldingSetNodeIDRef Class Reference (original) (raw)
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](FoldingSet%5F8h%5Fsource.html)"
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.
llvm::FoldingSetNodeIDRef::FoldingSetNodeIDRef ( ) | default |
---|
◆ FoldingSetNodeIDRef() [2/2]
llvm::FoldingSetNodeIDRef::FoldingSetNodeIDRef ( const unsigned * D, size_t S ) | inline |
---|
◆ ComputeHash()
unsigned llvm::FoldingSetNodeIDRef::ComputeHash ( ) const | inline |
---|
◆ computeStableHash()
unsigned llvm::FoldingSetNodeIDRef::computeStableHash ( ) const | inline |
---|
◆ getData()
const unsigned * llvm::FoldingSetNodeIDRef::getData ( ) const | inline |
---|
◆ getSize()
size_t llvm::FoldingSetNodeIDRef::getSize ( ) const | inline |
---|
◆ operator!=()
◆ operator<()
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.
◆ operator==()
The documentation for this class was generated from the following files:
- include/llvm/ADT/FoldingSet.h
- lib/Support/FoldingSet.cpp