llvm-project/llvm/lib/ProfileData
Leonard Chan b9f547e8e5 [llvm][profile] Add padding after binary IDs
Some tests with binary IDs would fail with error: no profile can be merged.
This is because raw profiles could have unaligned headers when emitting binary
IDs. This means padding should be emitted after binary IDs are emitted to
ensure everything else is aligned. This patch adds padding after each binary ID
to ensure the next binary ID size is 8-byte aligned. This also adds extra
checks to ensure we aren't reading corrupted data when printing binary IDs.

Differential Revision: https://reviews.llvm.org/D110365
2021-09-28 11:50:50 -07:00
..
Coverage PR51018: Remove explicit conversions from SmallString to StringRef to future-proof against C++23 2021-07-08 13:37:57 -07:00
CMakeLists.txt Revert "[SampleFDO][NFC] Refactor SampleProfile.cpp" 2021-02-16 22:11:42 +00:00
GCOV.cpp [llvm-cov gcov] Support GCC 12 format 2021-06-19 22:51:20 -07:00
InstrProf.cpp [CSPGO] Fix lost IRPGOFlag in CSPGO instrumentation 2021-08-24 09:41:29 -07:00
InstrProfReader.cpp [llvm][profile] Add padding after binary IDs 2021-09-28 11:50:50 -07:00
InstrProfWriter.cpp [llvm-profdata] Emit Error when Invalid MemOpSize Section is Created by llvm-profdata 2021-02-23 12:51:54 -08:00
ProfileSummaryBuilder.cpp [CSSPGO] Split context string to deduplicate function name used in the context. 2021-08-30 20:09:29 -07:00
SampleProf.cpp [CSSPGO] Split context string to deduplicate function name used in the context. 2021-08-30 20:09:29 -07:00
SampleProfReader.cpp Fix Wdocumentation unknown parameter warning. NFCI. 2021-09-04 15:06:53 +01:00
SampleProfWriter.cpp [CSSPGO] Sort function offset table to speed up profile loading. 2021-09-01 12:17:48 -07:00