================
@@ -2138,6 +2154,12 @@ void ToolChain::TranslateXarchArgs(
 static bool isXArchCompatibleTripleArch(const llvm::Triple &TT,
                                         StringRef XArchVal) {
   llvm::Triple ParsedTriple(XArchVal);
+
+  // Accept -Xarch_amdgcn for all amdgpu subarches, and -Xarch_amdgpu9 for
+  // amdgpu9.xx
+  if (TT.isAMDGCN() && ParsedTriple.isAMDGCN())
----------------
jhuber6 wrote:

Does this still work with `-Xarch_gfx942` for example?

https://github.com/llvm/llvm-project/pull/206482
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to