diff options
author | Ross Brunton <ross@codeplay.com> | 2025-07-14 16:05:41 +0100 |
---|---|---|
committer | Ross Brunton <ross@codeplay.com> | 2025-07-14 16:13:03 +0100 |
commit | 8589fcc6d053cb2937cf970d1ce354abfb84da31 (patch) | |
tree | 16d0fe40bf88867c2c2591c6e7eac86a9d43cda5 /offload/plugins-nextgen/common/src/PluginInterface.cpp | |
parent | fa31376cc84b9039fc91bdccb1362f98074da255 (diff) | |
download | llvm-users/RossBrunton/link2.zip llvm-users/RossBrunton/link2.tar.gz llvm-users/RossBrunton/link2.tar.bz2 |
[Offload] Add `olLinkProgram`users/RossBrunton/link2
A version of `olCreateProgram` that inputs many bitcode files and links
them together before loading them.
Diffstat (limited to 'offload/plugins-nextgen/common/src/PluginInterface.cpp')
-rw-r--r-- | offload/plugins-nextgen/common/src/PluginInterface.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/offload/plugins-nextgen/common/src/PluginInterface.cpp b/offload/plugins-nextgen/common/src/PluginInterface.cpp index 81b9d42..9e2234d 100644 --- a/offload/plugins-nextgen/common/src/PluginInterface.cpp +++ b/offload/plugins-nextgen/common/src/PluginInterface.cpp @@ -903,6 +903,13 @@ Error GenericDeviceTy::deinit(GenericPluginTy &Plugin) { return deinitImpl(); } + +Expected<__tgt_device_image> +GenericDeviceTy::jitLinkBinary(GenericPluginTy &Plugin, + std::vector<__tgt_device_image> InputImages) { + return Plugin.getJIT().link(InputImages, *this); +} + Expected<DeviceImageTy *> GenericDeviceTy::loadBinary(GenericPluginTy &Plugin, const __tgt_device_image *InputTgtImage) { |