[flang-commits] [clang] [flang] [llvm] clang: Start using new amdgpu subarch triples (PR #206482)

Matt Arsenault via flang-commits flang-commits at lists.llvm.org
Wed Aug 19 23:21:17 PDT 2026


================
@@ -1226,11 +1233,19 @@ ToolChain::path_list ToolChain::getArchSpecificLibPaths() const {
 
   AddPath({getTriple().str()});
 
-  // Handle the legacy AMDGPU triple case as well.
-  if (getTriple().getArchName() == "amdgcn") {
+  // For AMDGPU, fall back to the subarch-stripped triple path, trying both the
+  // canonical "amdgpu" name and the legacy "amdgcn" name.
+  //
+  // TODO: Also try major subarch?
----------------
arsenm wrote:

This is just getting the tests to pass, the actual library layout needs work 

https://github.com/llvm/llvm-project/pull/206482


More information about the flang-commits mailing list