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

Joseph Huber via flang-commits flang-commits at lists.llvm.org
Wed Aug 19 15:48:00 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?
----------------
jhuber6 wrote:

We definitely need to get this logic in so we can search like `amdgpu-amd-amdhsa/9.0` or something.

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


More information about the flang-commits mailing list