OSDN Git Service

[flang][openacc] Add check for tile clause restriction
authorValentin Clement <clementval@gmail.com>
Fri, 28 Aug 2020 02:13:29 +0000 (22:13 -0400)
committerclementval <clementval@gmail.com>
Fri, 28 Aug 2020 02:13:46 +0000 (22:13 -0400)
commit4df2a5f782db1d4e2e11ed1cf64e085e6fce7893
tree2b15bc926cc084fb90cf4dba7ca13ac6682fa011
parentcbea17568f4301582c1d5d43990f089ca6cff522
[flang][openacc] Add check for tile clause restriction

The tile clause in OpenACC 3.0 imposes some restriction. Element in the tile size list are either * or a
constant positive integer expression. If there are n tile sizes in the list, the loop construct must be immediately
followed by n tightly-nested loops.
This patch implement these restrictions and add some tests.

Reviewed By: klausler

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