[flang-commits] [flang] [flang][MLIR][OpenMP] Extend delayed privatization for allocatables (PR #84033)
Kiran Chandramohan via flang-commits
flang-commits at lists.llvm.org
Tue Mar 5 08:06:53 PST 2024
kiranchandramohan wrote:
> Note that for both the original and the private declaration, the allocation and copy logic use both elements (e.g. %3#0 and %3#1). This poses the following problem for delayed privatization: how can capture both values in order to pass them to the outlined privatizer? The main issue is that hlfir.declare returns 2 SSA values that not encapsulated together under a single composite value.
We have not made specific changes for HLFIR lowering in the privatisation code and could have inadvertently used both `#0` and `#1`. Can we use `#0` for both of the usages? It could be just about modifying `getSymbolAddress` or a similar function in the converter.
https://github.com/llvm/llvm-project/pull/84033
More information about the flang-commits
mailing list