LLVM API Documentation
#include <FoldingSet.h>
Public Types | |
typedef FoldingSetIterator< T > | iterator |
typedef FoldingSetIterator < const T > | const_iterator |
typedef FoldingSetBucketIterator< T > | bucket_iterator |
Public Member Functions | |
FoldingSet (unsigned Log2InitSize=6) | |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
bucket_iterator | bucket_begin (unsigned hash) |
bucket_iterator | bucket_end (unsigned hash) |
T * | GetOrInsertNode (Node *N) |
T * | FindNodeOrInsertPos (const FoldingSetNodeID &ID, void *&InsertPos) |
![]() | |
FoldingSetImpl (unsigned Log2InitSize=6) | |
virtual | ~FoldingSetImpl () |
void | clear () |
clear - Remove all nodes from the folding set. More... | |
bool | RemoveNode (Node *N) |
Node * | GetOrInsertNode (Node *N) |
Node * | FindNodeOrInsertPos (const FoldingSetNodeID &ID, void *&InsertPos) |
void | InsertNode (Node *N, void *InsertPos) |
void | InsertNode (Node *N) |
unsigned | size () const |
size - Returns the number of nodes in the folding set. More... | |
bool | empty () const |
empty - Returns true if there are no nodes in the folding set. More... | |
Additional Inherited Members | |
![]() | |
void ** | Buckets |
unsigned | NumBuckets |
unsigned | NumNodes |
FoldingSet - This template class is used to instantiate a specialized implementation of the folding set to the node class T. T must be a subclass of FoldingSetNode and implement a Profile function.
Definition at line 390 of file FoldingSet.h.
typedef FoldingSetBucketIterator<T> llvm::FoldingSet< T >::bucket_iterator |
Definition at line 425 of file FoldingSet.h.
typedef FoldingSetIterator<const T> llvm::FoldingSet< T >::const_iterator |
Definition at line 421 of file FoldingSet.h.
typedef FoldingSetIterator<T> llvm::FoldingSet< T >::iterator |
Definition at line 417 of file FoldingSet.h.
|
inlineexplicit |
Definition at line 413 of file FoldingSet.h.
|
inline |
Definition at line 418 of file FoldingSet.h.
|
inline |
Definition at line 422 of file FoldingSet.h.
|
inline |
Definition at line 427 of file FoldingSet.h.
|
inline |
Definition at line 431 of file FoldingSet.h.
|
inline |
Definition at line 419 of file FoldingSet.h.
|
inline |
Definition at line 423 of file FoldingSet.h.
|
inline |
FindNodeOrInsertPos - Look up the node specified by ID. If it exists, return it. If not, return the insertion token that will make insertion faster.
Definition at line 445 of file FoldingSet.h.
Referenced by llvm::ImmutableListFactory< T >::concat().
|
inline |
GetOrInsertNode - If there is an existing simple Node exactly equal to the specified node, return it. Otherwise, insert 'N' and return it instead.
Definition at line 438 of file FoldingSet.h.