llvm-project
f55080da - [flang][OpenMP] Avoid implicit default mapper on pointer captures (#184382)

Commit
13 days ago
[flang][OpenMP] Avoid implicit default mapper on pointer captures (#184382) This change fixes incorrect implicit declare mapper behavior in Flang OpenMP lowering. Issue: Implicit default mappers were being attached/generated for pointer-based implicit captures, and also on data-motion directives. That could trigger recursive component mapping that overlaps/conflicts with explicit user mappings, causing runtime mapping failures. Fix: - Skip implicit default mapper generation for implicit pointer captures (keep support for allocatables). - Do not auto-attach implicit mappers on target enter data, target exit data, or target update. - Apply the same pointer guard in the implicit target-capture lowering path.
Author
Parents
Loading