[llvm] [Frontend][OpenMP] Add `order` clause as allowed for `distribute` (PR #90689)
Krzysztof Parzyszek via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 30 16:34:11 PDT 2024
https://github.com/kparzysz created https://github.com/llvm/llvm-project/pull/90689
Starting from OpenMP spec 5.1, the `order` clause is allowed on the `distribute` directive.
>From cfb95e39d72daa6895ed7406bd8f4dd1adb3722a Mon Sep 17 00:00:00 2001
From: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
Date: Tue, 30 Apr 2024 16:30:30 -0500
Subject: [PATCH] [Frontend][OpenMP] Add `order` clause as allowed for
`distribute`
Starting from OpenMP spec 5.1, the `order` clause is allowed on the
`distribute` directive.
---
llvm/include/llvm/Frontend/OpenMP/OMP.td | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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>,
More information about the llvm-commits
mailing list