From 49d24a2b44dd1ddfb2d9249a4adeaed90d1c2466 Mon Sep 17 00:00:00 2001 From: mingmingl Date: Sun, 31 Mar 2024 15:47:07 -0700 Subject: [PATCH 1/2] Add comment for raw profile version 10. - The raw profile format change is in pr 82711. --- llvm/include/llvm/ProfileData/InstrProf.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/include/llvm/ProfileData/InstrProf.h b/llvm/include/llvm/ProfileData/InstrProf.h index f6c7960ed8bc5..e7501f6bce641 100644 --- a/llvm/include/llvm/ProfileData/InstrProf.h +++ b/llvm/include/llvm/ProfileData/InstrProf.h @@ -1195,6 +1195,9 @@ namespace RawInstrProf { // Version 7: Reorder binary id and include version in signature. // Version 8: Use relative counter pointer. // Version 9: Added relative bitmap bytes pointer and count used by MC/DC. +// Version 10: Added vtable, a new type of value profile data. If vtable +// instrumentation is enabled, two new sections will be added in the raw +// profiles. const uint64_t Version = INSTR_PROF_RAW_VERSION; template inline uint64_t getMagic(); From d5a60f8905ac88a2e4d5873540565679f51af394 Mon Sep 17 00:00:00 2001 From: mingmingl Date: Sun, 31 Mar 2024 15:58:58 -0700 Subject: [PATCH 2/2] remove the line for implementation details --- llvm/include/llvm/ProfileData/InstrProf.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/llvm/include/llvm/ProfileData/InstrProf.h b/llvm/include/llvm/ProfileData/InstrProf.h index e7501f6bce641..3a71c02d6d5cf 100644 --- a/llvm/include/llvm/ProfileData/InstrProf.h +++ b/llvm/include/llvm/ProfileData/InstrProf.h @@ -1195,9 +1195,7 @@ namespace RawInstrProf { // Version 7: Reorder binary id and include version in signature. // Version 8: Use relative counter pointer. // Version 9: Added relative bitmap bytes pointer and count used by MC/DC. -// Version 10: Added vtable, a new type of value profile data. If vtable -// instrumentation is enabled, two new sections will be added in the raw -// profiles. +// Version 10: Added vtable, a new type of value profile data. const uint64_t Version = INSTR_PROF_RAW_VERSION; template inline uint64_t getMagic();