diff options
Diffstat (limited to 'openmp/libomptarget/include/device.h')
-rw-r--r-- | openmp/libomptarget/include/device.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/openmp/libomptarget/include/device.h b/openmp/libomptarget/include/device.h index 5f147f9c77e6..7bc4629c6220 100644 --- a/openmp/libomptarget/include/device.h +++ b/openmp/libomptarget/include/device.h @@ -312,7 +312,9 @@ struct TargetPointerResultTy { /// Flag indicating that this was the last user of the entry and the ref /// count is now 0. unsigned IsLast : 1; - } Flags = {0, 0, 0, 0}; + /// If the pointer is contained. + unsigned IsContained : 1; + } Flags = {0, 0, 0, 0, 0}; TargetPointerResultTy(const TargetPointerResultTy &) = delete; TargetPointerResultTy &operator=(const TargetPointerResultTy &TPR) = delete; @@ -348,6 +350,8 @@ struct TargetPointerResultTy { bool isHostPointer() const { return Flags.IsHostPointer; } + bool isContained() const { return Flags.IsContained; } + /// The corresponding target pointer void *TargetPointer = nullptr; |