================
@@ -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);
+ if (Kind == GK_GFX1250 || Kind == GK_GFX1250_STRICT)
+ Features.insert({"no-sleep-forever", true});
----------------
yxsamliu wrote:
Exposed both features through the shared table and removed arch parsing.
https://github.com/llvm/llvm-project/pull/241042
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits