[PATCH] D112160: [MachO] Port call graph profile section and directive
Leonard Grey via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 20 10:38:18 PDT 2021
lgrey created this revision.
lgrey added reviewers: MaskRay, Bigcheese.
Herald added subscribers: rupprecht, hiraditya.
Herald added a reviewer: jhenderson.
lgrey requested review of this revision.
Herald added a project: LLVM.
This ports the .cg_profile assembly directive and call graph profile section generation to MachO from COFF/ELF. Due to MachO section naming rules, the section is called __LLVM,__cg_profile rather than .llvm.call-graph-profile as in COFF/ELF. Support for llvm-readobj is included to facilitate testing.
Corresponding LLD change is incoming, will link when it's up.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D112160
Files:
llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
llvm/lib/MC/MCMachOStreamer.cpp
llvm/lib/MC/MCParser/DarwinAsmParser.cpp
llvm/lib/MC/MachObjectWriter.cpp
llvm/test/MC/MachO/cgprofile.ll
llvm/test/MC/MachO/cgprofile.s
llvm/tools/llvm-readobj/MachODumper.cpp
llvm/tools/llvm-readobj/llvm-readobj.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112160.381013.patch
Type: text/x-patch
Size: 12394 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211020/28ec7b8d/attachment.bin>
More information about the llvm-commits
mailing list