[flang] Handle lowering arguments in subroutine and function
authorValentin Clement <clementval@gmail.com>
Wed, 16 Feb 2022 19:27:23 +0000 (20:27 +0100)
committerValentin Clement <clementval@gmail.com>
Wed, 16 Feb 2022 19:28:07 +0000 (20:28 +0100)
commitda7c77b82c217592cc14f5b5a3c6a9e6741896af
tree78d3b5d526f5a73e5462660725703af0aaba20a9
parentae48af582b34f571fdfb1a05adda0f3bc9fe5569
[flang] Handle lowering arguments in subroutine and function

This patch adds infrsatrcutrue to be able to lower
arguments in functions and subroutines.

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

Reviewed By: PeteSteinfeld

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

Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
Co-authored-by: Jean Perier <jperier@nvidia.com>
flang/include/flang/Lower/CallInterface.h
flang/lib/Lower/Bridge.cpp
flang/lib/Lower/CallInterface.cpp
flang/lib/Lower/ConvertVariable.cpp
flang/test/Lower/arguments.f90 [new file with mode: 0644]