[all-commits] [llvm/llvm-project] 20daa7: [NFC]Codestyle changes for SampleFDO library (#147...

Mingming Liu via All-commits all-commits at lists.llvm.org
Wed Jul 9 16:48:38 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 20daa73a0962efd22cee3bbf327ee35b22add39d
      https://github.com/llvm/llvm-project/commit/20daa73a0962efd22cee3bbf327ee35b22add39d
  Author: Mingming Liu <mingmingl at google.com>
  Date:   2025-07-09 (Wed, 09 Jul 2025)

  Changed paths:
    M llvm/include/llvm/ProfileData/SampleProf.h
    M llvm/lib/ProfileData/SampleProf.cpp
    M llvm/lib/ProfileData/SampleProfReader.cpp
    M llvm/lib/ProfileData/SampleProfWriter.cpp

  Log Message:
  -----------
  [NFC]Codestyle changes for SampleFDO library (#147840)

* Introduce an error code for illegal_line_offset in sampleprof_error
namespace, and use it for line offset parsing error.
* Add `const` for `LineLocation::serialize`.
* Use structured binding, make_first/second_range in loops.

I'm working on a [sample-profile format
change](https://github.com/llvm/llvm-project/compare/users/mingmingl-llvm/samplefdo-profile-format)
to extend SampleFDO profile with vtable profiles. And this change splits
the non-functional changes.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list