[flang][openacc] Add clause validity tests for the update directive
authorValentin Clement <clementval@gmail.com>
Tue, 8 Dec 2020 15:36:34 +0000 (10:36 -0500)
committerclementval <clementval@gmail.com>
Tue, 8 Dec 2020 15:47:06 +0000 (10:47 -0500)
commit1dd24e6ab7a70242edfa4139441bfe7753892b4e
treec32db070951caec95eb966245bbf88d4e704e9a7
parent77b509710ce7e6aec9ab460bc22a34f44fa94ab3
[flang][openacc] Add clause validity tests for the update directive

Add couple of clause validity tests for the update directive and check for
the restriction where at least self, host or device clause must appear on the directive.

Reviewed By: sameeranjoshi

Differential Revision: https://reviews.llvm.org/D92447
flang/include/flang/Parser/dump-parse-tree.h
flang/include/flang/Parser/parse-tree.h
flang/lib/Lower/OpenACC.cpp
flang/lib/Parser/openacc-parsers.cpp
flang/lib/Semantics/check-acc-structure.cpp
flang/test/Semantics/acc-clause-validity.f90
llvm/include/llvm/Frontend/OpenACC/ACC.td