|
LLVM 24.0.0git
|
A unified wrapper representing the function offset table. More...
#include "llvm/ProfileData/SampleProfReader.h"
Public Types | |
| enum class | TableMode { InMemory , OnDisk , Eytzinger } |
| using | OnDiskTableType |
A unified wrapper representing the function offset table.
This class abstracts away the physical representation of the offset table, which can either be:
It exposes a single, type-agnostic lookup interface, shielding the reader from the underlying container types. To prevent hybrid-state corruption, the table's mode is locked at construction time, and assertions prevent modification in on-disk mode.
Definition at line 1043 of file SampleProfReader.h.
Definition at line 1047 of file SampleProfReader.h.
|
strong |
| Enumerator | |
|---|---|
| InMemory | |
| OnDisk | |
| Eytzinger | |
Definition at line 1045 of file SampleProfReader.h.
|
delete |
Referenced by operator=(), operator=(), SampleProfileFuncOffsetTable(), and SampleProfileFuncOffsetTable().
|
delete |
References SampleProfileFuncOffsetTable().
|
delete |
References SampleProfileFuncOffsetTable().
|
inlineexplicit |
Definition at line 1058 of file SampleProfReader.h.
References InMemory.
|
inline |
Definition at line 1064 of file SampleProfReader.h.
References Eytzinger.
|
inline |
Instantiate the on-disk chained hash table using raw stream pointers.
Definition at line 1079 of file SampleProfReader.h.
References llvm::sampleprof::Base, llvm::OnDiskIterableChainedHashTable< FuncOffsetHashTableInfo >::Create(), and OnDisk.
|
inline |
Definition at line 1116 of file SampleProfReader.h.
References assert(), and isEytzinger().
|
inline |
Direct read-only array (ArrayRef) of function offsets aligned parallel to the corresponding Eytzinger name span.
Definition at line 1110 of file SampleProfReader.h.
References assert(), and isEytzinger().
|
inline |
Insert a function GUID and its profile offset into the in-memory map.
Enforces that the on-disk table must not have been set first.
Definition at line 1072 of file SampleProfReader.h.
References assert(), and llvm::Offset.
|
inline |
Definition at line 1122 of file SampleProfReader.h.
References Eytzinger.
Referenced by getExpectedSize(), getFuncOffsets(), and lookup().
|
inline |
Query the offset table for the profile offset associated with the given GUID.
Returns the offset if found, or std::nullopt if the key is missing.
Definition at line 1087 of file SampleProfReader.h.
References isEytzinger().
|
delete |
References SampleProfileFuncOffsetTable().
|
delete |
References SampleProfileFuncOffsetTable().