This is an archive of the discontinued LLVM Phabricator instance.

[flang] Add lowering TODO for separate module procedures
ClosedPublic

Authored by clementval on Jun 23 2022, 2:14 AM.

Details

Summary

MODULE FUNCTION and MODULE SUBROUTINE currently cause lowering crash:
"symbol is not mapped to any IR value" because special care is needed
to handle their interface.

Add a TODO for now.

Example of program that crashed and will hit the TODO:

module mod
  interface
    module subroutine sub
    end subroutine
  end interface
contains
  module subroutine sub
    x = 42
  end subroutine
end module

This patch is part of the upstreaming effort from fir-dev branch.

Co-authored-by: Jean Perier <jperier@nvidia.com>

Diff Detail

Event Timeline

clementval created this revision.Jun 23 2022, 2:14 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJun 23 2022, 2:14 AM
Herald added a subscriber: mehdi_amini. · View Herald Transcript
clementval requested review of this revision.Jun 23 2022, 2:14 AM
This revision is now accepted and ready to land.Jun 23 2022, 5:29 AM