[llvm-branch-commits] [clang] 34ff6a7 - [docs] Update release notes for OpenMP 5.1 loop transformations.

Michael Kruse via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Aug 26 11:48:00 PDT 2021


Author: Michael Kruse
Date: 2021-08-26T13:45:39-05:00
New Revision: 34ff6a75f58377f32a5046a29f55c4c0e58bee9e

URL: https://github.com/llvm/llvm-project/commit/34ff6a75f58377f32a5046a29f55c4c0e58bee9e
DIFF: https://github.com/llvm/llvm-project/commit/34ff6a75f58377f32a5046a29f55c4c0e58bee9e.diff

LOG: [docs] Update release notes for OpenMP 5.1 loop transformations.

Added: 
    

Modified: 
    clang/docs/ReleaseNotes.rst

Removed: 
    


################################################################################
diff  --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst
index 285e057d92dde..4b6f4fe5e245b 100644
--- a/clang/docs/ReleaseNotes.rst
+++ b/clang/docs/ReleaseNotes.rst
@@ -161,6 +161,24 @@ ABI Changes in Clang
 OpenMP Support in Clang
 -----------------------
 
+- Support for loop transformation directives from OpenMP 5.1 have been added.
+  ``#pragma omp unroll`` is a standardized alternative to ``#pragma unroll``
+  (or ``#pragma clang loop unroll(enable)``) but also allows composition with
+  other OpenMP loop associated constructs as in
+
+  .. code-block:: c
+    #pragma omp parallel for
+    #pragma omp unroll partial(4)
+    for (int i = 0; i < n; ++i)
+
+  ``#pragma omp tile`` applies tiling to a perfect loop nest using a
+  user-defined tile size.
+
+  .. code-block:: c
+    #pragma omp tile sizes(8,8)
+    for (int i = 0; i < m; ++i)
+      for (int j = 0; j < n; ++j)
+
 - ...
 
 CUDA Support in Clang


        


More information about the llvm-branch-commits mailing list