[llvm] Add comment for raw profile version 10. (PR #87207)

Mingming Liu via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 31 15:59:28 PDT 2024


https://github.com/minglotus-6 updated https://github.com/llvm/llvm-project/pull/87207

>From 49d24a2b44dd1ddfb2d9249a4adeaed90d1c2466 Mon Sep 17 00:00:00 2001
From: mingmingl <mingmingl at google.com>
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 f6c7960ed8bc5c..e7501f6bce641d 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 <class IntPtrT> inline uint64_t getMagic();

>From d5a60f8905ac88a2e4d5873540565679f51af394 Mon Sep 17 00:00:00 2001
From: mingmingl <mingmingl at google.com>
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 e7501f6bce641d..3a71c02d6d5cfb 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 <class IntPtrT> inline uint64_t getMagic();



More information about the llvm-commits mailing list