Skip to content

Commit 9ae171b

Browse files
committed
[OpenMP][Docs] Add remarks intro section
Reviewed By: jhuber6 Differential Revision: https://reviews.llvm.org/D93735
1 parent 3854b81 commit 9ae171b

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

openmp/docs/remarks/OptimizationRemarks.rst

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,31 @@
11
OpenMP Optimization Remarks
22
===========================
33

4+
The :doc:`OpenMP-Aware optimization pass </optimizations/OpenMPOpt>` is able to
5+
generate compiler remarks for performed and missed optimisations. To emit them,
6+
pass ``-Rpass=openmp-opt``, ``-Rpass-analysis=openmp-opt``, and
7+
``-Rpass-missed=openmp-opt`` to the Clang invocation. For more information and
8+
features of the remark system the clang documentation should be consulted:
9+
10+
+ `Clang options to emit optimization reports <https://clang.llvm.org/docs/UsersManual.html#options-to-emit-optimization-reports>`_
11+
+ `Clang diagnostic and remark flags <https://clang.llvm.org/docs/ClangCommandLineReference.html#diagnostic-flags>`_
12+
+ The `-foptimization-record-file flag
13+
<https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang-foptimization-record-file>`_
14+
and the `-fsave-optimization-record flag
15+
<https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang1-fsave-optimization-record>`_
16+
17+
18+
.. _ompXXX:
19+
20+
Some OpenMP remarks start with a "tag", like `[OMP100]`, which indicates that
21+
there is further information about them on this page. To directly jump to the
22+
respective entry, navigate to
23+
`https://openmp.llvm.org/docs/remarks/OptimizationRemarks.html#ompXXX <https://openmp.llvm.org/docs/remarks/OptimizationRemarks.html#ompXXX>`_ where `XXX` is
24+
the three digit code shown in the tag.
25+
26+
27+
----
28+
429

530
.. _omp100:
631
.. _omp_no_external_caller_in_target_region:

0 commit comments

Comments
 (0)