From 5501dda2479580ae84291d0237e794feeb38a8d9 Mon Sep 17 00:00:00 2001 From: Francis Visoiu Mistrih Date: Fri, 14 Jun 2019 21:38:57 +0000 Subject: [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 --- clang/docs/UsersManual.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'clang/docs') 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 `), 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** -- cgit v1.2.3