[flang] add fir.declare codegen support
authorJean Perier <jperier@nvidia.com>
Thu, 20 Oct 2022 08:15:14 +0000 (10:15 +0200)
committerJean Perier <jperier@nvidia.com>
Thu, 20 Oct 2022 08:17:14 +0000 (10:17 +0200)
commitc852174a4935debc6d724dd057c4955678e12117
tree3730ee5168201cc95769553cd4b446640517c05c
parentab2b84db99e1e7dd173cb793ffd091cf7d57b8e4
[flang] add fir.declare codegen support

For now, nothing is done about debug info and the fir.declare is simply
replaced by the memref argument. This is done in the PreCGRewrite in
order to avoid requiring adding support for fir.shape codegen, which
would still be useless and undesired at that point.

Differential Revision: https://reviews.llvm.org/D136254
flang/lib/Optimizer/CodeGen/PreCGRewrite.cpp
flang/test/Fir/declare-codegen.fir [new file with mode: 0644]