|
LLVM 24.0.0git
|
A unified wrapper representing the function offset table. More...
#include "llvm/ProfileData/SampleProfReader.h"
Public Types | |
| enum class | TableMode { InMemory , Eytzinger } |
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.
Definition at line 1055 of file SampleProfReader.h.
|
strong |
| Enumerator | |
|---|---|
| InMemory | |
| Eytzinger | |
Definition at line 1057 of file SampleProfReader.h.
|
delete |
Referenced by operator=(), operator=(), SampleProfileFuncOffsetTable(), and SampleProfileFuncOffsetTable().
|
delete |
References SampleProfileFuncOffsetTable().
|
delete |
References SampleProfileFuncOffsetTable().
|
inlineexplicit |
Definition at line 1067 of file SampleProfReader.h.
References InMemory.
|
inline |
Definition at line 1073 of file SampleProfReader.h.
References Eytzinger.
|
inline |
Definition at line 1111 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 1105 of file SampleProfReader.h.
References assert(), and isEytzinger().
|
inline |
Insert a function GUID and its profile offset into the in-memory map.
Definition at line 1080 of file SampleProfReader.h.
References assert(), InMemory, llvm::Offset, and uint64_t.
|
inline |
Definition at line 1117 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 1088 of file SampleProfReader.h.
References isEytzinger(), and uint64_t.
|
delete |
References SampleProfileFuncOffsetTable().
|
delete |
References SampleProfileFuncOffsetTable().