[PATCH] D45850: [ELF] Read the call graph profile from object files.

Michael Spencer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 19 17:05:18 PDT 2018


Bigcheese created this revision.
Bigcheese added reviewers: ruiu, espindola.
Herald added subscribers: arichardson, emaste.

This uses the call graph profile embedded in the object files to construct the call graph.

This is read from a `SHT_LLVM_CALL_GRAPH_PROFILE` (0x6fff4c02) section as (uint32_t, uint32_t, uint64_t) tuples as (from symbol index, to symbol index, weight).

This depends on https://reviews.llvm.org/D44965 for llvm.


https://reviews.llvm.org/D45850

Files:
  ELF/Config.h
  ELF/Driver.cpp
  ELF/InputFiles.cpp
  ELF/InputFiles.h
  test/ELF/cgprofile-obj.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45850.143196.patch
Type: text/x-patch
Size: 5977 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180420/dddaf7a4/attachment.bin>


More information about the llvm-commits mailing list