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 AddBoolean (bool B)
void AddString (const char *String, const char *End)
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 206 of file FoldingSet.h.


Constructor & Destructor Documentation

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

Definition at line 212 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 216 of file FoldingSet.h.

void FoldingSetNodeID::AddPointer ( const void *  Ptr  ) 

void FoldingSetNodeID::AddInteger ( signed  I  ) 

Definition at line 39 of file FoldingSet.cpp.

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

Referenced by AddBoolean(), AddInteger(), AddNodeIDCustom(), AddNodeIDOpcode(), AddNodeIDOperands(), llvm::ARMConstantPoolValue::AddSelectionDAGCSEId(), llvm::ScalarEvolution::getAddExpr(), llvm::ScalarEvolution::getAddRecExpr(), llvm::ScalarEvolution::getAllocSizeExpr(), llvm::SelectionDAG::getAtomic(), llvm::ScalarEvolution::getConstant(), llvm::SelectionDAG::getConstantPool(), llvm::ScalarEvolution::getFieldOffsetExpr(), llvm::SelectionDAG::getFrameIndex(), llvm::SelectionDAG::getGlobalAddress(), llvm::SelectionDAG::getIndexedStore(), llvm::SelectionDAG::getJumpTable(), llvm::SelectionDAG::getLabel(), llvm::SelectionDAG::getLoad(), llvm::ScalarEvolution::getMulExpr(), llvm::SelectionDAG::getRegister(), llvm::ScalarEvolution::getSignExtendExpr(), llvm::ScalarEvolution::getSMaxExpr(), llvm::SelectionDAG::getStore(), llvm::ScalarEvolution::getTruncateExpr(), llvm::SelectionDAG::getTruncStore(), llvm::ScalarEvolution::getUDivExpr(), llvm::ScalarEvolution::getUMaxExpr(), llvm::ScalarEvolution::getUnknown(), llvm::SelectionDAG::getVectorShuffle(), llvm::ScalarEvolution::getZeroExtendExpr(), hash(), llvm::APSInt::Profile(), llvm::AttributeListImpl::Profile(), llvm::DIESectionOffset::Profile(), llvm::DIEAbbrevData::Profile(), llvm::DIEObjectLabel::Profile(), llvm::ImutProfileInteger< T >::Profile(), llvm::DIEDwarfLabel::Profile(), llvm::DIEString::Profile(), llvm::APInt::Profile(), llvm::DIEEntry::Profile(), llvm::DIEAbbrev::Profile(), llvm::ImutAVLTree< ImutInfo >::Profile(), llvm::DIEBlock::Profile(), llvm::DIEInteger::Profile(), and llvm::DIEDelta::Profile().

void FoldingSetNodeID::AddInteger ( unsigned  I  ) 

Definition at line 42 of file FoldingSet.cpp.

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

void FoldingSetNodeID::AddInteger ( long  I  ) 

Definition at line 45 of file FoldingSet.cpp.

References AddInteger().

void FoldingSetNodeID::AddInteger ( unsigned long  I  ) 

Definition at line 48 of file FoldingSet.cpp.

References AddInteger(), and llvm_unreachable.

void FoldingSetNodeID::AddInteger ( long long  I  ) 

Definition at line 57 of file FoldingSet.cpp.

References AddInteger().

void FoldingSetNodeID::AddInteger ( unsigned long long  I  ) 

Definition at line 60 of file FoldingSet.cpp.

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

void llvm::FoldingSetNodeID::AddBoolean ( bool  B  )  [inline]

Definition at line 229 of file FoldingSet.h.

References AddInteger().

Referenced by hash().

void FoldingSetNodeID::AddString ( const char *  String,
const char *  End 
)

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

Definition at line 107 of file FoldingSet.cpp.

References AddString().

void FoldingSetNodeID::AddString ( const char *  String  ) 

Definition at line 103 of file FoldingSet.cpp.

References AddString().

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

Definition at line 235 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 239 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 113 of file FoldingSet.cpp.

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

Referenced by GetBucketFor(), and hash().

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

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

Definition at line 136 of file FoldingSet.cpp.

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


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