This is an archive of the discontinued LLVM Phabricator instance.

[llvm-objdump][CallGraphInfo] Extract and print call site info
AcceptedPublic

Authored by necipfazil on Jul 28 2021, 9:50 PM.

Details

Summary

Collect the call site information through disassembly and print per function.
For direct calls, include the target address.

Patch 3/6: Extract call graph information from binary

Original RFC: https://lists.llvm.org/pipermail/llvm-dev/2021-June/151044.html
Updated RFC: https://lists.llvm.org/pipermail/llvm-dev/2021-July/151739.html

Diff Detail

Event Timeline

necipfazil created this revision.Jul 28 2021, 9:50 PM
necipfazil requested review of this revision.Jul 28 2021, 9:50 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 28 2021, 9:50 PM
morehouse added inline comments.Jul 29 2021, 3:35 PM
llvm/tools/llvm-objdump/llvm-objdump.cpp
228
necipfazil marked an inline comment as done.

Adapt tests to stable function order, refactor FunctionInfo::DirectCallSite

This revision is now accepted and ready to land.Jul 29 2021, 4:07 PM