[llvm] [AMDGPU] Simplify definition of AddrSpaces. NFC. (PR #141030)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Thu May 22 03:00:56 PDT 2025
https://github.com/jayfoad created https://github.com/llvm/llvm-project/pull/141030
None
>From 221b37a87303797f606bf05ef8facff541d351f1 Mon Sep 17 00:00:00 2001
From: Jay Foad <jay.foad at amd.com>
Date: Thu, 22 May 2025 10:57:28 +0100
Subject: [PATCH] [AMDGPU] Simplify definition of AddrSpaces. NFC.
---
llvm/lib/Target/AMDGPU/AMDGPUInstructions.td | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUInstructions.td b/llvm/lib/Target/AMDGPU/AMDGPUInstructions.td
index 78a92d85cfd8e..18a948d68e97b 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUInstructions.td
+++ b/llvm/lib/Target/AMDGPU/AMDGPUInstructions.td
@@ -11,7 +11,7 @@
//
//===----------------------------------------------------------------------===//
-class AddressSpacesImpl {
+def AddrSpaces {
int Flat = 0;
int Global = 1;
int Region = 2;
@@ -21,8 +21,6 @@ class AddressSpacesImpl {
int Constant32Bit = 6;
}
-def AddrSpaces : AddressSpacesImpl;
-
class AMDGPUInst <dag outs, dag ins, string asm = "",
list<dag> pattern = []> : Instruction {
More information about the llvm-commits
mailing list