[llvm-commits] CVS: llvm/lib/Target/IA64/IA64RegisterInfo.td
Duraid Madina
duraid at octopus.com.au
Tue Nov 1 23:30:51 PST 2005
Changes in directory llvm/lib/Target/IA64:
IA64RegisterInfo.td updated: 1.9 -> 1.10
---
Log message:
add F0 and F1 to the FP register class
---
Diffs of the changes: (+19 -3)
IA64RegisterInfo.td | 22 +++++++++++++++++++---
1 files changed, 19 insertions(+), 3 deletions(-)
Index: llvm/lib/Target/IA64/IA64RegisterInfo.td
diff -u llvm/lib/Target/IA64/IA64RegisterInfo.td:1.9 llvm/lib/Target/IA64/IA64RegisterInfo.td:1.10
--- llvm/lib/Target/IA64/IA64RegisterInfo.td:1.9 Fri Oct 28 12:46:36 2005
+++ llvm/lib/Target/IA64/IA64RegisterInfo.td Wed Nov 2 01:30:39 2005
@@ -226,7 +226,6 @@
//
// these are the scratch (+stacked) general registers
-// ZERO (r0), GP (r1), SP (r12), ThreadP (r13) are not here...
// FIXME/XXX we also reserve a frame pointer (r15)
// FIXME/XXX we also reserve r2 for spilling/filling predicates
// in IA64RegisterInfo.cpp
@@ -283,7 +282,6 @@
// these are the scratch (+stacked) FP registers
-// ZERO (F0) and ONE (F1) are not here
def FP : RegisterClass<"IA64", f64, 64,
[F6, F7,
F8, F9, F10, F11, F12, F13, F14, F15,
@@ -298,7 +296,25 @@
F96, F97, F98, F99, F100, F101, F102, F103,
F104, F105, F106, F107, F108, F109, F110, F111,
F112, F113, F114, F115, F116, F117, F118, F119,
- F120, F121, F122, F123, F124, F125, F126, F127]>;
+ F120, F121, F122, F123, F124, F125, F126, F127,
+ F0, F1]> // these last two are hidden
+ {
+ let MethodProtos = [{
+ iterator allocation_order_begin(MachineFunction &MF) const;
+ iterator allocation_order_end(MachineFunction &MF) const;
+ }];
+ let MethodBodies = [{
+ FPClass::iterator
+ FPClass::allocation_order_begin(MachineFunction &MF) const {
+ return begin(); // we don't hide any FP regs from the start
+ }
+
+ FPClass::iterator
+ FPClass::allocation_order_end(MachineFunction &MF) const {
+ return end()-2; // we hide regs F0, F1 from the end
+ }
+ }];
+}
// these are the predicate registers, p0 (1/TRUE) is not here
def PR : RegisterClass<"IA64", i1, 64,
More information about the llvm-commits
mailing list