mirror of
https://github.com/clang-retro/llvm.git
synced 2026-11-28 21:29:24 -08:00
Fix compiler lowering and runtime handling of non-contiguous `target update` operations so multidimensional Fortran sections transfer only the selected elements. Preserve physical source strides and scalar-subscript shape, normalize character bounds and strides, and retain descriptor storage for deferred `nowait` updates. In libomptarget, merge only consecutive innermost contiguous dimensions, skip empty updates before presence checks and transfers, and use 64-bit traversal counts. Add Flang/MLIR and C/C++/Fortran offload regression coverage for both transfer directions, multidimensional gaps, empty and `present` updates, wide characters, and `nowait`. Includes https://github.com/llvm/llvm-project/pull/235006. Fixes: - https://amd-hub.atlassian.net/browse/LCOMPILER-2880 - https://amd-hub.atlassian.net/browse/LCOMPILER-2784 Co-authored-by: Codex <codex@openai.com>