[Openmp-commits] [openmp] 3819aae - [libomptarget][NFC] Replaced obsolete name "getOrAllocTgtPtr" with new "getTargetPointer" in debug messages.

George Rokos via Openmp-commits openmp-commits at lists.llvm.org
Thu Aug 26 18:06:04 PDT 2021


Author: George Rokos
Date: 2021-08-26T18:01:18-07:00
New Revision: 3819aae6ddae62c59141970645b8931a38c19e8a

URL: https://github.com/llvm/llvm-project/commit/3819aae6ddae62c59141970645b8931a38c19e8a
DIFF: https://github.com/llvm/llvm-project/commit/3819aae6ddae62c59141970645b8931a38c19e8a.diff

LOG: [libomptarget][NFC] Replaced obsolete name "getOrAllocTgtPtr" with new "getTargetPointer" in debug messages.

Added: 
    

Modified: 
    openmp/libomptarget/src/device.h
    openmp/libomptarget/src/omptarget.cpp

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/src/device.h b/openmp/libomptarget/src/device.h
index e93f7b8d2c49b..21cce3539349d 100644
--- a/openmp/libomptarget/src/device.h
+++ b/openmp/libomptarget/src/device.h
@@ -140,7 +140,7 @@ struct LookupResult {
   LookupResult() : Flags({0, 0, 0}), Entry() {}
 };
 
-/// This struct will be returned by \p DeviceTy::getOrAllocTgtPtr which provides
+/// This struct will be returned by \p DeviceTy::getTargetPointer which provides
 /// more data than just a target pointer.
 struct TargetPointerResultTy {
   struct {

diff  --git a/openmp/libomptarget/src/omptarget.cpp b/openmp/libomptarget/src/omptarget.cpp
index 2bf64c91d88cd..5f084e75ce84c 100644
--- a/openmp/libomptarget/src/omptarget.cpp
+++ b/openmp/libomptarget/src/omptarget.cpp
@@ -494,7 +494,7 @@ int targetDataBegin(ident_t *loc, DeviceTy &Device, int32_t arg_num,
       PointerTgtPtrBegin = Pointer_TPR.TargetPointer;
       IsHostPtr = Pointer_TPR.Flags.IsHostPointer;
       if (!PointerTgtPtrBegin) {
-        REPORT("Call to getOrAllocTgtPtr returned null pointer (%s).\n",
+        REPORT("Call to getTargetPointer returned null pointer (%s).\n",
                HasPresentModifier ? "'present' map type modifier"
                                   : "device failure or illegal mapping");
         return OFFLOAD_FAIL;
@@ -528,7 +528,7 @@ int targetDataBegin(ident_t *loc, DeviceTy &Device, int32_t arg_num,
     // If data_size==0, then the argument could be a zero-length pointer to
     // NULL, so getOrAlloc() returning NULL is not an error.
     if (!TgtPtrBegin && (data_size || HasPresentModifier)) {
-      REPORT("Call to getOrAllocTgtPtr returned null pointer (%s).\n",
+      REPORT("Call to getTargetPointer returned null pointer (%s).\n",
              HasPresentModifier ? "'present' map type modifier"
                                 : "device failure or illegal mapping");
       return OFFLOAD_FAIL;


        


More information about the Openmp-commits mailing list