[llvm] [Offload][NFC] Rename `src/` -> `libomptarget/` (PR #126573)

via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 10 11:00:02 PST 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff a32efd8edc6ec5f80ffa16b3d4e52e6407d5fe99 03a2e7c631190c770d1dd921b3f23766a269bdca --extensions h,cpp -- offload/libomptarget/DeviceImage.cpp offload/libomptarget/KernelLanguage/API.cpp offload/libomptarget/LegacyAPI.cpp offload/libomptarget/OffloadRTL.cpp offload/libomptarget/OpenMP/API.cpp offload/libomptarget/OpenMP/InteropAPI.cpp offload/libomptarget/OpenMP/Mapping.cpp offload/libomptarget/OpenMP/OMPT/Callback.cpp offload/libomptarget/PluginManager.cpp offload/libomptarget/device.cpp offload/libomptarget/interface.cpp offload/libomptarget/omptarget.cpp offload/libomptarget/private.h
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/offload/libomptarget/OpenMP/API.cpp b/offload/libomptarget/OpenMP/API.cpp
index 62e27060b7..4576f9bd06 100644
--- a/offload/libomptarget/OpenMP/API.cpp
+++ b/offload/libomptarget/OpenMP/API.cpp
@@ -655,8 +655,8 @@ EXTERN void *omp_get_mapped_ptr(const void *Ptr, int DeviceNum) {
 
   int NumDevices = omp_get_initial_device();
   if (DeviceNum == NumDevices) {
-    DP("Device %d is initial device, returning Ptr " DPxMOD ".\n",
-           DeviceNum, DPxPTR(Ptr));
+    DP("Device %d is initial device, returning Ptr " DPxMOD ".\n", DeviceNum,
+       DPxPTR(Ptr));
     return const_cast<void *>(Ptr);
   }
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/126573


More information about the llvm-commits mailing list