diff options
author | jeanPerier <jperier@nvidia.com> | 2025-10-16 09:25:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-10-16 09:25:23 +0200 |
commit | ef4fbb55b2d4b2899eb1c8bb50ece18de4015c30 (patch) | |
tree | 932d15d89e5c97579753184d186cc4f6f8aef9d5 /lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp | |
parent | 10be254587da24d56e2c6817b382beaca612b6c3 (diff) | |
download | llvm-ef4fbb55b2d4b2899eb1c8bb50ece18de4015c30.zip llvm-ef4fbb55b2d4b2899eb1c8bb50ece18de4015c30.tar.gz llvm-ef4fbb55b2d4b2899eb1c8bb50ece18de4015c30.tar.bz2 |
[flang][OpenACC] add pass to bufferize fir.box recipes (#163543)
When working on privatization, it is easier to work with fir.box
explicitly in memory, otherwise, there is no way to express that the
fir.box will end-up being a descriptor address in FIR which makes it
hard to deal with data management.
However, introducing fir.ref<fir.box> early can pessimize early HLFIR
optimization because it is harder to reason about the aliasing of
`fir.ref<fir.box>` because of the extra memory indirection.
This patch introduces a pass that turns acc `!fir.box<T>` recipes into
`!fir.ref<!fir.box<T>>` recipes and updated the related recipe usages to
use `!fir.ref<!fir.box<T>>` (creating new alloca+store+load).
It is added to flang and not OpenACC because it is specific to the
`fir.box` type, so it makes little sense to make it an OpenACC generic
pass and to create a new OpenACC dialect type interface for this use
case.
Diffstat (limited to 'lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp')
0 files changed, 0 insertions, 0 deletions