[PATCH] D93254: [NFC][SampleFDO] Support multiple sections with the same type in ExtBinary format.
Wei Mi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 14 15:09:36 PST 2020
wmi created this revision.
wmi added reviewers: davidxl, hoy, wenlei.
Herald added a subscriber: hiraditya.
wmi requested review of this revision.
Herald added a project: LLVM.
Currently ExtBinary format doesn't support multiple sections with the same type in the profile. We add the support in this patch. Previously we use the section type to identify a section uniquely. Now we introduces a LayoutIndex in the SecHdrTable and use the LayoutIndex to locate the target section. The allocations of NameTable and FuncOffsetTable are adjusted accordingly.
Repository:
rL LLVM
https://reviews.llvm.org/D93254
Files:
llvm/include/llvm/ProfileData/SampleProfWriter.h
llvm/lib/ProfileData/SampleProfReader.cpp
llvm/lib/ProfileData/SampleProfWriter.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93254.311724.patch
Type: text/x-patch
Size: 10781 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201214/03dffe30/attachment.bin>
More information about the llvm-commits
mailing list