[Flang] [OpenMP] [Semantics] Change SIMD ALIGNED clause support from parsing a std...
authorRaghu Maddhipatla <Raghu.Maddhipatla@amd.com>
Fri, 9 Jun 2023 23:27:35 +0000 (18:27 -0500)
committerRaghu Maddhipatla <Raghu.Maddhipatla@amd.com>
Thu, 29 Jun 2023 22:24:54 +0000 (17:24 -0500)
commitf36a25479b5ead98f1a9cfb1ce59612687f5f5d1
treeac7326cf9f6dc68bde791387223d5e5452b20766
parent47934c119ee2af943df8b3ddc5d36f1c3d29e6b0
[Flang] [OpenMP] [Semantics] Change SIMD ALIGNED clause support from parsing a std::list<Name> to OmpObjectlist

This is an assisting patch which is implemented to address review comment to switch std::list<Name> to OmpObjectlist from https://reviews.llvm.org/D142722.

Also addressed a semantic check https://github.com/llvm/llvm-project/issues/61161 OpenMP 5.2 standard states that only pointer variables (C_PTR, Cray pointers, POINTER or ALLOCATABLE items) can appear in SIMD aligned clause (section 5.11). And not to allow common block names on an ALIGNED clause.

Reviewed By: kiranchandramohan

Differential Revision: https://reviews.llvm.org/D152637
flang/include/flang/Parser/parse-tree.h
flang/lib/Parser/openmp-parsers.cpp
flang/lib/Parser/unparse.cpp
flang/lib/Semantics/check-omp-structure.cpp
flang/lib/Semantics/resolve-directives.cpp
flang/test/Semantics/OpenMP/clause-validity01.f90
flang/test/Semantics/OpenMP/simd-aligned.f90