[llvm] Introduction of typified section in ExtBinary format (PR #166553)

Mingming Liu via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 10 10:58:35 PST 2025


mingmingl-llvm wrote:

> In ExtBinary file a new profile type is introduced (say ProfTypeLoadLat) and then it will be possible to have a sub-record inside a function record in SecTypifiedProfile section for this new profile type. This sub-record for ProfTypeLoadLat can contain a list of [line:descriminator, profiled_latency] pairs.
>
> Then, when ExtBinary file is loaded, this new profile is read and [line:descriminator, profiled_latency] pairs are moved to a new map in FunctionSamples (e.g. std::map<LineLocation, ProfiledLoadLat> LoadLatencies).

How will be `line:discriminator` represented in the serialized profile? Would it make sense to support sharing the storage of same `line:discriminator` in different (LBR, load latency above) type sections?



https://github.com/llvm/llvm-project/pull/166553


More information about the llvm-commits mailing list