[clang] [llvm] [Clang][SYCL][Object] Compile SYCL device code once per IGCA target (PR #239010)
Yury Plyakhin via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 19 14:51:54 PST 2026
================
@@ -70,6 +70,11 @@ class LLVM_LIBRARY_VISIBILITY SYCLToolChain : public ToolChain {
SYCLInstallationDetector SYCLInstallation;
};
+/// \return the architecture to compile SYCL device code for, given \p Arch
+/// from --offload-arch: the IGCA target if \p Arch is an Intel GPU, e.g.
+/// "igca_30r" for "xe-mtl-u", and \p Arch itself otherwise.
+StringRef getSYCLVirtualArch(StringRef Arch);
----------------
YuriPlyakhin wrote:
If this function is not SYCL specific, like `getVirtualArch`, where would it go? It seems it should be in `OffloadArch`.
https://github.com/llvm/llvm-project/pull/239010
More information about the cfe-commits
mailing list