[clang] [llvm] [Offload][libsycl][clang-sycl-linker] Simplify SYCL Offload wrapping (PR #193876)
Yury Plyakhin via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 27 07:18:02 PDT 2026
================
@@ -13,113 +13,95 @@
#include <detail/device_impl.hpp>
#include <detail/offload/offload_utils.hpp>
-#include <cstring>
+#include <llvm/Frontend/Offloading/Utility.h>
----------------
YuriPlyakhin wrote:
We want to save metadata to OffloadBinary in the way that SYCL RT could read without parsing.
For that I implemented utility format/functions in Utility.h (check `llvm/include/llvm/Frontend/Offloading/Utility.h` in this patch). It is used both during generation of OffloadBinary (for writing) and during consuming of data (in SYCL RT).
E.g. llvm::offloading::sycl::forEachSymbol
But this functionality is not part of OffloadBinary, it is just a utility specific for SYCL on top of it.
Offloading/Utility.h includes OffloadBinary.h.
https://github.com/llvm/llvm-project/pull/193876
More information about the cfe-commits
mailing list