[all-commits] [llvm/llvm-project] d63124: [flang][cuda] Look through associate names for man...

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Thu Oct 1 17:58:16 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d63124ff120577621c7a56a2bf1f47437cb3e9c7
      https://github.com/llvm/llvm-project/commit/d63124ff120577621c7a56a2bf1f47437cb3e9c7
  Author: Valentin Clement (バレンタイン クレメン) <clementval at gmail.com>
  Date:   2026-10-02 (Fri, 02 Oct 2026)

  Changed paths:
    M flang/include/flang/Evaluate/tools.h
    M flang/lib/Evaluate/tools.cpp
    M flang/test/Lower/CUDA/cuda-associate-data-transfer.cuf

  Log Message:
  -----------
  [flang][cuda] Look through associate names for managed and unified data (#228206)

IsCUDADeviceSymbol looks through an associate name: the name is device
data when its selector has device symbols. The managed and unified
predicates only handled object entities, so an associate name whose
selector is managed data was counted as device data that is not managed.

In host code, an element assignment such as
```
  associate(px => g%x, py => g%y)
    px%a(i,j) = r + px%s * real(py%n, 8)
  end associate
```

where `a` and `y` are managed, was then classified as a data transfer.
This
emitted a `cuf.data_transfer` from a scalar value, which the verifier
rejects.
IsCUDADataAttrSymbol now gives an associate name the attribute of the
variable its selector designates. As in CollectEffectiveCudaSymbols, the
attribute of a component prevails over the one of its base.
IsCUDAManagedOrUnifiedSymbol is now built on it.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list