[all-commits] [llvm/llvm-project] 0f8539: [MachO] Port call graph profile section and directive

Leonard Grey via All-commits all-commits at lists.llvm.org
Wed Jan 12 06:22:55 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0f853930042f11f5ee489bd56b48a227d057c37e
      https://github.com/llvm/llvm-project/commit/0f853930042f11f5ee489bd56b48a227d057c37e
  Author: Leonard Grey <lgrey at chromium.org>
  Date:   2022-01-12 (Wed, 12 Jan 2022)

  Changed paths:
    M llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
    M llvm/lib/MC/MCMachOStreamer.cpp
    M llvm/lib/MC/MCParser/DarwinAsmParser.cpp
    M llvm/lib/MC/MachObjectWriter.cpp
    A llvm/test/MC/MachO/cgprofile.ll
    A llvm/test/MC/MachO/cgprofile.s
    M llvm/tools/llvm-readobj/MachODumper.cpp
    M llvm/tools/llvm-readobj/llvm-readobj.cpp

  Log Message:
  -----------
  [MachO] Port call graph profile section and directive

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 D112164

Differential Revision: https://reviews.llvm.org/D112160




More information about the All-commits mailing list