[PATCH] D128854: [MemProf] Add memprof metadata related analysis utilities

Teresa Johnson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 29 13:43:23 PDT 2022


tejohnson created this revision.
tejohnson added reviewers: snehasish, davidxl.
Herald added subscribers: hiraditya, mgorny.
Herald added a project: All.
tejohnson requested review of this revision.
Herald added a project: LLVM.

Adds a number of utilities that are used to help create and update
memprof related metadata. These will be used during profile matching
and annotation, as well as by the inliner when updating the metadata.
Also adds unit tests for the utilities.

See also related RFCs:
RFC: Sanitizer-based Heap Profiler [1]
RFC: A binary serialization format for MemProf [2]
RFC: IR metadata format for MemProf [3]
(Note that the IR metadata format has changed from the RFC during
implementation, as described in the preceeding patch adding the basic
metadata and verification support.)

Depends on D128141 <https://reviews.llvm.org/D128141>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D128854

Files:
  llvm/include/llvm/Analysis/MemoryProfileInfo.h
  llvm/lib/Analysis/CMakeLists.txt
  llvm/lib/Analysis/MemoryProfileInfo.cpp
  llvm/unittests/Analysis/CMakeLists.txt
  llvm/unittests/Analysis/MemoryProfileInfoTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128854.441156.patch
Type: text/x-patch
Size: 28679 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220629/386bc26d/attachment.bin>


More information about the llvm-commits mailing list