[PATCH] D21823: [Driver] Add flags for enabling both types of PGO Instrumentation

Jake VanAdrighem via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 28 17:20:36 PDT 2016


jakev created this revision.
jakev added reviewers: silvas, davidxl, friss, vsk, bob.wilson, xur.
jakev added a subscriber: cfe-commits.
jakev set the repository for this revision to rL LLVM.

The flags:
For frontend instrumentation: `-fpgo-train=source-cfg`
For IR-level instrumentation: `-fpgo-train=optimizer-cfg`
When applying profile data: `-fpgo-apply=/path/to/profdata`

This flag format is convenient in the event that we want to extend the feature set we enable/disable on the command line. As an example, something like value-profiling via `-fpgo-train=optimizer-cfg,value-profiling`.

Repository:
  rL LLVM

http://reviews.llvm.org/D21823

Files:
  include/clang/Driver/Options.td
  lib/Driver/ToolChain.cpp
  lib/Driver/Tools.cpp
  test/Driver/clang_f_opts.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21823.62138.patch
Type: text/x-patch
Size: 9375 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160629/7d1b1b80/attachment-0001.bin>


More information about the cfe-commits mailing list