[flang] Lower allocatable assignment for scalar
authorValentin Clement <clementval@gmail.com>
Thu, 24 Feb 2022 17:11:41 +0000 (18:11 +0100)
committerValentin Clement <clementval@gmail.com>
Thu, 24 Feb 2022 17:13:18 +0000 (18:13 +0100)
commit2a59ead118065012446bdbd0a31dc52799212f87
treef8d35a08aa7fddbb3e6e57e1778c077ae9dfe397
parentbaa0f221d6df2fcce10c54751cc42284e2656c31
[flang] Lower allocatable assignment for scalar

Add lowering for simple assignement on allocatable
scalars.

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

Depends on D120483

Reviewed By: PeteSteinfeld

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

Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
Co-authored-by: Jean Perier <jperier@nvidia.com>
15 files changed:
flang/include/flang/Lower/AbstractConverter.h
flang/include/flang/Lower/Allocatable.h [new file with mode: 0644]
flang/include/flang/Lower/BoxAnalyzer.h [new file with mode: 0644]
flang/include/flang/Lower/ConvertExpr.h
flang/include/flang/Lower/ConvertVariable.h
flang/include/flang/Optimizer/Builder/MutableBox.h
flang/include/flang/Optimizer/Builder/Runtime/Stop.h
flang/lib/Lower/Allocatable.cpp [new file with mode: 0644]
flang/lib/Lower/Bridge.cpp
flang/lib/Lower/CMakeLists.txt
flang/lib/Lower/ConvertExpr.cpp
flang/lib/Lower/ConvertVariable.cpp
flang/lib/Optimizer/Builder/MutableBox.cpp
flang/lib/Optimizer/Builder/Runtime/Stop.cpp
flang/test/Lower/allocatable-assignment.f90 [new file with mode: 0644]