[all-commits] [llvm/llvm-project] d0b70a: [flang] Lower function and subroutine calls

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Wed Feb 23 10:50:39 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d0b70a070aedc3665e352d06c7d996a4050f8fc8
      https://github.com/llvm/llvm-project/commit/d0b70a070aedc3665e352d06c7d996a4050f8fc8
  Author: Valentin Clement <clementval at gmail.com>
  Date:   2022-02-23 (Wed, 23 Feb 2022)

  Changed paths:
    M flang/include/flang/Lower/AbstractConverter.h
    M flang/include/flang/Lower/CallInterface.h
    M flang/include/flang/Lower/ConvertExpr.h
    M flang/include/flang/Lower/ConvertVariable.h
    A flang/include/flang/Lower/StatementContext.h
    M flang/include/flang/Optimizer/Builder/FIRBuilder.h
    M flang/include/flang/Optimizer/Dialect/FIROpsSupport.h
    M flang/lib/Lower/Bridge.cpp
    M flang/lib/Lower/CallInterface.cpp
    M flang/lib/Lower/ConvertExpr.cpp
    M flang/lib/Lower/ConvertVariable.cpp
    M flang/lib/Lower/OpenACC.cpp
    M flang/lib/Lower/OpenMP.cpp
    M flang/lib/Lower/Runtime.cpp
    M flang/lib/Optimizer/Builder/FIRBuilder.cpp
    M flang/lib/Optimizer/Dialect/FIROps.cpp
    A flang/test/Lower/basic-call.f90

  Log Message:
  -----------
  [flang] Lower function and subroutine calls

This patch introduce basic function/subroutine calls.
Because of the state of lowering only simple scalar arguments
can be used in the calls. This will be enhanced in follow up
patches with arrays, allocatable, pointer ans so on.

```
subroutine sub1()
end

subroutine sub2()
  call sub1()
end
```

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

Reviewed By: schweitz

Differential Revision: https://reviews.llvm.org/D120419

Co-authored-by: Eric Schweitz <eschweitz at nvidia.com>
Co-authored-by: Jean Perier <jperier at nvidia.com>
Co-authored-by: V Donaldson <vdonaldson at nvidia.com>




More information about the All-commits mailing list