LLVM: llvm::FoldingSetNodeID Class Reference (original) (raw)
FoldingSetNodeID - This class is used to gather all the unique data bits of a node. More...
#include "[llvm/ADT/FoldingSet.h](FoldingSet%5F8h%5Fsource.html)"
| 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 330 of file FoldingSet.h.
| llvm::FoldingSetNodeID::FoldingSetNodeID ( ) | default |
|---|
◆ FoldingSetNodeID() [2/2]
◆ Add()
template<typename T>
| void llvm::FoldingSetNodeID::Add ( const T & x) | inline |
|---|
◆ AddBoolean()
| void llvm::FoldingSetNodeID::AddBoolean ( bool B) | inline |
|---|
◆ AddInteger() [1/6]
| void llvm::FoldingSetNodeID::AddInteger ( long I) | inline |
|---|
◆ AddInteger() [2/6]
| void llvm::FoldingSetNodeID::AddInteger ( long long I) | inline |
|---|
◆ AddInteger() [3/6]
| void llvm::FoldingSetNodeID::AddInteger ( signed I) | inline |
|---|
◆ AddInteger() [4/6]
| void llvm::FoldingSetNodeID::AddInteger ( unsigned I) | inline |
|---|
◆ AddInteger() [5/6]
| void llvm::FoldingSetNodeID::AddInteger ( unsigned long I) | inline |
|---|
◆ AddInteger() [6/6]
| void llvm::FoldingSetNodeID::AddInteger ( unsigned long long I) | inline |
|---|
◆ AddNodeID()
◆ AddPointer()
| void llvm::FoldingSetNodeID::AddPointer ( const void * Ptr) | inline |
|---|
◆ AddString()
| void FoldingSetNodeID::AddString | ( | StringRef | String | ) |
|---|
◆ clear()
| void llvm::FoldingSetNodeID::clear ( ) | inline |
|---|
◆ ComputeHash()
| unsigned llvm::FoldingSetNodeID::ComputeHash ( ) const | inline |
|---|
◆ computeStableHash()
| unsigned llvm::FoldingSetNodeID::computeStableHash ( ) const | inline |
|---|
◆ Intern()
◆ operator!=() [1/2]
◆ operator!=() [2/2]
◆ operator<() [1/2]
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().
◆ operator<() [2/2]
◆ operator==() [1/2]
operator== - Used to compare two nodes to each other.
Definition at line 108 of file FoldingSet.cpp.
References FoldingSetNodeID().
◆ operator==() [2/2]
operator== - Used to compare two nodes to each other.
Definition at line 114 of file FoldingSet.cpp.
The documentation for this class was generated from the following files:
- include/llvm/ADT/FoldingSet.h
- lib/Support/FoldingSet.cpp