[PATCH] D159544: [ELF] Change --call-graph-profile-sort to accept an argument

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 22 10:54:06 PDT 2023


MaskRay created this revision.
MaskRay added reviewers: spupyrev, wenlei, hoy, wlei, rahmanl.
Herald added subscribers: arichardson, emaste.
Herald added a project: All.
MaskRay requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Change the FF form --call-graph-profile-sort to --call-graph-profile-sort={none,hfsort}.
This will be extended to support llvm/lib/Transforms/Utils/CodeLayout.cpp.

--call-graph-profile-sort is not used in the wild but
--no-call-graph-profile-sort is (Chromium). Make --no-call-graph-profile-sort an
alias for --call-graph-profile-sort=none.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D159544

Files:
  lld/ELF/Config.h
  lld/ELF/Driver.cpp
  lld/ELF/Options.td
  lld/docs/ld.lld.1
  lld/test/ELF/cgprofile-obj.s
  lld/test/ELF/cgprofile-txt.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D159544.557249.patch
Type: text/x-patch
Size: 6143 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230922/c89ad461/attachment.bin>


More information about the llvm-commits mailing list