[all-commits] [llvm/llvm-project] 9a8f90: [memprof] Move writeMemProf to a separate file (#1...

Kazu Hirata via All-commits all-commits at lists.llvm.org
Wed Apr 23 15:40:06 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9a8f90dba3f8c25cbb3525a482053d3abcd3fddc
      https://github.com/llvm/llvm-project/commit/9a8f90dba3f8c25cbb3525a482053d3abcd3fddc
  Author: Kazu Hirata <kazu at google.com>
  Date:   2025-04-23 (Wed, 23 Apr 2025)

  Changed paths:
    A llvm/include/llvm/ProfileData/IndexedMemProfData.h
    M llvm/lib/ProfileData/CMakeLists.txt
    A llvm/lib/ProfileData/IndexedMemProfData.cpp
    M llvm/lib/ProfileData/InstrProfWriter.cpp

  Log Message:
  -----------
  [memprof] Move writeMemProf to a separate file (#137051)

This patch moves writeMemProf and its subroutines to a separate file.

The intent is as follows:

- Reduce the size of InstrProfWriter.cpp.
- Move the subroutines to a separate file because they don't interact
  with anything else in InstrProfWriter.cpp.

Remarks:

- The new file is named IndexedMemProfData.cpp without "Writer" in the
  name so that we can move the reader code to this file in the future.
- This patch just moves code without changing the function signatures
  for now.  It might make sense to implement a class encompassing
  "serialize" and "deserialize" methods for IndexedMemProfData, but
  that's left to subsequent patches.



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