This is an archive of the discontinued LLVM Phabricator instance.

[flang] Symbol representation for dummy SubprogramDetails
ClosedPublic

Authored by klausler on Jul 23 2021, 12:08 PM.

Details

Summary

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.

Diff Detail

Event Timeline

klausler created this revision.Jul 23 2021, 12:08 PM
klausler requested review of this revision.Jul 23 2021, 12:08 PM
jeanPerier accepted this revision.Aug 2 2021, 1:44 AM

Thanks Peter, LGTM

This revision is now accepted and ready to land.Aug 2 2021, 1:44 AM
This revision was landed with ongoing or failed builds.Aug 2 2021, 10:44 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptAug 2 2021, 10:44 AM