[flang][openacc] Allow multiple wait clauses
authorValentin Clement <clementval@gmail.com>
Wed, 27 Jan 2021 18:18:27 +0000 (13:18 -0500)
committerclementval <clementval@gmail.com>
Wed, 27 Jan 2021 18:18:46 +0000 (13:18 -0500)
commitf30c523660106dd19072ae7baed72b18adfb0aa7
tree7fb807f88649784a637aa0c0fa74b44341525317
parent90407b16b1d3e38f1360b6a24ceab801ab9cefc1
[flang][openacc] Allow multiple wait clauses

kernels loop and enter data had a too restrictive constraint for the wait clause.
The wait clause is allowed multiple times and not only once. This patch fix this problem.

Reviewed By: SouraVX

Differential Revision: https://reviews.llvm.org/D95469
flang/test/Semantics/OpenACC/acc-data.f90
flang/test/Semantics/OpenACC/acc-kernels-loop.f90
llvm/include/llvm/Frontend/OpenACC/ACC.td