[llvm-branch-commits] [llvm] [Offload] Add GenericPluginTy::get_mem_info (PR #157484)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Sep 8 08:03:07 PDT 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 origin/main HEAD --extensions cpp,h -- offload/include/omptarget.h offload/liboffload/src/OffloadImpl.cpp offload/plugins-nextgen/amdgpu/dynamic_hsa/hsa.cpp offload/plugins-nextgen/amdgpu/dynamic_hsa/hsa_ext_amd.h offload/plugins-nextgen/amdgpu/src/rtl.cpp offload/plugins-nextgen/common/include/PluginInterface.h offload/plugins-nextgen/cuda/src/rtl.cpp offload/plugins-nextgen/host/src/rtl.cpp
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/offload/plugins-nextgen/common/include/PluginInterface.h b/offload/plugins-nextgen/common/include/PluginInterface.h
index 600114407..ce270b3f1 100644
--- a/offload/plugins-nextgen/common/include/PluginInterface.h
+++ b/offload/plugins-nextgen/common/include/PluginInterface.h
@@ -1277,9 +1277,7 @@ struct MemoryInfoTy {
   TargetAllocTy Type;
   GenericDeviceTy *Device;
 
-  void *limit() const {
-    return reinterpret_cast<char *>(Base) + Size;
-  }
+  void *limit() const { return reinterpret_cast<char *>(Base) + Size; }
 };
 
 /// Class implementing common functionalities of offload plugins. Each plugin

``````````

</details>


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


More information about the llvm-branch-commits mailing list