[all-commits] [llvm/llvm-project] cd47ae: [Profile] Enable binary profile correlation for Ma...

Marina Taylor via All-commits all-commits at lists.llvm.org
Mon Feb 9 10:31:26 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cd47ae9f8ff9afa46209806e94bfadb0056049c5
      https://github.com/llvm/llvm-project/commit/cd47ae9f8ff9afa46209806e94bfadb0056049c5
  Author: Marina Taylor <marina_taylor at apple.com>
  Date:   2026-02-09 (Mon, 09 Feb 2026)

  Changed paths:
    M compiler-rt/test/profile/instrprof-binary-correlate.c
    M llvm/include/llvm/ProfileData/InstrProfCorrelator.h
    M llvm/lib/ProfileData/InstrProfCorrelator.cpp

  Log Message:
  -----------
  [Profile] Enable binary profile correlation for Mach-O binaries (#179937)

The existing ELF/COFF correlation code mostly "just works" on Mach-O
files, with one gotcha: on disk, the pointers in `__llvm_covdata` are
stored in an encoded format due to dyld fixup chains. (In memory, they
would normally be fixed up at load time in a running binary, but the
correlator only looks at the on-disk values.)

LLVM's Mach-O reader knows how to decode the format, so this patch walks
the fixup table to create a set of mappings that the correlator can use
to resolve the values.

rdar://168259786



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list