|
LLVM 22.0.0git
|
FoldingSetNodeID - This class is used to gather all the unique data bits of a node. More...
#include "llvm/ADT/FoldingSet.h"
Public Member Functions | |
| FoldingSetNodeID ()=default | |
| FoldingSetNodeID (FoldingSetNodeIDRef Ref) | |
| void | AddPointer (const void *Ptr) |
| Add* - Add various data types to Bit data. | |
| void | AddInteger (signed I) |
| void | AddInteger (unsigned I) |
| void | AddInteger (long I) |
| void | AddInteger (unsigned long I) |
| void | AddInteger (long long I) |
| void | AddInteger (unsigned long long I) |
| void | AddBoolean (bool B) |
| LLVM_ABI void | AddString (StringRef String) |
| Add* - Add various data types to Bit data. | |
| LLVM_ABI void | AddNodeID (const FoldingSetNodeID &ID) |
| template<typename T> | |
| void | Add (const T &x) |
| void | clear () |
| clear - Clear the accumulated profile, allowing this FoldingSetNodeID object to be used to compute a new profile. | |
| unsigned | ComputeHash () const |
| unsigned | computeStableHash () const |
| LLVM_ABI bool | operator== (const FoldingSetNodeID &RHS) const |
| operator== - Used to compare two nodes to each other. | |
| LLVM_ABI bool | operator== (const FoldingSetNodeIDRef RHS) const |
| operator== - Used to compare two nodes to each other. | |
| bool | operator!= (const FoldingSetNodeID &RHS) const |
| bool | operator!= (const FoldingSetNodeIDRef RHS) const |
| LLVM_ABI bool | operator< (const FoldingSetNodeID &RHS) const |
| Used to compare the "ordering" of two nodes as defined by the profiled bits and their ordering defined by memcmp(). | |
| LLVM_ABI bool | operator< (const FoldingSetNodeIDRef RHS) const |
| LLVM_ABI FoldingSetNodeIDRef | Intern (BumpPtrAllocator &Allocator) const |
| Intern - Copy this node's data to a memory region allocated from the given allocator and return a FoldingSetNodeIDRef describing the interned data. | |
FoldingSetNodeID - This class is used to gather all the unique data bits of a node.
When all the bits are gathered this class is used to produce a hash value for the node.
Definition at line 209 of file FoldingSet.h.
|
default |
Referenced by AddNodeID(), operator!=(), operator<(), and operator==().
|
inline |
Definition at line 225 of file FoldingSet.h.
Definition at line 249 of file FoldingSet.h.
References llvm::DefaultFoldingSetTrait< T >::Profile(), and T.
Referenced by llvm::APFloat::Profile().
|
inline |
Definition at line 244 of file FoldingSet.h.
References AddInteger(), and B().
|
inline |
Definition at line 240 of file FoldingSet.h.
References I.
|
inline |
Definition at line 242 of file FoldingSet.h.
References I.
|
inline |
Definition at line 238 of file FoldingSet.h.
References I.
Referenced by AddBoolean(), and AddPointer().
|
inline |
Definition at line 239 of file FoldingSet.h.
References I.
|
inline |
Definition at line 241 of file FoldingSet.h.
References I.
|
inline |
Definition at line 243 of file FoldingSet.h.
References I.
| void FoldingSetNodeID::AddNodeID | ( | const FoldingSetNodeID & | ID | ) |
Definition at line 102 of file FoldingSet.cpp.
References FoldingSetNodeID().
|
inline |
Add* - Add various data types to Bit data.
Definition at line 229 of file FoldingSet.h.
References AddInteger().
| void FoldingSetNodeID::AddString | ( | StringRef | String | ) |
Add* - Add various data types to Bit data.
Definition at line 45 of file FoldingSet.cpp.
References llvm::sampleprof::Base, llvm::divideCeil(), llvm::sys::IsBigEndianHost, llvm::sys::IsLittleEndianHost, Size, and llvm::String.
|
inline |
clear - Clear the accumulated profile, allowing this FoldingSetNodeID object to be used to compute a new profile.
Definition at line 253 of file FoldingSet.h.
Referenced by llvm::FoldingSetBase::FindNodeOrInsertPos().
|
inline |
Definition at line 258 of file FoldingSet.h.
References llvm::FoldingSetNodeIDRef::ComputeHash().
Referenced by llvm::DefaultContextualFoldingSetTrait< T, Ctx >::ComputeHash(), and llvm::DefaultFoldingSetTrait< T >::ComputeHash().
|
inline |
Definition at line 264 of file FoldingSet.h.
References llvm::FoldingSetNodeIDRef::computeStableHash().
| FoldingSetNodeIDRef FoldingSetNodeID::Intern | ( | BumpPtrAllocator & | Allocator | ) | const |
Intern - Copy this node's data to a memory region allocated from the given allocator and return a FoldingSetNodeIDRef describing the interned data.
Definition at line 132 of file FoldingSet.cpp.
References llvm::uninitialized_copy().
|
inline |
Definition at line 272 of file FoldingSet.h.
References FoldingSetNodeID(), and RHS.
|
inline |
Definition at line 273 of file FoldingSet.h.
References RHS.
| bool FoldingSetNodeID::operator< | ( | const FoldingSetNodeID & | 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 120 of file FoldingSet.cpp.
References FoldingSetNodeID().
| bool FoldingSetNodeID::operator< | ( | const FoldingSetNodeIDRef | RHS | ) | const |
Definition at line 124 of file FoldingSet.cpp.
| bool FoldingSetNodeID::operator== | ( | const FoldingSetNodeID & | RHS | ) | const |
operator== - Used to compare two nodes to each other.
Definition at line 108 of file FoldingSet.cpp.
References FoldingSetNodeID().
| bool FoldingSetNodeID::operator== | ( | const FoldingSetNodeIDRef | RHS | ) | const |
operator== - Used to compare two nodes to each other.
Definition at line 114 of file FoldingSet.cpp.