[all-commits] [llvm/llvm-project] 54e46b: [flang][openacc] Fix post_alloc declare function o...
Razvan Lupusoru via All-commits
all-commits at lists.llvm.org
Mon Oct 23 18:25:30 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 54e46ba447c1746312b287a73da2074ff809925c
https://github.com/llvm/llvm-project/commit/54e46ba447c1746312b287a73da2074ff809925c
Author: Razvan Lupusoru <razvan.lupusoru at gmail.com>
Date: 2023-10-23 (Mon, 23 Oct 2023)
Changed paths:
M flang/lib/Lower/OpenACC.cpp
M flang/test/Lower/OpenACC/acc-declare.f90
Log Message:
-----------
[flang][openacc] Fix post_alloc declare function ordering (#69980)
The declare actions were introduced to capture semantics dealing with
allocation of descriptor-based variable. However, the post_alloc action
has an ordering error. It needs to update descriptor first before the
mapping action of the data. The reason for this is that implicit attach
must occur during mapping action - but updating the descriptor
synchronizes it with the host copy (which would hold a host pointer).
More information about the All-commits
mailing list