[all-commits] [llvm/llvm-project] 402d30: [flang][pft] visit original symbol in acc use_devi...

jeanPerier via All-commits all-commits at lists.llvm.org
Wed Apr 29 01:44:17 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 402d309aecf3b5292adb60dae70904a48e25641a
      https://github.com/llvm/llvm-project/commit/402d309aecf3b5292adb60dae70904a48e25641a
  Author: jeanPerier <jperier at nvidia.com>
  Date:   2026-04-29 (Wed, 29 Apr 2026)

  Changed paths:
    M flang/include/flang/Parser/tools.h
    M flang/lib/Lower/OpenACC.cpp
    M flang/lib/Lower/PFTBuilder.cpp
    M flang/lib/Parser/tools.cpp
    A flang/test/Lower/host_module_variable_instantiation_use_device.f90

  Log Message:
  -----------
  [flang][pft] visit original symbol in acc use_device  (#194588)

Fix regression after https://github.com/llvm/llvm-project/pull/193689
when a use_device is referring to variables from a host module.

The original symbol needs to be visited in the PFT so that it will be
instantiated, but it is not visible anymore from the parse tree, and not
directly connected to the new symbol (this is because variables in
use_device are treated in a special way in order to give them the DEVICE
attribute, other data clause do not need such handling).

Look into the parent scope for a symbol with the same name and visit 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