[flang] Lower array related intrinsics
authorValentin Clement <clementval@gmail.com>
Thu, 17 Mar 2022 06:17:10 +0000 (07:17 +0100)
committerValentin Clement <clementval@gmail.com>
Thu, 17 Mar 2022 06:21:44 +0000 (07:21 +0100)
commiteea7c935d296f692e0f097a394f5b5e119dca9af
treeccbefb82b189dff603a7e162479e4bd892397bab
parentcae735f72b4d1f8f98c68c63d5d9b0d7ee109b3d
[flang] Lower array related intrinsics

This patch adds lowering for somw array related intrinsics:
- `reshape`
- `spread`

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

Reviewed By: schweitz

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

Co-authored-by: Jean Perier <jperier@nvidia.com>
Co-authored-by: mleair <leairmark@gmail.com>
flang/lib/Lower/IntrinsicCall.cpp
flang/test/Lower/Intrinsics/reshape.f90 [new file with mode: 0644]
flang/test/Lower/Intrinsics/spread.f90 [new file with mode: 0644]