[PATCH] D17737: [PGO] change profile use cc1 option
Rong Xu via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 29 13:55:24 PST 2016
xur created this revision.
xur added reviewers: davidxl, silvas, bogner.
xur added subscribers: davidxl, xur, cfe-commits.
This patch takes the suggestion by Sean Silva in https://reviews.llvm.org/D17622 to decouple cc1 option from driver level option.
-fprofile-instr-use={} is now a driver only option. The cc1 part is replaced by -fprofile-instrument-use={llvm,clang}.
It sets a CodeGenOpt `ProfileUse` which is either {None, Clang, LLVM}, a common enum for -fprofile-instrument={} (for the profile instrument).
The profile path cc1 option now becomes -fprofile-instrument-usepath={}.
http://reviews.llvm.org/D17737
Files:
include/clang/Driver/CC1Options.td
include/clang/Driver/Options.td
include/clang/Frontend/CodeGenOptions.def
include/clang/Frontend/CodeGenOptions.h
lib/CodeGen/BackendUtil.cpp
lib/CodeGen/CodeGenModule.cpp
lib/Driver/Tools.cpp
lib/Frontend/CompilerInvocation.cpp
test/CodeGen/Inputs/pgotestclang.profraw
test/CodeGen/Inputs/pgotestir.profraw
test/CodeGen/pgo-instrumentation.c
test/Driver/clang_f_opts.c
test/Profile/c-captured.c
test/Profile/c-counter-overflows.c
test/Profile/c-general.c
test/Profile/c-outdated-data.c
test/Profile/c-unprofiled-blocks.c
test/Profile/c-unprofiled.c
test/Profile/cxx-lambda.cpp
test/Profile/cxx-rangefor.cpp
test/Profile/cxx-templates.cpp
test/Profile/objc-general.m
test/Profile/profile-does-not-exist.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17737.49421.patch
Type: text/x-patch
Size: 21596 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160229/20a947f5/attachment-0001.bin>
More information about the cfe-commits
mailing list