[clang] [llvm] [TargetParser][clang] Parse Intel IGCA targets from --offload-arch into OffloadArch (PR #227468)
Tom Honermann via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 29 12:21:27 PDT 2026
================
@@ -3949,6 +3949,19 @@ static StringRef getCanonicalArchString(Compilation &C,
return StringRef();
}
}
+ } else if (Triple.isSPIRV() && ArchStr.starts_with("igca")) {
+ if (Triple.getOS() == llvm::Triple::AMDHSA) {
+ C.getDriver().Diag(clang::diag::err_drv_offload_bad_gpu_arch)
+ << "HIP" << ArchStr;
----------------
tahonermann wrote:
@srividya-sundaram, I agree this would be a good change to make. This conversation is marked as resolved, but there doesn't seem to be a corresponding change. I'll unresolve it for now. If the intent is to address this in another PR, that is certainly fine.
https://github.com/llvm/llvm-project/pull/227468
More information about the cfe-commits
mailing list