[flang-commits] [flang] [flang][cuda][openacc] Add UseDevice attribute to model host_data use_device symbols (PR #195182)
Zhen Wang via flang-commits
flang-commits at lists.llvm.org
Tue May 5 10:27:29 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
----------------
wangzpgi wrote:
Yeah, not sure the reason why. I have changed to single space here.
https://github.com/llvm/llvm-project/pull/195182
More information about the flang-commits
mailing list