[all-commits] [llvm/llvm-project] 04e612: [flang] Separate module procedure variant

vdonaldson via All-commits all-commits at lists.llvm.org
Wed Aug 16 10:07:44 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 04e6129d3243b9ed60ed17048b701b56aa0e7557
      https://github.com/llvm/llvm-project/commit/04e6129d3243b9ed60ed17048b701b56aa0e7557
  Author: V Donaldson <vdonaldson at nvidia.com>
  Date:   2023-08-16 (Wed, 16 Aug 2023)

  Changed paths:
    M flang/lib/Lower/Mangler.cpp

  Log Message:
  -----------
  [flang] Separate module procedure variant

Accept "module procedure" (as well as module function/subroutine)
in a separate module procedure definition, such as "bb1" in:

module mm
  interface
    module subroutine mm1
    end subroutine
  end interface
end module

submodule(mm) bb
  interface
    module subroutine bb1
    end subroutine
  end interface
contains
  module procedure mm1
    call bb1
  end procedure
  module procedure bb1
    print*, 'bb1'
  end procedure
end submodule

  use mm
  call mm1
end




More information about the All-commits mailing list