[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:06:50 PDT 2025
https://github.com/RossBrunton updated https://github.com/llvm/llvm-project/pull/145716
>From 86c22bb2f484e0bc3d68521d7b3fb41616e4d0ce 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 | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/offload/plugins-nextgen/host/src/rtl.cpp b/offload/plugins-nextgen/host/src/rtl.cpp
index ced9208acaedc..a35910aece986 100644
--- a/offload/plugins-nextgen/host/src/rtl.cpp
+++ b/offload/plugins-nextgen/host/src/rtl.cpp
@@ -147,6 +147,12 @@ 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