[llvm] [AMDGPU] Simplify definition of AddrSpaces. NFC. (PR #141030)

via llvm-commits llvm-commits at lists.llvm.org
Thu May 22 03:01:32 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-backend-amdgpu

Author: Jay Foad (jayfoad)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/141030.diff


1 Files Affected:

- (modified) llvm/lib/Target/AMDGPU/AMDGPUInstructions.td (+1-3) 


``````````diff
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 {

``````````

</details>


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


More information about the llvm-commits mailing list