[flang-commits] [PATCH] D106697: [flang] Symbol representation for dummy SubprogramDetails
Peter Klausler via Phabricator via flang-commits
flang-commits at lists.llvm.org
Fri Jul 23 12:08:09 PDT 2021
klausler created this revision.
klausler added a reviewer: jeanPerier.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
klausler requested review of this revision.
Dummy procedures can be defined as subprograms with explicit
interfaces, e.g.
subroutine subr(dummy)
interface
subroutine dummy(x)
real :: x
end subroutine
end interface
! ...
end subroutine
but the symbol table had no means of marking such symbols as dummy
arguments, so predicates like IsDummy(dummy) would fail. Add an
isDummy_ flag to SubprogramNameDetails, analogous to the corresponding
flag in EntityDetails, and set/test it as needed.
https://reviews.llvm.org/D106697
Files:
flang/include/flang/Semantics/symbol.h
flang/lib/Evaluate/check-expression.cpp
flang/lib/Evaluate/tools.cpp
flang/lib/Semantics/check-declarations.cpp
flang/lib/Semantics/resolve-names.cpp
flang/lib/Semantics/symbol.cpp
flang/test/Semantics/call02.f90
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106697.361294.patch
Type: text/x-patch
Size: 6586 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20210723/4c70bfc6/attachment-0001.bin>
More information about the flang-commits
mailing list