[Driver] Add flags for enabling both types of PGO Instrumentation
authorSean Silva <chisophugis@gmail.com>
Sat, 16 Jul 2016 02:54:58 +0000 (02:54 +0000)
committerSean Silva <chisophugis@gmail.com>
Sat, 16 Jul 2016 02:54:58 +0000 (02:54 +0000)
commita834ff260a21ee3385981aab38ada0957bb2e30d
tree2554513a80e9f200a3ac38d84fc52d3531d89468
parente9381bd2d8690a7e59013140d8d8506086b03b51
[Driver] Add flags for enabling both types of PGO Instrumentation

The flags:
Enable IR-level instrumentation -fprofile-generate or -fprofile-generate=
When applying profile data: -fprofile-use=/path/to/profdata

Patch by Jake VanAdrighem!

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

llvm-svn: 275668
clang/docs/UsersManual.rst
clang/include/clang/Driver/Options.td
clang/lib/Driver/Tools.cpp
clang/test/Driver/clang_f_opts.c
clang/test/Profile/gcc-flag-compatibility.c