[all-commits] [llvm/llvm-project] b836f9: [Coverage] Support -fprofile-list for cold functio...

Lei Wang via All-commits all-commits at lists.llvm.org
Thu May 8 10:52:00 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b836f96b8f51daa76f6387de364603db0fe553a7
      https://github.com/llvm/llvm-project/commit/b836f96b8f51daa76f6387de364603db0fe553a7
  Author: Lei Wang <wlei at fb.com>
  Date:   2025-05-08 (Thu, 08 May 2025)

  Changed paths:
    M clang/docs/UsersManual.rst
    M clang/include/clang/Basic/CodeGenOptions.def
    M clang/include/clang/Basic/CodeGenOptions.h
    M clang/include/clang/Driver/Options.td
    M clang/lib/Basic/ProfileList.cpp
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/test/CodeGen/profile-filter.c
    M clang/test/Driver/fprofile-generate-cold-function-coverage.c

  Log Message:
  -----------
  [Coverage] Support -fprofile-list for cold function coverage (#136333)

Add a new instrumentation section type `[sample-coldcov]` to
support`-fprofile-list` for sample pgo based cold function coverage.
Note that the current cold function coverage is based on sampling PGO
pipeline, which is incompatible with the existing [llvm] option(see
[PGOOptions](https://github.com/llvm/llvm-project/blob/main/llvm/include/llvm/Support/PGOOptions.h#L27-L43)),
so we can't reuse the IR-PGO(-fprofile-instrument=llvm) flag.



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