[all-commits] [llvm/llvm-project] c0f1b0: [flang][cuda] Implicitly attribute ALLOCATABLE/POI...
Kareem Ergawy via All-commits
all-commits at lists.llvm.org
Wed Sep 16 07:18:12 PDT 2026
Branch: refs/heads/users/ergawy/managed-allocatable-components
Home: https://github.com/llvm/llvm-project
Commit: c0f1b0085db7976525d5265fdf578b063a1c5b20
https://github.com/llvm/llvm-project/commit/c0f1b0085db7976525d5265fdf578b063a1c5b20
Author: ergawy <kareem.ergawy at gmail.com>
Date: 2026-09-16 (Wed, 16 Sep 2026)
Changed paths:
M flang/include/flang/Semantics/symbol.h
M flang/lib/Lower/Allocatable.cpp
M flang/lib/Semantics/check-allocate.cpp
M flang/lib/Semantics/resolve-names.cpp
M flang/lib/Semantics/tools.cpp
A flang/test/Lower/CUDA/cuda-gpu-managed-components.cuf
Log Message:
-----------
[flang][cuda] Implicitly attribute ALLOCATABLE/POINTER components as managed
Under -gpu=mem:managed, resolve-names implicitly attributes allocatables and
pointers declared in an ordinary scope as managed.
Apply the same attribution to components in Post(ComponentDecl). An explicitly
attributed component keeps its own attribute, and a translation unit without
CUDA Fortran enabled is left alone.
Record the attribution in ObjectEntityDetails::cudaDataAttrIsImplicit, since
an attribute the compiler applied is not a user requirement: a memory space
the user did ask for on an enclosing object takes precedence over 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