================
@@ -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);
----------------
srividya-sundaram wrote:
Done in https://github.com/llvm/llvm-project/pull/239010/commits/9db3349ad05c:
moved to `OffloadArch.h` as `getArchToCompileFor`.
For an Intel GPU it returns its IGCA target, `e.g. igca_30r for xe-mtl-u`, and
any other `--offload-arch` value, it is returned unchanged.
https://github.com/llvm/llvm-project/pull/239010
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits