[all-commits] [llvm/llvm-project] 7c0da7: [flang][cuda] Use fir.cuda_deallocate for automati...
Valentin Clement (バレンタイン クレメン) via All-commits
all-commits at lists.llvm.org
Wed Apr 24 08:44:15 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7c0da7993ecfffe1396a15383eb357fa624265af
https://github.com/llvm/llvm-project/commit/7c0da7993ecfffe1396a15383eb357fa624265af
Author: Valentin Clement (バレンタイン クレメン) <clementval at gmail.com>
Date: 2024-04-24 (Wed, 24 Apr 2024)
Changed paths:
M flang/include/flang/Lower/Allocatable.h
M flang/lib/Lower/Allocatable.cpp
M flang/lib/Lower/ConvertVariable.cpp
M flang/lib/Lower/OpenACC.cpp
M flang/test/Lower/CUDA/cuda-allocatable.cuf
M flang/test/Lower/OpenACC/acc-declare.f90
Log Message:
-----------
[flang][cuda] Use fir.cuda_deallocate for automatic deallocation (#89662)
Automatic deallocation of allocatable that are cuda device variable must
use the fir.cuda_deallocate operation. This patch update the automatic
deallocation code generation to use this operation when the variable is
a cuda variable.
This patch has also the side effect to correctly call
`attachDeclarePostDeallocAction` for OpenACC declare variable on
automatic deallocation as well. Update the code in
`attachDeclarePostDeallocAction` so we do not attach on fir.result but
on the correct last op.
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