llvm-project
0a5aa293 - Introduction of Composite Profile section in ExtBinary format (#166553)

Commit
70 days ago
Introduction of Composite Profile section in ExtBinary format (#166553) New sections are introduced for storing profile of vairous types: * SecCompositeProfile (like SecLBRProfile but can conain multi-type profile) * SecCompositeFuncOffsetTable (like SecFuncOffsetTable but offsets point to SecCompositeProfile) The only change in the structure of ExtBinary is a substitution of SecLBRProfile and SecFuncOffsetTable sections by new (composite) ones, so, to void duplication of layout description and handling, all changes are done on low-level: section types are modified in the existing layout right before profile writing. No new profile types are introduced - this change is rather a preparation for future profiling extentions: only LBR profile can be inside currently. Processing of VTable profile is unmodified. Extended description is here: https://discourse.llvm.org/t/rfc-typifiedprofilesection-generalized-per-function-profile-blocks-in-extbinary-format/87881 Testing of the new scenario is added to llvm/test/tools/llvm-profdata/sample-flatten-profile.test and also new tests are introduced. Assisted by GPT-5.
Author
Parents
Loading