[AMDGPU] Add gfx90a and gfx940 to get_elf_mach_gfx_name.cpp
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Wed, 2 Mar 2022 22:18:13 +0000 (14:18 -0800)
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Thu, 17 Mar 2022 20:05:07 +0000 (13:05 -0700)
Differential Revision: https://reviews.llvm.org/D120849

openmp/libomptarget/plugins/amdgpu/impl/get_elf_mach_gfx_name.cpp

index ee2ea3a..51ad810 100644 (file)
@@ -38,8 +38,12 @@ const char *get_elf_mach_gfx_name(uint32_t EFlags) {
     return "gfx908";
   case EF_AMDGPU_MACH_AMDGCN_GFX909:
     return "gfx909";
+  case EF_AMDGPU_MACH_AMDGCN_GFX90A:
+    return "gfx90a";
   case EF_AMDGPU_MACH_AMDGCN_GFX90C:
     return "gfx90c";
+  case EF_AMDGPU_MACH_AMDGCN_GFX940:
+    return "gfx940";
   case EF_AMDGPU_MACH_AMDGCN_GFX1010:
     return "gfx1010";
   case EF_AMDGPU_MACH_AMDGCN_GFX1011: