[all-commits] [llvm/llvm-project] 6f4c3c: [InstrProf][attempt 2] Add new format for -fprofil...

Ellis Hoag via All-commits all-commits at lists.llvm.org
Thu Aug 4 17:13:09 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6f4c3c0f6463880b685bfbca1932c06fd0c1f015
      https://github.com/llvm/llvm-project/commit/6f4c3c0f6463880b685bfbca1932c06fd0c1f015
  Author: Ellis Hoag <ellis.sparky.hoag at gmail.com>
  Date:   2022-08-04 (Thu, 04 Aug 2022)

  Changed paths:
    M clang/docs/UsersManual.rst
    M clang/include/clang/Basic/ProfileList.h
    M clang/lib/Basic/ProfileList.cpp
    M clang/lib/CodeGen/CodeGenFunction.cpp
    M clang/lib/CodeGen/CodeGenModule.cpp
    M clang/lib/CodeGen/CodeGenModule.h
    A clang/test/CodeGen/profile-filter-new.c
    M clang/test/CodeGen/profile-function-groups.c

  Log Message:
  -----------
  [InstrProf][attempt 2] Add new format for -fprofile-list=

In D130807 we added the `skipprofile` attribute. This commit
changes the format so we can either `forbid` or `skip` profiling
functions by adding the `noprofile` or `skipprofile` attributes,
respectively. The behavior of the original format remains
unchanged.

Also, add the `skipprofile` attribute when using
`-fprofile-function-groups`.

This was originally landed as https://reviews.llvm.org/D130808 but was
reverted due to a Windows test failure.

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




More information about the All-commits mailing list