[llvm] [AMDGPU][NFCI] Decouple actual register encodings from HWEncoding values. (PR #69452)
Ivan Kosarev via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 19 03:00:45 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 {
----------------
kosarev wrote:
OK. What namespace do we want `LITERAL_CONST` to be declared in? Would it make sense to rename `EncValues` to `HWEncoding` and introduce another `EncValues` namespace for that kind of constants?
https://github.com/llvm/llvm-project/pull/69452
More information about the llvm-commits
mailing list