[PATCH] D113727: [llvm-profgen] Add switch to allow use of first loadable segment for calculating offset

Wenlei He via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 11 18:31:00 PST 2021


wenlei created this revision.
wenlei added reviewers: hoy, wlei.
Herald added subscribers: modimo, lxfind.
wenlei requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Adding `-use-loadable-segment-as-base` to allow use of first loadable segment for calculating offset. By default first executable segment is used for calculating offset. The switch helps compatibility with unsymbolized profile generated from older tools.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D113727

Files:
  llvm/test/tools/llvm-profgen/inline-cs-pseudoprobe.test
  llvm/tools/llvm-profgen/PerfReader.cpp
  llvm/tools/llvm-profgen/ProfiledBinary.cpp
  llvm/tools/llvm-profgen/ProfiledBinary.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113727.386709.patch
Type: text/x-patch
Size: 6946 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211112/51783aa2/attachment.bin>


More information about the llvm-commits mailing list