aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
diff options
context:
space:
mode:
authorPeter Klausler <pklausler@nvidia.com>2022-05-16 18:10:27 -0700
committerPeter Klausler <pklausler@nvidia.com>2022-05-23 21:48:35 -0700
commit7f680b260ffe34c648cbd3fd16615d8f5cdab39f (patch)
tree25caad094fbffe6f501dd33bb51757c6086f959a /llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
parent1786e70bd85df491a91d19b400855fedcc00ce9e (diff)
downloadllvm-7f680b260ffe34c648cbd3fd16615d8f5cdab39f.zip
llvm-7f680b260ffe34c648cbd3fd16615d8f5cdab39f.tar.gz
llvm-7f680b260ffe34c648cbd3fd16615d8f5cdab39f.tar.bz2
[flang] Allow more forward references to ENTRY names
Forward references to ENTRY names to pass them as actual procedure arguments don't work in all cases, exposing some basic ordering problems in name resolution for these symbols. Refactor; create all the necessary procedure symbols, and either function result or host association symbols (for subroutines), at the time that the subprogrma scope is created, so that the names exist in the scope as text "before" the ENTRY is processed in name resolution. Some processing remains in PostEntryStmt() so that we can check that an ENTRY with an explicit distinct RESULT doesn't also have declarations for the ENTRY name. Differential Revision: https://reviews.llvm.org/D126142
Diffstat (limited to 'llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp')
0 files changed, 0 insertions, 0 deletions