================
@@ -742,15 +746,11 @@ static Error runAOTCompileIntelGPU(StringRef InputFile,
StringRef OutputFile,
/// into the AOT compilation step.
static Error runAOTCompile(StringRef InputFile, StringRef OutputFile,
const ArgList &Args) {
- StringRef Arch = Args.getLastArgValue(OPT_arch_EQ);
- OffloadArch OA = StringToOffloadArch(Arch);
- if (OA.isIntelGPU())
+ OffloadArch OA = StringToOffloadArch(Args.getLastArgValue(OPT_arch_EQ));
+ if (OA.isIntelGPU() || OA.isIntelIGCA())
----------------
sarnex wrote:
i wonder if it's clearer for users of `OffloadArch` if `isIntelGPU` returns
true for `IGCA`
https://github.com/llvm/llvm-project/pull/239010
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits