[llvm-commits] CVS: llvm/lib/Target/X86/X86RegisterInfo.td
Chris Lattner
lattner at cs.uiuc.edu
Fri Aug 19 12:13:33 PDT 2005
Changes in directory llvm/lib/Target/X86:
X86RegisterInfo.td updated: 1.20 -> 1.21
---
Log message:
Split RegisterClass 'Methods' into MethodProtos and MethodBodies
---
Diffs of the changes: (+18 -6)
X86RegisterInfo.td | 24 ++++++++++++++++++------
1 files changed, 18 insertions(+), 6 deletions(-)
Index: llvm/lib/Target/X86/X86RegisterInfo.td
diff -u llvm/lib/Target/X86/X86RegisterInfo.td:1.20 llvm/lib/Target/X86/X86RegisterInfo.td:1.21
--- llvm/lib/Target/X86/X86RegisterInfo.td:1.20 Fri Aug 19 13:51:57 2005
+++ llvm/lib/Target/X86/X86RegisterInfo.td Fri Aug 19 14:13:20 2005
@@ -75,8 +75,12 @@
def R8 : RegisterClass<"X86", i8, 8, [AL, CL, DL, AH, CH, DH, BL, BH]>;
def R16 : RegisterClass<"X86", i16, 16, [AX, CX, DX, SI, DI, BX, BP, SP]> {
- let Methods = [{
- iterator allocation_order_end(MachineFunction &MF) const {
+ let MethodProtos = [{
+ iterator allocation_order_end(MachineFunction &MF) const;
+ }];
+ let MethodBodies = [{
+ R16Class::iterator
+ R16Class::allocation_order_end(MachineFunction &MF) const {
if (hasFP(MF)) // Does the function dedicate EBP to being a frame ptr?
return end()-2; // If so, don't allocate SP or BP
else
@@ -86,8 +90,12 @@
}
def R32 : RegisterClass<"X86", i32, 32, [EAX, ECX, EDX, ESI, EDI, EBX, EBP, ESP]> {
- let Methods = [{
- iterator allocation_order_end(MachineFunction &MF) const {
+ let MethodProtos = [{
+ iterator allocation_order_end(MachineFunction &MF) const;
+ }];
+ let MethodBodies = [{
+ R32Class::iterator
+ R32Class::allocation_order_end(MachineFunction &MF) const {
if (hasFP(MF)) // Does the function dedicate EBP to being a frame ptr?
return end()-2; // If so, don't allocate ESP or EBP
else
@@ -115,8 +123,12 @@
// for transforming FPn allocations to STn registers)
def RST : RegisterClass<"X86", f64, 32,
[ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7]> {
- let Methods = [{
- iterator allocation_order_end(MachineFunction &MF) const {
+ let MethodProtos = [{
+ iterator allocation_order_end(MachineFunction &MF) const;
+ }];
+ let MethodBodies = [{
+ RSTClass::iterator
+ RSTClass::allocation_order_end(MachineFunction &MF) const {
return begin();
}
}];
More information about the llvm-commits
mailing list