[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 09:33:40 PST 2024
kiranchandramohan wrote:
I think using the following pattern will get you the first value and it should mostly be sufficient.
```
mlir::Value hostVal = converter.getSymbolAddress(*symbol);
if (auto declOp = reductionVal.getDefiningOp<hlfir::DeclareOp>())
hostVal = declOp.getBase();
```
https://github.com/llvm/llvm-project/pull/84033
More information about the flang-commits
mailing list