[Openmp-commits] [openmp] r345981 - [OPENMP][OFFLOADING]Change the lambda capturing flags.

Alexey Bataev via Openmp-commits openmp-commits at lists.llvm.org
Fri Nov 2 08:24:47 PDT 2018


Author: abataev
Date: Fri Nov  2 08:24:47 2018
New Revision: 345981

URL: http://llvm.org/viewvc/llvm-project?rev=345981&view=rev
Log:
[OPENMP][OFFLOADING]Change the lambda capturing flags.

Summary:
The previously used combination `PTR_AND_OBJ | PRIVATE` could be used
for mapping of some data in Fortran. Changed it to `PTR_AND_OBJ |
  LITERAL`.

Reviewers: gtbercea

Subscribers: guansong, caomhin, openmp-commits

Differential Revision: https://reviews.llvm.org/D54035

Modified:
    openmp/trunk/libomptarget/src/omptarget.cpp

Modified: openmp/trunk/libomptarget/src/omptarget.cpp
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/libomptarget/src/omptarget.cpp?rev=345981&r1=345980&r2=345981&view=diff
==============================================================================
--- openmp/trunk/libomptarget/src/omptarget.cpp (original)
+++ openmp/trunk/libomptarget/src/omptarget.cpp Fri Nov  2 08:24:47 2018
@@ -543,7 +543,7 @@ int target_data_update(DeviceTy &Device,
 }
 
 static const unsigned LambdaMapping = OMP_TGT_MAPTYPE_PTR_AND_OBJ |
-                                      OMP_TGT_MAPTYPE_PRIVATE |
+                                      OMP_TGT_MAPTYPE_LITERAL |
                                       OMP_TGT_MAPTYPE_IMPLICIT;
 static bool isLambdaMapping(int64_t Mapping) {
   return (Mapping & LambdaMapping) == LambdaMapping;




More information about the Openmp-commits mailing list