[llvm] [Offload] Add an `unloadBinary` interface to PluginInterface (PR #143873)
Ross Brunton via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 12 07:50:25 PDT 2025
================
@@ -13,7 +13,9 @@
def : Function {
let name = "olCreateProgram";
let desc = "Create a program for the device from the binary image pointed to by `ProgData`.";
- let details = [];
+ let details = [
+ "`ProgData` must remain valid for the entire lifetime of the output `Program` handle",
----------------
RossBrunton wrote:
Ah, okay. I read the original comment as the PluginInterface making a copy which lives for the lifetime of the device. Having the program handle owning a copy (which is discarded when the handle is) makes more sense.
https://github.com/llvm/llvm-project/pull/143873
More information about the llvm-commits
mailing list