[InstrProf] Add new format for -fprofile-list=
authorEllis Hoag <ellis.sparky.hoag@gmail.com>
Fri, 29 Jul 2022 21:49:44 +0000 (14:49 -0700)
committerEllis Hoag <ellis.sparky.hoag@gmail.com>
Thu, 4 Aug 2022 15:49:43 +0000 (08:49 -0700)
commitb692312ca432d9a379f67a8d83177a6f1722baaa
treebc5a3169a2cd3969faa9bcbc1da314b6854070d2
parentbcf6ffb87ec67ba41daeaab905b2c57a50568aa0
[InstrProf] 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`.

Reviewed By: phosek

Differential Revision: https://reviews.llvm.org/D130808
clang/docs/UsersManual.rst
clang/include/clang/Basic/ProfileList.h
clang/lib/Basic/ProfileList.cpp
clang/lib/CodeGen/CodeGenFunction.cpp
clang/lib/CodeGen/CodeGenModule.cpp
clang/lib/CodeGen/CodeGenModule.h
clang/test/CodeGen/profile-filter-new.c [new file with mode: 0644]
clang/test/CodeGen/profile-function-groups.c