[clang] [clang-sycl-linker] Generate SymbolTable for each image (PR #161287)
Yury Plyakhin via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 30 09:26:23 PDT 2025
================
@@ -523,12 +545,13 @@ Error runSYCLLink(ArrayRef<std::string> Files, const ArgList &Args) {
return createFileError(File, EC);
}
OffloadingImage TheImage{};
- TheImage.TheImageKind = IMG_Object;
+ TheImage.TheImageKind = IMG_None;
----------------
YuriPlyakhin wrote:
At this point yes, there are problems, if we use `IMG_SPIRV` and `IMG_Object` due to incompatibility between data format used in upstream and Intel's compiler forks. I tried using `IMG_SPIRV`, etc. and it opens can of worms.
I plan to do the clean-up and sync structures between upstream and Intel's forks, but it is definitely a separate PR.
For this PR I used `IMG_None`, because in that case at least SYCL runtime has a heuristic to understand what the Image Kind is, so we can at least verify that overall compilation/linking scheme works.
https://github.com/llvm/llvm-project/pull/161287
More information about the cfe-commits
mailing list