[Flang][OpenMP] Fix 'Internal: no symbol found' for OpenMP aligned and linear clause.
authorsameeran joshi <sameeranjayant.joshi@amd.com>
Sat, 31 Oct 2020 18:13:58 +0000 (23:43 +0530)
committerSameeran joshi <joshisameeran17@gmail.com>
Tue, 10 Nov 2020 17:17:13 +0000 (22:47 +0530)
commit2f7a41b2a70c45eff8a1f064174be0d1af9f8afa
tree74eb41a23399fceb686392d179039af55af5b839
parent46a734621dc4b38db78156fcd769864f7ef8ac18
[Flang][OpenMP] Fix 'Internal: no symbol found' for OpenMP aligned and linear clause.

The initial approach was to go with changing parser nodes from `std::list<parser::Name>` to `OmpObjectList`, but that might have lead to illegal programs.
Resolving the symbols inside `OmpAttributeVisitor`.
Fix a couple of `XFAIL` tests.

Reviewed By: kiranchandramohan

Differential Revision: https://reviews.llvm.org/D90538
flang/include/flang/Parser/parse-tree.h
flang/include/flang/Semantics/symbol.h
flang/lib/Semantics/resolve-directives.cpp
flang/test/Semantics/omp-clause-validity01.f90
flang/test/Semantics/omp-declarative-directive.f90
flang/test/Semantics/omp-do03.f90
flang/test/Semantics/omp-loop-simd01.f90
flang/test/Semantics/omp-simd02.f90