]> granicus.if.org Git - llvm/commit
[SampleFDO] Add ExtBinary format to support extension of binary profile.
authorWei Mi <wmi@google.com>
Fri, 23 Aug 2019 19:05:30 +0000 (19:05 +0000)
committerWei Mi <wmi@google.com>
Fri, 23 Aug 2019 19:05:30 +0000 (19:05 +0000)
commit6ef59a45457c453028cc2e159aa27cb48878a85d
treea3e9d5457af3c57b3b75464d206f27f0828d7275
parent90a3ecb295f707c965b0560433efaf33d92ef0e8
[SampleFDO] Add ExtBinary format to support extension of binary profile.

This is a patch split from https://reviews.llvm.org/D66374. It tries to add
a new format of profile called ExtBinary. The format adds a section header
table to the profile and organize the profile in sections, so the future
extension like adding a new section or extending an existing section will be
easier while keeping backward compatiblity feasible.

Differential Revision: https://reviews.llvm.org/D66513

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369798 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ProfileData/SampleProf.h
include/llvm/ProfileData/SampleProfReader.h
include/llvm/ProfileData/SampleProfWriter.h
lib/ProfileData/SampleProfReader.cpp
lib/ProfileData/SampleProfWriter.cpp
test/Transforms/SampleProfile/Inputs/inline.extbinary.afdo [new file with mode: 0644]
test/Transforms/SampleProfile/profile-format.ll [moved from test/Transforms/SampleProfile/compact-binary-profile.ll with 93% similarity]
test/tools/llvm-profdata/roundtrip.test
tools/llvm-profdata/llvm-profdata.cpp
unittests/ProfileData/SampleProfTest.cpp