================
@@ -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);
----------------
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

Reply via email to