[llvm] [LLVM][OpenMP] "nowait" clause is valid for "workshare" (PR #88426)

via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 11 12:15:02 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-flang-openmp

Author: Krzysztof Parzyszek (kparzysz)

<details>
<summary>Changes</summary>

Add the "if" clause to the list of allowed clauses for the "workshare" directive.

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


1 Files Affected:

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


``````````diff
diff --git a/llvm/include/llvm/Frontend/OpenMP/OMP.td b/llvm/include/llvm/Frontend/OpenMP/OMP.td
index d9a931438b4292..e91169e8da1aa5 100644
--- a/llvm/include/llvm/Frontend/OpenMP/OMP.td
+++ b/llvm/include/llvm/Frontend/OpenMP/OMP.td
@@ -2115,6 +2115,9 @@ def OMP_scope : Directive<"scope"> {
   let association = AS_Block;
 }
 def OMP_Workshare : Directive<"workshare"> {
+  let allowedOnceClauses = [
+    VersionedClause<OMPC_NoWait>
+  ];
   let association = AS_Block;
 }
 def OMP_ParallelWorkshare : Directive<"parallel workshare"> {

``````````

</details>


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


More information about the llvm-commits mailing list