[clang] [llvm] [SYCL] Add offload wrapping for SYCL kind. (PR #147508)
Maksim Sabianin via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 26 09:32:37 PDT 2025
================
@@ -52,6 +54,23 @@ LLVM_ABI llvm::Error wrapHIPBinary(llvm::Module &M, llvm::ArrayRef<char> Images,
EntryArrayTy EntryArray,
llvm::StringRef Suffix = "",
bool EmitSurfacesAndTextures = true);
+
+struct SYCLJITOptions {
+ // Target/compiler specific options that are suggested to use to "compile"
+ // program at runtime.
+ std::string CompileOptions;
+ // Target/compiler specific options that are suggested to use to "link"
+ // program at runtime.
+ std::string LinkOptions;
+};
+
+/// Wraps OffloadBinaries in the given \p Buffers into the module \p M
+/// as global symbols and registers the images with the SYCL Runtime.
+/// \param Options Data that needs to be encoded for the later use in a runtime.
----------------
maksimsab wrote:
Done.
https://github.com/llvm/llvm-project/pull/147508
More information about the llvm-commits
mailing list