LLVM API Documentation

llvm::FoldingSetNodeID Class Reference

#include <FoldingSet.h>

Collaboration diagram for llvm::FoldingSetNodeID:
[legend]

List of all members.

Public Member Functions

 FoldingSetNodeID ()
unsigned getRawData (unsigned i) const
void AddPointer (const void *Ptr)
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 AddString (const std::string &String)
void AddString (const char *String)
template<typename T>
void Add (const T &x)
void clear ()
unsigned ComputeHash () const
bool operator== (const FoldingSetNodeID &RHS) const


Detailed 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.

Definition at line 205 of file FoldingSet.h.


Constructor & Destructor Documentation

llvm::FoldingSetNodeID::FoldingSetNodeID (  )  [inline]

Definition at line 211 of file FoldingSet.h.


Member Function Documentation

unsigned llvm::FoldingSetNodeID::getRawData ( unsigned  i  )  const [inline]

getRawData - Return the ith entry in the Bits data.

Definition at line 215 of file FoldingSet.h.

void FoldingSetNodeID::AddPointer ( const void *  Ptr  ) 

void FoldingSetNodeID::AddInteger ( signed  I  ) 

void FoldingSetNodeID::AddInteger ( unsigned  I  ) 

Definition at line 41 of file FoldingSet.cpp.

References llvm::SmallVectorImpl< T >::push_back().

void FoldingSetNodeID::AddInteger ( long  I  ) 

Definition at line 44 of file FoldingSet.cpp.

References AddInteger().

void FoldingSetNodeID::AddInteger ( unsigned long  I  ) 

Definition at line 47 of file FoldingSet.cpp.

References AddInteger().

void FoldingSetNodeID::AddInteger ( long long  I  ) 

Definition at line 56 of file FoldingSet.cpp.

References AddInteger().

void FoldingSetNodeID::AddInteger ( unsigned long long  I  ) 

Definition at line 59 of file FoldingSet.cpp.

References AddInteger(), and llvm::SmallVectorImpl< T >::push_back().

void FoldingSetNodeID::AddString ( const std::string &  String  ) 

void FoldingSetNodeID::AddString ( const char *  String  ) 

template<typename T>
void llvm::FoldingSetNodeID::Add ( const T &  x  )  [inline]

Definition at line 232 of file FoldingSet.h.

Referenced by llvm::ImmutableListImpl< T >::Profile(), and llvm::APFloat::Profile().

void llvm::FoldingSetNodeID::clear (  )  [inline]

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

Definition at line 236 of file FoldingSet.h.

References llvm::SmallVectorImpl< T >::clear().

Referenced by llvm::FoldingSetImpl::FindNodeOrInsertPos().

unsigned FoldingSetNodeID::ComputeHash (  )  const

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

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

Definition at line 141 of file FoldingSet.cpp.

References llvm::SectionKind::Data, E, and llvm::SmallVectorImpl< T >::size().

Referenced by GetBucketFor().

bool FoldingSetNodeID::operator== ( const FoldingSetNodeID &  RHS  )  const

operator== - Used to compare two nodes to each other.

Definition at line 164 of file FoldingSet.cpp.

References Bits, and llvm::SmallVectorImpl< T >::size().


The documentation for this class was generated from the following files: