[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:40 PDT 2026


================
@@ -45,6 +195,51 @@ StringRef llvm::AMDGPU::getArchNameAMDGCN(GPUKind AK) {
   }
 }
 
+// Canonical GPU name for each AMDGPU subarch, indexed by SubArch -
+// Triple::FirstAMDGPUSubArch.
+static const StringLiteral AMDGPUSubArchNames[Triple::LastAMDGPUSubArch -
----------------
slinder1 wrote:

Ditto here, I think a `switch` is more clear

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


More information about the flang-commits mailing list