[llvm] [Offload][NFC] Factor out and rename the `__tgt_offload_entry` struct (PR #123785)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 21 09:57:43 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 f233a54ae80b5fe7604aa20007d050cefdd5f663 d06d169c3a2725ba8f2408ee39b499d93a32784c --extensions h,cpp -- llvm/include/llvm/Frontend/Offloading/Utility.h offload/include/OffloadEntry.h offload/include/PluginManager.h offload/include/Shared/APITypes.h offload/include/rtl.h offload/plugins-nextgen/common/src/PluginInterface.cpp offload/src/PluginManager.cpp offload/src/omptarget.cpp offload/tools/kernelreplay/llvm-omp-kernel-replay.cpp
``````````

</details>

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

``````````diff
diff --git a/offload/src/PluginManager.cpp b/offload/src/PluginManager.cpp
index 770f718dfc..96fa0bb170 100644
--- a/offload/src/PluginManager.cpp
+++ b/offload/src/PluginManager.cpp
@@ -364,8 +364,8 @@ static int loadImagesOntoDevice(DeviceTy &Device) {
             REPORT("Failed to load kernel %s\n", Entry.SymbolName);
         }
         DP("Entry point " DPxMOD " maps to%s %s (" DPxMOD ")\n",
-           DPxPTR(Entry.Address), (Entry.Size) ? " global" : "", Entry.SymbolName,
-           DPxPTR(DeviceEntry.Address));
+           DPxPTR(Entry.Address), (Entry.Size) ? " global" : "",
+           Entry.SymbolName, DPxPTR(DeviceEntry.Address));
 
         DeviceEntries.emplace_back(DeviceEntry);
       }

``````````

</details>


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


More information about the llvm-commits mailing list