[clang] [llvm] [Driver][clang-linker-wrapper] Add initial support for OpenMP offloading to generic SPIR-V (PR #120145)

Nick Sarnie via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 17 07:21:53 PST 2024


================
@@ -4256,6 +4256,7 @@ bool CompilerInvocation::ParseLangArgs(LangOptions &Opts, ArgList &Args,
 
       if (TT.getArch() == llvm::Triple::UnknownArch ||
           !(TT.getArch() == llvm::Triple::aarch64 || TT.isPPC() ||
+            TT.getArch() == llvm::Triple::spirv64 ||
----------------
sarnex wrote:

Right now it's at least throwing an error if the triple doesn't match the list, so there might be some case where removing the error will break something, so I'd prefer to not introduce a bug in a possibly untested area.

https://github.com/llvm/llvm-project/pull/120145


More information about the llvm-commits mailing list