summaryrefslogtreecommitdiffstats
path: root/clang/docs
diff options
context:
space:
mode:
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>2019-06-14 21:38:57 +0000
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>2019-06-14 21:38:57 +0000
commit5501dda2479580ae84291d0237e794feeb38a8d9 (patch)
treee8bc59fa19fcb92d12285b321abdb23645b9c033 /clang/docs
parent282dac717eb440dd44d31fe8c3750650bd4d2cff (diff)
downloadbcm5719-llvm-5501dda2479580ae84291d0237e794feeb38a8d9.tar.gz
bcm5719-llvm-5501dda2479580ae84291d0237e794feeb38a8d9.zip
[Remarks][NFC] Improve testing and documentation of -foptimization-record-passes
This adds: * documentation to the user manual * nicer error message * test for the error case * test for the gold plugin llvm-svn: 363463
Diffstat (limited to 'clang/docs')
-rw-r--r--clang/docs/UsersManual.rst12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/docs/UsersManual.rst b/clang/docs/UsersManual.rst
index 39d9d966b24..54ff02cce1d 100644
--- a/clang/docs/UsersManual.rst
+++ b/clang/docs/UsersManual.rst
@@ -345,6 +345,18 @@ output format of the diagnostics that it generates.
after the primary file being compiled. If that's "foo.c", for example,
optimization records are output to "foo.opt.yaml".
+.. _opt_foptimization-record-passes:
+
+**-foptimization-record-passes**
+ Only include passes which match a specified regular expression.
+
+ When optimization reports are being output (see
+ :ref:`-fsave-optimization-record <opt_fsave-optimization-record>`), this
+ option controls the passes that will be included in the final report.
+
+ If this option is not used, all the passes are included in the optimization
+ record.
+
.. _opt_fdiagnostics-show-hotness:
**-f[no-]diagnostics-show-hotness**
OpenPOWER on IntegriCloud