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

Snehasish Kumar via llvm-commits llvm-commits at lists.llvm.org
Wed May 21 11:10:25 PDT 2025


================
@@ -41,6 +41,8 @@ namespace data_access_prof {
 struct SourceLocation {
   SourceLocation(StringRef FileNameRef, uint32_t Line)
       : FileName(FileNameRef.str()), Line(Line) {}
+
+  SourceLocation() {}
----------------
snehasish wrote:

I tried removing this ctor and realized it's needed for the yaml conversion. Can you add a comment?

Also same for the DataAccessProfRecord below.

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


More information about the llvm-commits mailing list