]> granicus.if.org Git - clang/commitdiff
Add docs for -foptimization-record-file=
authorBrian Gesiak <modocache@gmail.com>
Wed, 5 Jul 2017 19:55:51 +0000 (19:55 +0000)
committerBrian Gesiak <modocache@gmail.com>
Wed, 5 Jul 2017 19:55:51 +0000 (19:55 +0000)
Summary: The Clang option was previously not included in the User's Manual.

Reviewers: anemet, davidxl, hfinkel

Reviewed By: hfinkel

Subscribers: cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@307193 91177308-0d34-0410-b5e6-96231b3b80d8

docs/UsersManual.rst

index df6344af91021edc84a4d8f3a9d833cc5c71733a..387ec63e9c3dff8522cb40113d88f9d85b3aded7 100644 (file)
@@ -332,6 +332,19 @@ output format of the diagnostics that it generates.
    using a structured YAML format, users can parse or sort the remarks in a
    convenient way.
 
+.. _opt_foptimization-record-file:
+
+**-foptimization-record-file**
+   Control the file to which optimization reports are written.
+
+   When optimization reports are being output (see
+   :ref:`-fsave-optimization-record <opt_fsave-optimization-record>`), this
+   option controls the file to which those reports are written.
+
+   If this option is not used, optimization records are output to a file named
+   after the primary file being compiled. If that's "foo.c", for example,
+   optimization records are output to "foo.opt.yaml".
+
 .. _opt_fdiagnostics-show-hotness:
 
 **-f[no-]diagnostics-show-hotness**