[flang-commits] [flang] [Flang][OpenMP] Enable implicit mapping of allocatables inside derived types for enter/exit/update (PR #224145)
Akash Banerjee via flang-commits
flang-commits at lists.llvm.org
Thu Sep 24 06:48:41 PDT 2026
================
@@ -0,0 +1,32 @@
+! RUN: %flang_fc1 -emit-hlfir -fopenmp -fopenmp-version=50 %s -o - | FileCheck %s
+
+module implicit_default_mapper_target_data_motion
+ type :: t
+ integer, allocatable :: a(:)
+ end type
+contains
+ subroutine s(x)
+ type(t) :: x
+
+ !$omp target enter data map(to: x)
+ !$omp target update to(x)
+ !$omp target update from(x)
+ !$omp target exit data map(from: x)
----------------
TIFitis wrote:
`!$omp target enter data map(present,to:x)` here should produce an error, but I think currently it wouldn't.
The new mapper drops the `present` modifier.
Can you please fix this and add it to the test?
https://github.com/llvm/llvm-project/pull/224145
More information about the flang-commits
mailing list