[all-commits] [llvm/llvm-project] 8b054e: [flang][OpenACC] Propagate acc.declare attribute t...
khaki3 via All-commits
all-commits at lists.llvm.org
Tue Apr 14 14:42:42 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8b054e8669d2f2eebe688392d2f01ea8ebb9677f
https://github.com/llvm/llvm-project/commit/8b054e8669d2f2eebe688392d2f01ea8ebb9677f
Author: khaki3 <47756807+khaki3 at users.noreply.github.com>
Date: 2026-04-14 (Tue, 14 Apr 2026)
Changed paths:
M flang/lib/Lower/ConvertVariable.cpp
A flang/test/Lower/OpenACC/acc-declare-use-associated.f90
Log Message:
-----------
[flang][OpenACC] Propagate acc.declare attribute to fir.global for USEd module variables (#192141)
When a module with `!$acc declare` is compiled separately from the
program that USEs it, `declareGlobal()` creates `fir.global` without the
`acc.declare` attribute. This causes implicit data mappings to override
device data that should already be present via `acc declare`.
The fix reads the symbol's `AccDeclare`/`AccCreate`/`AccCopyIn`/etc.
flags (already set from the `.mod` file by semantics) and attaches the
`acc.declare` attribute to the `fir.global`.
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