LLVM 20.0.0git
|
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. | |
void | insert (typename Info::key_type_ref Key, typename Info::data_type_ref Data, Info &InfoObj) |
Insert an entry into the table. | |
bool | contains (typename Info::key_type_ref Key, Info &InfoObj) |
Determine whether an entry has been inserted. | |
offset_type | Emit (raw_ostream &Out) |
Emit the table to Out, which must not be at offset 0. | |
offset_type | Emit (raw_ostream &Out, Info &InfoObj) |
Emit the table to Out, which must not be at offset 0. | |
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 58 of file OnDiskHashTable.h.
|
inline |
Definition at line 224 of file OnDiskHashTable.h.
References llvm::safe_calloc().
|
inline |
Definition at line 232 of file OnDiskHashTable.h.
|
inline |
Determine whether an entry has been inserted.
Definition at line 133 of file OnDiskHashTable.h.
References I.
|
inline |
Emit the table to Out, which must not be at offset 0.
Definition at line 142 of file OnDiskHashTable.h.
References llvm::OnDiskChainedHashTableGenerator< Info >::Emit(), and Info.
Referenced by llvm::OnDiskChainedHashTableGenerator< Info >::Emit(), writeMemProfCallStacks(), writeMemProfFrames(), and writeMemProfRecords().
|
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 150 of file OnDiskHashTable.h.
References assert(), B, llvm::bit_ceil(), End, I, llvm::little, N, llvm::offsetToAlignment(), and llvm::raw_ostream::tell().
|
inline |
Insert an entry into the table.
Definition at line 115 of file OnDiskHashTable.h.
References llvm::Data, and Info.
|
inline |
Insert an entry into the table.
Uses the provided Info instead of a stack allocated one.
Definition at line 124 of file OnDiskHashTable.h.
References llvm::SpecificBumpPtrAllocator< T >::Allocate(), and llvm::Data.