Skip to content

Commit 8612fa0

Browse files
authored
[MLIR][OpenMP] Refactor bounds offsetting and fix to apply to all directives (#84349)
This PR refactors bounds offsetting by combining the two differing implementations (one applying to initial derived type member map implementation for descriptors and the other for regular arrays, effectively allocatable array vs regular array in fortran) now that it's a little simpler to do. The PR also moves the utilization 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 offsets 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 behavior. 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 d231e3b commit 8612fa0

File tree

6 files changed

+360
-166
lines changed

6 files changed

+360
-166
lines changed

0 commit comments

Comments
 (0)