[clang] [llvm] [Driver][SYCL] Add initial SYCL offload compilation support (PR #107493)
Michael Toguchi via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 25 15:27:20 PDT 2024
================
@@ -767,6 +768,27 @@ Driver::OpenMPRuntimeKind Driver::getOpenMPRuntime(const ArgList &Args) const {
return RT;
}
+static const char *getDefaultSYCLArch(Compilation &C) {
+ // If -fsycl is supplied we will assume SPIR-V
+ if (C.getDefaultToolChain().getTriple().getArch() == llvm::Triple::x86)
----------------
mdtoguchi wrote:
Yup, that's right. I've updated to use your suggestion.
https://github.com/llvm/llvm-project/pull/107493
More information about the cfe-commits
mailing list