class FoldingSetNodeIDRef
Declaration
class FoldingSetNodeIDRef { /* full declaration omitted */ };
Description
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.
Declared at: llvm/include/llvm/ADT/FoldingSet.h:288
Member Variables
- private const unsigned int* Data = nullptr
- private size_t Size = 0
Method Overview
- public unsigned int ComputeHash() const
- public FoldingSetNodeIDRef()
- public FoldingSetNodeIDRef(const unsigned int * D, size_t S)
- public const unsigned int * getData() const
- public size_t getSize() const
Methods
¶unsigned int ComputeHash() const
unsigned int ComputeHash() const
Description
ComputeHash - Compute a strong hash value for this FoldingSetNodeIDRef, used to lookup the node in the FoldingSetBase.
Declared at: llvm/include/llvm/ADT/FoldingSet.h:298
¶FoldingSetNodeIDRef()
FoldingSetNodeIDRef()
Declared at: llvm/include/llvm/ADT/FoldingSet.h:293
¶FoldingSetNodeIDRef(const unsigned int* D,
size_t S)
FoldingSetNodeIDRef(const unsigned int* D,
size_t S)
Declared at: llvm/include/llvm/ADT/FoldingSet.h:294
Parameters
- const unsigned int* D
- size_t S
¶const unsigned int* getData() const
const unsigned int* getData() const
Declared at: llvm/include/llvm/ADT/FoldingSet.h:310
¶size_t getSize() const
size_t getSize() const
Declared at: llvm/include/llvm/ADT/FoldingSet.h:311