class FoldingSetNodeID

Declaration

class FoldingSetNodeID { /* full declaration omitted */ };

Description

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.

Declared at: llvm/include/llvm/ADT/FoldingSet.h:318

Member Variables

private SmallVector<unsigned int, 32> Bits
Bits - Vector of all the data bits that make the node unique. Use a SmallVector to avoid a heap allocation in the common case.

Method Overview

Methods

template <typename T>
inline void Add(const T& x)

Declared at: llvm/include/llvm/ADT/FoldingSet.h:362

Templates

T

Parameters

const T& x

void AddBoolean(bool B)

Declared at: llvm/include/llvm/ADT/FoldingSet.h:357

Parameters

bool B

void AddInteger(int I)

Declared at: llvm/include/llvm/ADT/FoldingSet.h:339

Parameters

int I

void AddInteger(unsigned int I)

Declared at: llvm/include/llvm/ADT/FoldingSet.h:340

Parameters

unsigned int I

void AddInteger(long I)

Declared at: llvm/include/llvm/ADT/FoldingSet.h:341

Parameters

long I

void AddInteger(unsigned long I)

Declared at: llvm/include/llvm/ADT/FoldingSet.h:342

Parameters

unsigned long I

void AddInteger(long long I)

Declared at: llvm/include/llvm/ADT/FoldingSet.h:351

Parameters

long long I

void AddInteger(unsigned long long I)

Declared at: llvm/include/llvm/ADT/FoldingSet.h:352

Parameters

unsigned long long I

void AddNodeID(const llvm::FoldingSetNodeID& ID)

Declared at: llvm/include/llvm/ADT/FoldingSet.h:359

Parameters

const llvm::FoldingSetNodeID& ID

void AddPointer(const void* Ptr)

Description

Add* - Add various data types to Bit data.

Declared at: llvm/include/llvm/ADT/FoldingSet.h:330

Parameters

const void* Ptr

void AddString(llvm::StringRef String)

Declared at: llvm/include/llvm/ADT/FoldingSet.h:358

Parameters

llvm::StringRef String

unsigned int ComputeHash() const

Description

ComputeHash - Compute a strong hash value for this FoldingSetNodeID, used to lookup the node in the FoldingSetBase.

Declared at: llvm/include/llvm/ADT/FoldingSet.h:370

FoldingSetNodeID()

Declared at: llvm/include/llvm/ADT/FoldingSet.h:324

FoldingSetNodeID(llvm::FoldingSetNodeIDRef Ref)

Declared at: llvm/include/llvm/ADT/FoldingSet.h:326

Parameters

llvm::FoldingSetNodeIDRef Ref

llvm::FoldingSetNodeIDRef Intern(
    llvm::BumpPtrAllocator& Allocator) const

Description

Intern - Copy this node's data to a memory region allocated from the given allocator and return a FoldingSetNodeIDRef describing the interned data.

Declared at: llvm/include/llvm/ADT/FoldingSet.h:389

Parameters

llvm::BumpPtrAllocator& Allocator

inline void clear()

Description

clear - Clear the accumulated profile, allowing this FoldingSetNodeID object to be used to compute a new profile.

Declared at: llvm/include/llvm/ADT/FoldingSet.h:366