[all-commits] [llvm/llvm-project] 3856bb: [flang] [acc] Adding allocation to the recipe of s...
Renaud Kauffmann via All-commits
all-commits at lists.llvm.org
Wed Aug 20 16:05:18 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3856bb6bbf40a019c2f5a62e4a518ffa773efd7e
https://github.com/llvm/llvm-project/commit/3856bb6bbf40a019c2f5a62e4a518ffa773efd7e
Author: Renaud Kauffmann <rkauffmann at nvidia.com>
Date: 2025-08-20 (Wed, 20 Aug 2025)
Changed paths:
M flang/lib/Optimizer/OpenACC/Support/FIROpenACCTypeInterfaces.cpp
M flang/test/Lower/OpenACC/acc-private.f90
Log Message:
-----------
[flang] [acc] Adding allocation to the recipe of scalar allocatables (#154643)
Currently the privatization recipe of a scalar allocatable is as follow:
```
acc.private.recipe @privatization_ref_box_heap_i32 : !fir.ref<!fir.box<!fir.heap<i32>>> init {
^bb0(%arg0: !fir.ref<!fir.box<!fir.heap<i32>>>):
%0 = fir.alloca !fir.box<!fir.heap<i32>>
%1:2 = hlfir.declare %0 {uniq_name = "acc.private.init"} : (!fir.ref<!fir.box<!fir.heap<i32>>>) -> (!fir.ref<!fir.box<!fir.heap<i32>>>, !fir.ref<!fir.box<!fir.heap<i32>>>)
acc.yield %1#0 : !fir.ref<!fir.box<!fir.heap<i32>>>
}
```
This change adds the allocation for the scalar.
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