[llvm] AMDGPU/NFC: Reserve 0x056 and 0x057 EF_AMDGPU_MACHs (PR #92917)
Konstantin Zhuravlyov via llvm-commits
llvm-commits at lists.llvm.org
Tue May 21 06:49:48 PDT 2024
https://github.com/kzhuravl created https://github.com/llvm/llvm-project/pull/92917
None
>From 115b439a7c8a4093060131830668fa17d513e491 Mon Sep 17 00:00:00 2001
From: Konstantin Zhuravlyov <kzhuravl_dev at outlook.com>
Date: Tue, 21 May 2024 09:47:45 -0400
Subject: [PATCH] AMDGPU/NFC: Reserve 0x056 and 0x057 EF_AMDGPU_MACHs
---
llvm/docs/AMDGPUUsage.rst | 2 ++
llvm/include/llvm/BinaryFormat/ELF.h | 4 +++-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/llvm/docs/AMDGPUUsage.rst b/llvm/docs/AMDGPUUsage.rst
index 75536bc5bea67..1004956ac8f10 100644
--- a/llvm/docs/AMDGPUUsage.rst
+++ b/llvm/docs/AMDGPUUsage.rst
@@ -1970,6 +1970,8 @@ The AMDGPU backend uses the following ELF header:
``EF_AMDGPU_MACH_AMDGCN_GFX10_3_GENERIC`` 0x053 ``gfx10-3-generic``
``EF_AMDGPU_MACH_AMDGCN_GFX11_GENERIC`` 0x054 ``gfx11-generic``
*reserved* 0x055 Reserved.
+ *reserved* 0x056 Reserved.
+ *reserved* 0x057 Reserved.
========================================== ========== =============================
Sections
diff --git a/llvm/include/llvm/BinaryFormat/ELF.h b/llvm/include/llvm/BinaryFormat/ELF.h
index f296acc2ca4bb..67cacaed2e12e 100644
--- a/llvm/include/llvm/BinaryFormat/ELF.h
+++ b/llvm/include/llvm/BinaryFormat/ELF.h
@@ -796,11 +796,13 @@ enum : unsigned {
EF_AMDGPU_MACH_AMDGCN_GFX10_3_GENERIC = 0x053,
EF_AMDGPU_MACH_AMDGCN_GFX11_GENERIC = 0x054,
EF_AMDGPU_MACH_AMDGCN_RESERVED_0X55 = 0x055,
+ EF_AMDGPU_MACH_AMDGCN_RESERVED_0X56 = 0x056,
+ EF_AMDGPU_MACH_AMDGCN_RESERVED_0X57 = 0x057,
// clang-format on
// First/last AMDGCN-based processors.
EF_AMDGPU_MACH_AMDGCN_FIRST = EF_AMDGPU_MACH_AMDGCN_GFX600,
- EF_AMDGPU_MACH_AMDGCN_LAST = EF_AMDGPU_MACH_AMDGCN_GFX11_GENERIC,
+ EF_AMDGPU_MACH_AMDGCN_LAST = EF_AMDGPU_MACH_AMDGCN_RESERVED_0X57,
// Indicates if the "xnack" target feature is enabled for all code contained
// in the object.
More information about the llvm-commits
mailing list