[flang][lowering] Add lowering for the `size` intrinsic
authorAndrzej Warzynski <andrzej.warzynski@arm.com>
Wed, 16 Mar 2022 13:40:25 +0000 (13:40 +0000)
committerAndrzej Warzynski <andrzej.warzynski@arm.com>
Wed, 16 Mar 2022 16:30:12 +0000 (16:30 +0000)
commit6f0041ea44f5e0eded2b05026242f2ccef7aa90a
treedab1f5ce7fac16e8c410112bbf2dca0490a4d345
parent0958450251698a01eec48b3c68421d4d54b5560f
[flang][lowering] Add lowering for the `size` intrinsic

This patch adds support for lowering of the `size` intrinsic from Fortran
to the FIR dialect of MLIR.

This is part of the upstreaming effort from the `fir-dev` branch in [1].

[1] https://github.com/flang-compiler/f18-llvm-project

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

Co-authored-by: Jean Perier <jperier@nvidia.com>
Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
Co-authored-by: Peter Steinfeld <psteinfeld@nvidia.com>
flang/lib/Lower/IntrinsicCall.cpp
flang/test/Lower/Intrinsics/size.f90 [new file with mode: 0644]