[llvm] [Offload] Add a stub unloadBinaryImpl for host device (PR #145716)
Ross Brunton via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 25 08:04:03 PDT 2025
https://github.com/RossBrunton created https://github.com/llvm/llvm-project/pull/145716
None
>From f24db207a9a5ba7fbb0b95d2f98189b93cef7a87 Mon Sep 17 00:00:00 2001
From: Ross Brunton <ross at codeplay.com>
Date: Wed, 25 Jun 2025 16:03:22 +0100
Subject: [PATCH] [Offload] Add a stub unloadBinaryImpl for host device
---
offload/plugins-nextgen/host/src/rtl.cpp | 8 ++++++++
1 file changed, 8 insertions(+)
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(); }
More information about the llvm-commits
mailing list