mirror of
https://github.com/siemens-mobile-hacks/llvm-c166.git
synced 2026-11-27 03:04:21 +00:00
This fixes Fortran `declare target enter(automap:...)` handling for allocatable descriptors. - Replace the previous `has_device_addr` target-region rewrite with explicit target data operations around allocation/deallocation. - On allocation, emit: - descriptor `map(always,to)` to keep the Fortran descriptor present - storage `map(storage)` for the allocated array data - `map(attach)` to update the device descriptor base address to the device data - On deallocation, delete both the mapped storage and descriptor. - Add a weak visible offload-entry alias for local/hidden `declare target to/enter` globals so libomptarget can associate the host descriptor with the real device global without changing the original symbol linkage. This fixes `offload/test/offloading/fortran/declare-target-automap.f90` reported broken in #161265. Co-authored-by: Codex <codex@openai.com> |
||
|---|---|---|
| .. | ||
| api | ||
| env | ||
| Inputs | ||
| jit | ||
| libc | ||
| mapping | ||
| offloading | ||
| ompt | ||
| sanitizer | ||
| tools | ||
| unified_shared_memory | ||
| unit | ||
| CMakeLists.txt | ||
| lit.cfg | ||
| lit.site.cfg.in | ||