================
@@ -181,6 +181,18 @@ bool AMDGPUTargetInfo::initFeatureMap(
return false;
}
+ // The target parser does not expose these backend features to Sema.
+ if (getTriple().isAMDGCN()) {
+ llvm::AMDGPU::GPUKind Kind =
+ CPU.empty() ? getGPUKindFromSubArch(getTriple().getSubArch())
+ : parseArchAMDGCN(CPU);
----------------
arsenm wrote:
Should never be parsing the arch
https://github.com/llvm/llvm-project/pull/241042
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits