================
@@ -9199,23 +9212,25 @@ class MappableExprsHandler {
// multiple values are added to any of the lists, the first value
// added is being modified by the assignments below (not the last
// value added).
- if (StructBasePointersIdx <
- GroupStructBaseCurInfo.BasePointers.size()) {
- GroupStructBaseCurInfo.DevicePtrDecls[StructBasePointersIdx] =
- RelevantVD;
- GroupStructBaseCurInfo.DevicePointers[StructBasePointersIdx] =
- L.ForDeviceAddr ? DeviceInfoTy::Address
- : DeviceInfoTy::Pointer;
- GroupStructBaseCurInfo.Types[StructBasePointersIdx] |=
- OpenMPOffloadMappingFlags::OMP_MAP_RETURN_PARAM;
- } else {
- GroupCurInfo.DevicePtrDecls[CurrentBasePointersIdx] = RelevantVD;
- GroupCurInfo.DevicePointers[CurrentBasePointersIdx] =
- L.ForDeviceAddr ? DeviceInfoTy::Address
- : DeviceInfoTy::Pointer;
- GroupCurInfo.Types[CurrentBasePointersIdx] |=
+ auto SetDevicePointerInfo = [&](MapCombinedInfoTy &Info,
+ unsigned Idx) {
+ Info.DevicePtrDecls[Idx] = RelevantVD;
+ Info.DevicePointers[Idx] = L.ForDeviceAddr
+ ? DeviceInfoTy::Address
+ : DeviceInfoTy::Pointer;
+ Info.Types[Idx] |=
OpenMPOffloadMappingFlags::OMP_MAP_RETURN_PARAM;
- }
+ if (L.HasUdpFbNullify)
+ Info.Types[Idx] |=
+ OpenMPOffloadMappingFlags::OMP_MAP_FB_NULLIFY;
----------------
alexey-bataev wrote:
Is it supported in runtime?
https://github.com/llvm/llvm-project/pull/173931
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits