[flang-commits] [flang] [flang][cuda][openacc] Add UseDevice attribute to model host_data use_device symbols (PR #195182)
Valentin Clement バレンタイン クレメン via flang-commits
flang-commits at lists.llvm.org
Tue May 5 10:21:49 PDT 2026
================
@@ -2930,6 +2930,24 @@ static int GetMatchingDistance(const common::LanguageFeatureControl &features,
return 0;
}
}
+ // An actual argument with the UseDevice attribute comes from an OpenACC
+ // host_data use_device clause: the variable itself is host-resident, but
+ // inside the host_data region it is referenced via its device address.
+ // It can therefore match either a host dummy or a device dummy in generic
+ // resolution. The matching distance disambiguates when both kinds of
----------------
clementval wrote:
I don't know what it is done like that but I have not seen than in any other files so one space is enough.
https://github.com/llvm/llvm-project/pull/195182
More information about the flang-commits
mailing list