[llvm] [Frontend][OpenMP] Add `order` clause as allowed for `distribute` (PR #90689)

via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 30 16:34:38 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-flang-openmp

Author: Krzysztof Parzyszek (kparzysz)

<details>
<summary>Changes</summary>

Starting from OpenMP spec 5.1, the `order` clause is allowed on the `distribute` directive.

---
Full diff: https://github.com/llvm/llvm-project/pull/90689.diff


1 Files Affected:

- (modified) llvm/include/llvm/Frontend/OpenMP/OMP.td (+2-1) 


``````````diff
diff --git a/llvm/include/llvm/Frontend/OpenMP/OMP.td b/llvm/include/llvm/Frontend/OpenMP/OMP.td
index e91169e8da1aa5..9c9bfb4c59fc77 100644
--- a/llvm/include/llvm/Frontend/OpenMP/OMP.td
+++ b/llvm/include/llvm/Frontend/OpenMP/OMP.td
@@ -1173,7 +1173,8 @@ def OMP_Distribute : Directive<"distribute"> {
     VersionedClause<OMPC_Private>,
     VersionedClause<OMPC_FirstPrivate>,
     VersionedClause<OMPC_LastPrivate>,
-    VersionedClause<OMPC_Allocate>
+    VersionedClause<OMPC_Allocate>,
+    VersionedClause<OMPC_Order, 51>
   ];
   let allowedOnceClauses = [
     VersionedClause<OMPC_Collapse>,

``````````

</details>


https://github.com/llvm/llvm-project/pull/90689


More information about the llvm-commits mailing list