[llvm] [StaticDataLayout][PGO]Implement reader and writer change for data access profiles (PR #139997)

via llvm-commits llvm-commits at lists.llvm.org
Wed May 21 16:27:10 PDT 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions h,cpp -- llvm/include/llvm/ProfileData/DataAccessProf.h llvm/include/llvm/ProfileData/IndexedMemProfData.h llvm/include/llvm/ProfileData/InstrProfReader.h llvm/include/llvm/ProfileData/InstrProfWriter.h llvm/include/llvm/ProfileData/MemProfReader.h llvm/include/llvm/ProfileData/MemProfYAML.h llvm/lib/ProfileData/DataAccessProf.cpp llvm/lib/ProfileData/IndexedMemProfData.cpp llvm/lib/ProfileData/InstrProfReader.cpp llvm/lib/ProfileData/InstrProfWriter.cpp llvm/lib/ProfileData/MemProfReader.cpp llvm/tools/llvm-profdata/llvm-profdata.cpp llvm/unittests/ProfileData/DataAccessProfTest.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/include/llvm/ProfileData/IndexedMemProfData.h b/llvm/include/llvm/ProfileData/IndexedMemProfData.h
index 18be88ab7..2b40094a9 100644
--- a/llvm/include/llvm/ProfileData/IndexedMemProfData.h
+++ b/llvm/include/llvm/ProfileData/IndexedMemProfData.h
@@ -89,8 +89,7 @@ private:
 Error writeMemProf(
     ProfOStream &OS, memprof::IndexedMemProfData &MemProfData,
     memprof::IndexedVersion MemProfVersionRequested, bool MemProfFullSchema,
-    std::unique_ptr<memprof::DataAccessProfData>
-        DataAccessProfileData);
+    std::unique_ptr<memprof::DataAccessProfData> DataAccessProfileData);
 
 } // namespace llvm
 #endif

``````````

</details>


https://github.com/llvm/llvm-project/pull/139997


More information about the llvm-commits mailing list