LLVM
8.0.1
|
Generates an on disk hash table. More...
#include "llvm/Support/OnDiskHashTable.h"
Public Member Functions | |
void | insert (typename Info::key_type_ref Key, typename Info::data_type_ref Data) |
Insert an entry into the table. More... | |
void | insert (typename Info::key_type_ref Key, typename Info::data_type_ref Data, Info &InfoObj) |
Insert an entry into the table. More... | |
bool | contains (typename Info::key_type_ref Key, Info &InfoObj) |
Determine whether an entry has been inserted. More... | |
offset_type | Emit (raw_ostream &Out) |
Emit the table to Out, which must not be at offset 0. More... | |
offset_type | Emit (raw_ostream &Out, Info &InfoObj) |
Emit the table to Out, which must not be at offset 0. More... | |
OnDiskChainedHashTableGenerator () | |
~OnDiskChainedHashTableGenerator () | |
Generates an on disk hash table.
This needs an Info
that handles storing values into the hash table's payload and computes the hash for a given key. This should provide the following interface:
Definition at line 59 of file OnDiskHashTable.h.
|
inline |
Definition at line 225 of file OnDiskHashTable.h.
References llvm::safe_calloc().
|
inline |
Definition at line 233 of file OnDiskHashTable.h.
|
inline |
Determine whether an entry has been inserted.
Definition at line 134 of file OnDiskHashTable.h.
References I.
|
inline |
Emit the table to Out, which must not be at offset 0.
Definition at line 143 of file OnDiskHashTable.h.
References Info.
Referenced by setSummary().
|
inline |
Emit the table to Out, which must not be at offset 0.
Uses the provided Info instead of a stack allocated one.
Definition at line 151 of file OnDiskHashTable.h.
References assert(), B, I, llvm::AArch64CC::LE, llvm::support::little, llvm::NextPowerOf2(), llvm::raw_ostream::tell(), and llvm::support::endian::Writer::write().
|
inline |
|
inline |
Insert an entry into the table.
Uses the provided Info instead of a stack allocated one.
Definition at line 125 of file OnDiskHashTable.h.
References llvm::SpecificBumpPtrAllocator< T >::Allocate().