[flang-commits] [flang] [Flang][OpenMP] Restrict implicit default declare mapper from applying deep-copies of pointer members (PR #197885)
Akash Banerjee via flang-commits
flang-commits at lists.llvm.org
Fri May 15 08:31:33 PDT 2026
https://github.com/TIFitis approved this pull request.
LGTM, thanks for the PR.
Should we add a small test like the one below to check behaviour when both implicit and explicit mapping is used in the same construct?
I'm expecting `obj` still uses the implicit default mapper, and we also emit an explicit map entry for `obj%ptr_scalar` (i.e. explicit component mapping is not suppressed by the new implicit-pointer skip).
```
!$omp target map(mapper(default), tofrom: obj) map(tofrom: obj%ptr_scalar)
obj%id = obj%id + 1
!$omp end target
```
https://github.com/llvm/llvm-project/pull/197885
More information about the flang-commits
mailing list