[Driver] Add -fsample-profile-use-profi
authorhaoyuintel <haoyu.zhang@intel.com>
Tue, 8 Nov 2022 06:51:14 +0000 (14:51 +0800)
committerPhoebe Wang <phoebe.wang@intel.com>
Tue, 8 Nov 2022 07:51:38 +0000 (15:51 +0800)
commit13f83365cdb5bb752066ee8f4149ae24dfe46cf1
tree1f04b0692965beef9d95403bf6b4309129b0fe1d
parent70c781f4b6f4b9aa851dbf950b53569a8f8bd1e8
[Driver] Add -fsample-profile-use-profi

This patch enable `-sample-profile-use-profi` in Clang frontend as user-facing
feature. By using this patch, we can use the cflag of `-fsample-profile-use-profi`
instead of `-mllvm -sample-profile-use-profi`.

Reviewed By: hans, MaskRay

Differential Revision: https://reviews.llvm.org/D136846
clang/docs/UsersManual.rst
clang/include/clang/Driver/Options.td
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/Driver/pgo-sample-use-profi.c [new file with mode: 0644]