[Flang][OpenMP][Parser] Resolve Declare Target Directive Symbols
authorAndrew Gozillon <Andrew.Gozillon@amd.com>
Fri, 2 Jun 2023 19:18:50 +0000 (14:18 -0500)
committerAndrew Gozillon <Andrew.Gozillon@amd.com>
Fri, 2 Jun 2023 19:28:48 +0000 (14:28 -0500)
commit70fc081f74520fc0809060ecba011773105456d5
tree0fe773ef4114d3f7a1bbcd4e23cfeee1eb27055c
parentcfde5f2d8969040611d24075a571d485ab62cb27
[Flang][OpenMP][Parser] Resolve Declare Target Directive Symbols

Currently symbols are not resolved for declare target
after they've been modified by prior passes. This can
lead to missing or incorrect symbols in subsequent
compiler phases when declare target is used with
more complex types e.g. common block.

This patch should allow these symbols to be
resolved appropriately.

Reviewers: kiranchandramohan

Differential Revision: https://reviews.llvm.org/D151993
flang/lib/Semantics/resolve-directives.cpp
flang/test/Semantics/OpenMP/declare-target-common-block.f90 [new file with mode: 0644]