[flang][openacc] Fix semantic check for wait and atomic directives
authorValentin Clement <clementval@gmail.com>
Fri, 23 Oct 2020 14:31:33 +0000 (10:31 -0400)
committerclementval <clementval@gmail.com>
Fri, 23 Oct 2020 14:31:50 +0000 (10:31 -0400)
commit676ff75d60792d98161f95460e7f982664f39603
treedef86cb934ddea21dbd66e838c03ee176d88b367
parentf55eeea4024cb05bff2c9f72968f23183e992a32
[flang][openacc] Fix semantic check for wait and atomic directives

wait and atomic directives are represented by OpenACCWaitConstruct, OpenACCAtmicConstruct in the parser. Those contrsuct were
not taken into account in the semantic check so far.

Reviewed By: kiranchandramohan

Differential Revision: https://reviews.llvm.org/D88628
flang/include/flang/Parser/parse-tree.h
flang/lib/Parser/openacc-parsers.cpp
flang/lib/Semantics/check-acc-structure.cpp
flang/lib/Semantics/check-acc-structure.h
flang/test/Semantics/acc-clause-validity.f90