aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-objdump/llvm-objdump.cpp
diff options
context:
space:
mode:
authorSlava Zakharin <szakharin@nvidia.com>2023-08-16 17:24:42 -0700
committerSlava Zakharin <szakharin@nvidia.com>2023-08-16 17:56:23 -0700
commitde2be3e469f6174871d522ab6950d41282c58c7b (patch)
treeafe6f10226729b6a4489d956a879358ee922a1fc /llvm/tools/llvm-objdump/llvm-objdump.cpp
parent7d897685a4e41c8746f3388ae73405296a413fd8 (diff)
downloadllvm-de2be3e469f6174871d522ab6950d41282c58c7b.zip
llvm-de2be3e469f6174871d522ab6950d41282c58c7b.tar.gz
llvm-de2be3e469f6174871d522ab6950d41282c58c7b.tar.bz2
[flang][hlfir] Use the HLFIR base of hlfir.declare if possible.
This patch makes use of the HLFIR box produced for hlfir.declare in place of the FIR box (the memref of hlfir.declare) when possible. This makes the representation a little bit more clear, because all accesses are made via a single box. This reduces the life range of the original box, because the new temporary box produced by embox/rebox is used from now. Apparently, this works around some issues in the current HLFIR codegen, for example, look at the LIT tests changes around fir.array_coor produced by hlfir.designate codegen - using the FIR box for fir.array_coor might result in using incorrect lbounds. Apparently, this change enables more intrinsics simplifications because the SimplifyIntrinsicsPass looks for explicit embox/rebox in findBoxDef() to decide whether to apply the optimization. This change also provides better association of the base addresses referenced by OpenACC clauses with the corresponding boxes that might be used explicitly in OpenACC regions (e.g. for reading the lbounds). Reviewed By: razvanlupusoru, clementval Differential Revision: https://reviews.llvm.org/D158119
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions