|
LLVM 24.0.0git
|
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) |
| LLVM_ABI void | AddNodeID (const FoldingSetNodeID &ID) |
| template<typename T> | |
| void | Add (const T &x) |
| void | clear () |
| Clear the accumulated profile, allowing this FoldingSetNodeID object to be used to compute a new profile. | |
| FoldingSetNodeIDRef | getRef () const |
| The accumulated profile, valid until this object is next modified. | |
| unsigned | computeHash () const |
| unsigned | computeStableHash () const |
| operator FoldingSetNodeIDRef () const | |
| LLVM_ABI FoldingSetNodeIDRef | Intern (BumpPtrAllocator &Allocator) const |
| Copy this node's data to a memory region allocated from the given allocator and return a FoldingSetNodeIDRef describing the interned data. | |
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 162 of file FoldingSet.h.
|
default |
Referenced by AddNodeID().
|
inline |
Definition at line 178 of file FoldingSet.h.
References llvm::Ref.
Definition at line 200 of file FoldingSet.h.
References llvm::DefaultFoldingSetTrait< T >::Profile(), and T.
Referenced by llvm::APFloat::Profile().
|
inline |
Definition at line 196 of file FoldingSet.h.
References AddInteger(), and B().
|
inline |
Definition at line 192 of file FoldingSet.h.
References I.
|
inline |
Definition at line 194 of file FoldingSet.h.
References I.
|
inline |
Definition at line 190 of file FoldingSet.h.
References I.
Referenced by AddBoolean(), AddPointer(), llvm::Attribute::get(), llvm::Attribute::get(), llvm::Attribute::get(), llvm::Attribute::get(), llvm::ScalarEvolution::getConstant(), llvm::ScalarEvolution::getMinMaxExpr(), llvm::ScalarEvolution::getPtrToAddrExpr(), llvm::ScalarEvolution::getSequentialMinMaxExpr(), llvm::ScalarEvolution::getSignExtendExprImpl(), llvm::ScalarEvolution::getTruncateExpr(), llvm::ScalarEvolution::getUnknown(), llvm::ScalarEvolution::getVScale(), llvm::ScalarEvolution::getWrapPredicate(), and llvm::ScalarEvolution::getZeroExtendExprImpl().
|
inline |
Definition at line 191 of file FoldingSet.h.
References I.
|
inline |
Definition at line 193 of file FoldingSet.h.
References I.
|
inline |
Definition at line 195 of file FoldingSet.h.
References I.
| void FoldingSetNodeID::AddNodeID | ( | const FoldingSetNodeID & | ID | ) |
Definition at line 100 of file FoldingSet.cpp.
References FoldingSetNodeID().
|
inline |
Add* - Add various data types to Bit data.
Definition at line 181 of file FoldingSet.h.
References AddInteger().
Referenced by node_hash().
| void FoldingSetNodeID::AddString | ( | StringRef | String | ) |
Definition at line 36 of file FoldingSet.cpp.
References llvm::sampleprof::Base, llvm::divideCeil(), llvm::sys::IsBigEndianHost, llvm::sys::IsLittleEndianHost, Size, and llvm::String.
Referenced by llvm::Attribute::get().
|
inline |
Clear the accumulated profile, allowing this FoldingSetNodeID object to be used to compute a new profile.
Definition at line 206 of file FoldingSet.h.
|
inline |
Definition at line 214 of file FoldingSet.h.
References llvm::FoldingSetNodeIDRef::computeHash(), and getRef().
Referenced by llvm::FoldingSetImpl< T, Trait >< ListTy >::insert().
|
inline |
Definition at line 218 of file FoldingSet.h.
References llvm::FoldingSetNodeIDRef::computeStableHash(), and getRef().
|
inline |
The accumulated profile, valid until this object is next modified.
Definition at line 209 of file FoldingSet.h.
Referenced by computeHash(), and computeStableHash().
| FoldingSetNodeIDRef FoldingSetNodeID::Intern | ( | BumpPtrAllocator & | Allocator | ) | const |
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 105 of file FoldingSet.cpp.
References llvm::uninitialized_copy().
|
inline |
Definition at line 220 of file FoldingSet.h.