[flang-commits] [PATCH] D82255: [flang][OpenMP] Enhance parser support for taskwait construct to OpenMP 5.0
Kiran Kumar T P via Phabricator via flang-commits
flang-commits at lists.llvm.org
Wed Jul 15 00:57:44 PDT 2020
kiranktp updated this revision to Diff 278098.
kiranktp added a comment.
Rebasing after @clementval's patch and adding appropriate changes needed.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D82255/new/
https://reviews.llvm.org/D82255
Files:
flang/test/Semantics/omp-clause-validity01.f90
llvm/include/llvm/Frontend/OpenMP/OMP.td
Index: llvm/include/llvm/Frontend/OpenMP/OMP.td
===================================================================
--- llvm/include/llvm/Frontend/OpenMP/OMP.td
+++ llvm/include/llvm/Frontend/OpenMP/OMP.td
@@ -312,7 +312,11 @@
}
def OMP_TaskYield : Directive<"taskyield"> {}
def OMP_Barrier : Directive<"barrier"> {}
-def OMP_TaskWait : Directive<"taskwait"> {}
+def OMP_TaskWait : Directive<"taskwait"> {
+ let allowedClauses = [
+ VersionedClause<OMPC_Depend>
+ ];
+}
def OMP_TaskGroup : Directive<"taskgroup"> {
let allowedClauses = [
VersionedClause<OMPC_TaskReduction>,
Index: flang/test/Semantics/omp-clause-validity01.f90
===================================================================
--- flang/test/Semantics/omp-clause-validity01.f90
+++ flang/test/Semantics/omp-clause-validity01.f90
@@ -396,6 +396,9 @@
!$omp taskyield
!$omp barrier
!$omp taskwait
+ !$omp taskwait depend(source)
+ !ERROR: Internal: no symbol found for 'i'
+ !$omp taskwait depend(sink:i-1)
! !$omp target enter data map(to:arrayA) map(alloc:arrayB)
! !$omp target update from(arrayA) to(arrayB)
! !$omp target exit data map(from:arrayA) map(delete:arrayB)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82255.278098.patch
Type: text/x-patch
Size: 1178 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20200715/8bc3da59/attachment.bin>
More information about the flang-commits
mailing list