[llvm-commits] CVS: llvm/lib/Target/X86/X86RegisterInfo.cpp X86RegisterInfo.td
Chris Lattner
lattner at cs.uiuc.edu
Mon Aug 4 15:59:02 PDT 2003
Changes in directory llvm/lib/Target/X86:
X86RegisterInfo.cpp updated: 1.33 -> 1.34
X86RegisterInfo.td updated: 1.4 -> 1.5
---
Log message:
Rename register classes to be upper case to make it obvious that they are X86
specific in the tree patterns
---
Diffs of the changes:
Index: llvm/lib/Target/X86/X86RegisterInfo.cpp
diff -u llvm/lib/Target/X86/X86RegisterInfo.cpp:1.33 llvm/lib/Target/X86/X86RegisterInfo.cpp:1.34
--- llvm/lib/Target/X86/X86RegisterInfo.cpp:1.33 Sun Aug 3 10:48:14 2003
+++ llvm/lib/Target/X86/X86RegisterInfo.cpp Mon Aug 4 15:58:29 2003
@@ -254,14 +254,14 @@
default: assert(0 && "Invalid type to getClass!");
case Type::BoolTyID:
case Type::SByteTyID:
- case Type::UByteTyID: return &r8Instance;
+ case Type::UByteTyID: return &R8Instance;
case Type::ShortTyID:
- case Type::UShortTyID: return &r16Instance;
+ case Type::UShortTyID: return &R16Instance;
case Type::IntTyID:
case Type::UIntTyID:
- case Type::PointerTyID: return &r32Instance;
+ case Type::PointerTyID: return &R32Instance;
case Type::FloatTyID:
- case Type::DoubleTyID: return &rFPInstance;
+ case Type::DoubleTyID: return &RFPInstance;
}
}
Index: llvm/lib/Target/X86/X86RegisterInfo.td
diff -u llvm/lib/Target/X86/X86RegisterInfo.td:1.4 llvm/lib/Target/X86/X86RegisterInfo.td:1.5
--- llvm/lib/Target/X86/X86RegisterInfo.td:1.4 Sun Aug 3 23:59:56 2003
+++ llvm/lib/Target/X86/X86RegisterInfo.td Mon Aug 4 15:58:29 2003
@@ -69,8 +69,8 @@
// top-level register classes. The order specified in the register list is
// implicitly defined to be the register allocation order.
//
-def r8 : RegisterClass<i8, 1, [AL, CL, DL, BL, AH, CH, DH, BH]>;
-def r16 : RegisterClass<i16, 2, [AX, CX, DX, BX, SI, DI, BP, SP]> {
+def R8 : RegisterClass<i8, 1, [AL, CL, DL, BL, AH, CH, DH, BH]>;
+def R16 : RegisterClass<i16, 2, [AX, CX, DX, BX, SI, DI, BP, SP]> {
let Methods = [{
iterator allocation_order_end(MachineFunction &MF) const {
if (hasFP(MF)) // Does the function dedicate EBP to being a frame ptr?
@@ -81,7 +81,7 @@
}];
}
-def r32 : RegisterClass<i32, 4, [EAX, ECX, EDX, EBX, ESI, EDI, EBP, ESP]> {
+def R32 : RegisterClass<i32, 4, [EAX, ECX, EDX, EBX, ESI, EDI, EBP, ESP]> {
let Methods = [{
iterator allocation_order_end(MachineFunction &MF) const {
if (hasFP(MF)) // Does the function dedicate EBP to being a frame ptr?
@@ -92,7 +92,7 @@
}];
}
-def rFP : RegisterClass<f80, 4, [FP0, FP1, FP2, FP3, FP4, FP5, FP6]>;
+def RFP : RegisterClass<f80, 4, [FP0, FP1, FP2, FP3, FP4, FP5, FP6]>;
// Registers which cannot be allocated... and are thus left unnamed.
def : RegisterClass<f80, 4, [ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7]>;
More information about the llvm-commits
mailing list