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

gulfemsavrun via All-commits all-commits at lists.llvm.org
Wed Dec 14 12:27:15 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7734053fd98e7d5ddc749808ce38134686425fb7
      https://github.com/llvm/llvm-project/commit/7734053fd98e7d5ddc749808ce38134686425fb7
  Author: Gulfem Savrun Yeniceri <gulfem at google.com>
  Date:   2022-12-14 (Wed, 14 Dec 2022)

  Changed paths:
    M compiler-rt/include/profile/InstrProfData.inc
    M compiler-rt/test/profile/Linux/binary-id.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