OSDN Git Service

[flang][openacc] Enforce delcare directive restriction
authorValentin Clement <clementval@gmail.com>
Thu, 7 Jan 2021 14:25:00 +0000 (09:25 -0500)
committerclementval <clementval@gmail.com>
Thu, 7 Jan 2021 14:28:55 +0000 (09:28 -0500)
commitb73736a4048172c48b6b5c23d1321f230d442306
tree67242728dce5d27050c6992cf6a338159c0dad60
parent037b058e41979fa5e6ffd209033dfe72abb97b53
[flang][openacc] Enforce delcare directive restriction

Add semantic check for most of the restrictions for the declare directive.

Reviewed By: kiranktp

Differential Revision: https://reviews.llvm.org/D92741
flang/lib/Semantics/check-acc-structure.cpp
flang/lib/Semantics/resolve-directives.cpp
flang/test/Semantics/acc-clause-validity.f90
flang/test/Semantics/acc-declare-validity.f90 [new file with mode: 0644]