[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
Mon May 4 14:52:41 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:
This is to be aligned with other comments in this file which appears to have two spaces after a period.
https://github.com/llvm/llvm-project/pull/195182
More information about the flang-commits
mailing list