[all-commits] [llvm/llvm-project] 1ae7d8: [profile] Add binary ids into indexed profiles

gulfemsavrun via All-commits all-commits at lists.llvm.org
Thu Dec 29 10:48:58 PST 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1ae7d83803e45f6053ec6a606f259653846926b8
  Author: Gulfem Savrun Yeniceri <gulfem at google.com>
  Date:   2022-12-29 (Thu, 29 Dec 2022)

  Changed paths:
    M compiler-rt/include/profile/InstrProfData.inc
    M compiler-rt/test/profile/Linux/binary-id.c
    M compiler-rt/test/profile/Linux/counter_promo_for.c
    M compiler-rt/test/profile/Linux/counter_promo_nest.c
    M compiler-rt/test/profile/Linux/counter_promo_while.c
    M compiler-rt/test/profile/Linux/instrprof-debug-info-correlate.c
    M llvm/include/llvm/ProfileData/InstrProf.h
    M llvm/include/llvm/ProfileData/InstrProfData.inc
    M llvm/include/llvm/ProfileData/InstrProfReader.h
    M llvm/include/llvm/ProfileData/InstrProfWriter.h
    M llvm/lib/ProfileData/InstrProf.cpp
    M llvm/lib/ProfileData/InstrProfReader.cpp
    M llvm/lib/ProfileData/InstrProfWriter.cpp
    M llvm/tools/llvm-profdata/llvm-profdata.cpp

  Log Message:
  [profile] Add binary ids into indexed profiles

This patch adds support for including binary ids in an indexed profile.
It adds a new field into the header that points to the offset of the
binary id section. The binary id section consists of a size of the
section, and a list of binary ids (if they are present) that consist
of two parts: length and data.

This patch guarantees that indexed profile is backwards compatible
after adding binary ids.

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

More information about the All-commits mailing list