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

via llvm-commits llvm-commits at lists.llvm.org
Thu May 22 03:14:20 PDT 2025


Author: Jay Foad
Date: 2025-05-22T11:14:16+01:00
New Revision: e1db811341d361dde9767d41fe959efbca1adcbe

URL: https://github.com/llvm/llvm-project/commit/e1db811341d361dde9767d41fe959efbca1adcbe
DIFF: https://github.com/llvm/llvm-project/commit/e1db811341d361dde9767d41fe959efbca1adcbe.diff

LOG: [AMDGPU] Simplify definition of AddrSpaces. NFC. (#141030)

Added: 
    

Modified: 
    llvm/lib/Target/AMDGPU/AMDGPUInstructions.td

Removed: 
    


################################################################################
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