[clang] [llvm] [TargetParser][clang] Parse and store Intel IGCA virtual architecture as an OffloadArch (PR #227468)

Tom Honermann via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 23 15:59:46 PDT 2026


================
@@ -3928,6 +3928,11 @@ static StringRef getCanonicalArchString(Compilation &C,
         return StringRef();
       }
     }
+  } else if (Triple.isSPIRV() && ArchStr.starts_with("igca_") &&
----------------
tahonermann wrote:

I'm not fond of singling out AMD as a vendor here. Microsoft is embracing SPIR-V these days, so a future `spirv64-microsoft-XXX` could be a reality.

Ideally, I think we would require the vendor component to be `intel`. If that isn't an option, then I think we should not bother with attempting to diagnose the AMD case.

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


More information about the cfe-commits mailing list