[llvm] [Offload] Add a stub unloadBinaryImpl for host device (PR #145716)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 25 08:04:40 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-offload
Author: Ross Brunton (RossBrunton)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/145716.diff
1 Files Affected:
- (modified) offload/plugins-nextgen/host/src/rtl.cpp (+8)
``````````diff
diff --git a/offload/plugins-nextgen/host/src/rtl.cpp b/offload/plugins-nextgen/host/src/rtl.cpp
index ced9208acaedc..817a6c6d87d13 100644
--- a/offload/plugins-nextgen/host/src/rtl.cpp
+++ b/offload/plugins-nextgen/host/src/rtl.cpp
@@ -147,6 +147,14 @@ struct GenELF64DeviceTy : public GenericDeviceTy {
/// Initialize the device, which is a no-op
Error initImpl(GenericPluginTy &Plugin) override { return Plugin::success(); }
+ /// Unload the binary image
+ ///
+ /// 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();
+ }
+
/// 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