[flang][NFC] Simplify mapSymbolAttributes in symbol lowering
authorJean Perier <jperier@nvidia.com>
Tue, 18 Oct 2022 09:07:47 +0000 (11:07 +0200)
committerJean Perier <jperier@nvidia.com>
Tue, 18 Oct 2022 09:08:07 +0000 (11:08 +0200)
commit9e37301cf483237695325e199393ba5a84b7fc1e
tree7655252a63b1c37130efc1a51a740e19b2f71148
parent0d0ca64356ff1a9e3427660732da033a14521e5b
[flang][NFC] Simplify mapSymbolAttributes in symbol lowering

mapSymbolAttributes currently has a lot of very similar code for
each kind of explicit shape and scalar symbols.

Refactor it so that the change to lower symbols with fir.declare
can be added in centralized places instead of being scattered.
This is a preparation patch and fir.declare is not yet added.

Differential Revision: https://reviews.llvm.org/D136061
flang/lib/Lower/Bridge.cpp
flang/lib/Lower/ConvertVariable.cpp
flang/test/Lower/HLFIR/expr-addr.f90
flang/test/Lower/HLFIR/expr-box.f90