Remove unneeded stuff from GRAD register class.
authorDale Johannesen <dalej@apple.com>
Fri, 14 Nov 2008 18:10:48 +0000 (18:10 +0000)
committerDale Johannesen <dalej@apple.com>
Fri, 14 Nov 2008 18:10:48 +0000 (18:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59311 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86RegisterInfo.td

index 4ddec00500f4e9dcae416a3c3f35b0380ca22faf..5097b4f4f18f90d1a48e64f859ab44c9bae1e143 100644 (file)
@@ -441,25 +441,7 @@ def GR32_ : RegisterClass<"X86", [i32], 32, [EAX, ECX, EDX, EBX]> {
 }
 
 // A class to support the 'A' assembler constraint: EAX then EDX.
-def GRAD : RegisterClass<"X86", [i32], 32, [EAX, EDX]> {
-  let MethodProtos = [{
-    iterator allocation_order_begin(const MachineFunction &MF) const;
-    iterator allocation_order_end(const MachineFunction &MF) const;
-  }];
-  
-  let MethodBodies = [{
-     static const unsigned X86_GRAD_AO[] = {X86::EAX, X86::EDX};
-   GRADClass::iterator
-    GRADClass::allocation_order_begin(const MachineFunction &MF) const {
-      return X86_GRAD_AO;
-    }
-
-    GRADClass::iterator
-    GRADClass::allocation_order_end(const MachineFunction &MF) const {
-      return X86_GRAD_AO + (sizeof(X86_GRAD_AO) / sizeof(unsigned));
-    }
-  }];
-}
+def GRAD : RegisterClass<"X86", [i32], 32, [EAX, EDX]>;
 
 // Scalar SSE2 floating point registers.
 def FR32 : RegisterClass<"X86", [f32], 32,