|
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 994 of file SampleProfReader.h.
|
strong |
| Enumerator | |
|---|---|
| InMemory | |
| Eytzinger | |
Definition at line 996 of file SampleProfReader.h.
|
delete |
Referenced by operator=(), operator=(), SampleProfileFuncOffsetTable(), and SampleProfileFuncOffsetTable().
|
delete |
References SampleProfileFuncOffsetTable().
|
delete |
References SampleProfileFuncOffsetTable().
|
inlineexplicit |
Definition at line 1006 of file SampleProfReader.h.
References InMemory.
|
inline |
Definition at line 1012 of file SampleProfReader.h.
References Eytzinger.
|
inline |
Definition at line 1050 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 1044 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 1019 of file SampleProfReader.h.
References assert(), InMemory, and llvm::Offset.
|
inline |
Definition at line 1056 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 1027 of file SampleProfReader.h.
References isEytzinger().
|
delete |
References SampleProfileFuncOffsetTable().
|
delete |
References SampleProfileFuncOffsetTable().