Skip to content

Commit 46388c1

Browse files
committed
[MLIR][OpenMP] Refactor bounds offsetting and fix to apply to all directives
This PR refactors bounds offsetting by combining the two differing implementations (one applying to initial derivd type member map imlpementation for descriptors and the other for reguar arrays, effectively allocatable array vs regular array in fortran) now that it's a little simpler to do. The PR also moves the utilisation of createAlteredByCaptureMap into genMapInfoOp, where it will be correctly applied to all MapInfoData, appropriately offsetting and altering Pointer data set in the kernel argument structure on the host. This primarily means bounds will now correctly apply to enter/exit/update map clauses as opposed to just the Target directive that is currently the case. A few fortran runtime tests have been added to verify this new behaviour. This PR depends on: #84328 and is an extraction of the larger derived type member map PR stack (so a requirement for it to land).
1 parent f6f474c commit 46388c1

File tree

6 files changed

+361
-166
lines changed

6 files changed

+361
-166
lines changed

0 commit comments

Comments
 (0)