[llvm] [Offload] Add a stub unloadBinaryImpl for host device (PR #145716)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 25 08:06:38 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 HEAD~1 HEAD --extensions cpp -- offload/plugins-nextgen/host/src/rtl.cpp
``````````

</details>

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

``````````diff
diff --git a/offload/plugins-nextgen/host/src/rtl.cpp b/offload/plugins-nextgen/host/src/rtl.cpp
index 817a6c6d8..a35910aec 100644
--- a/offload/plugins-nextgen/host/src/rtl.cpp
+++ b/offload/plugins-nextgen/host/src/rtl.cpp
@@ -151,9 +151,7 @@ struct GenELF64DeviceTy : public GenericDeviceTy {
   ///
   /// TODO: This currently does nothing, and should be implemented as part of
   /// broader memory handling logic for this plugin
-  Error unloadBinaryImpl(DeviceImageTy *) override {
-    return Plugin::success();
-  }
+  Error unloadBinaryImpl(DeviceImageTy *) override { return Plugin::success(); }
 
   /// Deinitialize the device, which is a no-op
   Error deinitImpl() override { return Plugin::success(); }

``````````

</details>


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


More information about the llvm-commits mailing list