[clang] [llvm] [Driver][SYCL] Add initial SYCL offload compilation support (PR #107493)
Tom Honermann via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 17 13:57:28 PDT 2024
================
@@ -767,6 +768,26 @@ Driver::OpenMPRuntimeKind Driver::getOpenMPRuntime(const ArgList &Args) const {
return RT;
}
+static const char *getDefaultSYCLArch(Compilation &C) {
+ if (C.getDefaultToolChain().getTriple().getArch() == llvm::Triple::x86)
+ return "spir";
+ return "spir64";
----------------
tahonermann wrote:
Should these perhaps be "spirv32" and "spirv64"? `Driver::MakeSYCLDeviceTriple()` below seems to indicate that distinct architecture targets exist and comments elsewhere indicate that SPIR-V (not SPIR) is the intended default.
https://github.com/llvm/llvm-project/pull/107493
More information about the cfe-commits
mailing list