[flang-commits] [clang] [flang] [lld] [lldb] [llvm] AMDGPU: Introduce amdgpu triple arch (PR #206480)

Scott Linder via flang-commits flang-commits at lists.llvm.org
Tue Jul 7 08:51:41 PDT 2026


================
@@ -240,6 +242,51 @@ StringRef Triple::getArchName(ArchType Kind, SubArchType SubArch) {
       break;
     }
     break;
+  case Triple::amdgpu: {
+    if (SubArch < Triple::FirstAMDGPUSubArch ||
+        SubArch > Triple::LastAMDGPUSubArch)
+      break;
+
+    static const StringLiteral AMDGPUSubArchNames[Triple::LastAMDGPUSubArch -
----------------
slinder1 wrote:

Ditto, and it seems like `DXIL` does use a `switch`

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


More information about the flang-commits mailing list