[llvm] [AMDGPU][NFCI] Decouple actual register encodings from HWEncoding values. (PR #69452)

Stanislav Mekhanoshin via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 18 09:49:43 PDT 2023


================
@@ -38,9 +38,16 @@ using namespace llvm;
 
 #define DEBUG_TYPE "amdgpu-disassembler"
 
-#define SGPR_MAX                                                               \
-  (isGFX10Plus() ? AMDGPU::EncValues::SGPR_MAX_GFX10                           \
-                 : AMDGPU::EncValues::SGPR_MAX_SI)
+enum : unsigned {
----------------
rampitec wrote:

What's the point of moving it here? Technically we should use it in the AMDGPUMCCodeEmitter.cpp too.

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


More information about the llvm-commits mailing list