diff options
author | Jean Perier <jperier@nvidia.com> | 2022-06-14 10:47:40 +0200 |
---|---|---|
committer | Valentin Clement <clementval@gmail.com> | 2022-06-14 10:48:44 +0200 |
commit | 9de831aa2cbc6ab94265ff8136fb36d9b6c1cfae (patch) | |
tree | 9a19581ab9bce46aed1d56589d77135e304045a2 /clang/lib/CodeGen/ModuleBuilder.cpp | |
parent | 9da697e1bcefda6a75cd63a10679efe51333d7f9 (diff) | |
download | llvm-9de831aa2cbc6ab94265ff8136fb36d9b6c1cfae.zip llvm-9de831aa2cbc6ab94265ff8136fb36d9b6c1cfae.tar.gz llvm-9de831aa2cbc6ab94265ff8136fb36d9b6c1cfae.tar.bz2 |
Add lowering TODO for bindings returning derived types or arrays
Codegen does not support fir.addressof of functions returning derived
types, arrays are descriptors inside GlobalOp region.
This is because the abstract-result-opt is required to rewrite such
functions (a hidden argument must be added), but this pass is meant to
run in GlobalOp currently.
Such fir.address_of may be created when lowering procedure pointers
initial value (TODO), or when creating derived type descriptors for
types with bindings.
Add a TODO in lowering until abstract-result-opt is modified to run
on GlobalOp too.
This patch is part of the upstreaming effort from fir-dev branch.
Reviewed By: jeanPerier
Differential Revision: https://reviews.llvm.org/D127722
Diffstat (limited to 'clang/lib/CodeGen/ModuleBuilder.cpp')
0 files changed, 0 insertions, 0 deletions