[llvm-commits] CVS: llvm/lib/Target/SparcV8/SparcV8RegisterInfo.cpp SparcV8RegisterInfo.h

Chris Lattner lattner at cs.uiuc.edu
Thu Sep 29 18:29:56 PDT 2005



Changes in directory llvm/lib/Target/SparcV8:

SparcV8RegisterInfo.cpp updated: 1.26 -> 1.27
SparcV8RegisterInfo.h updated: 1.5 -> 1.6
---
Log message:

Pass extra regclasses into spilling code


---
Diffs of the changes:  (+8 -4)

 SparcV8RegisterInfo.cpp |    6 ++++--
 SparcV8RegisterInfo.h   |    6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)


Index: llvm/lib/Target/SparcV8/SparcV8RegisterInfo.cpp
diff -u llvm/lib/Target/SparcV8/SparcV8RegisterInfo.cpp:1.26 llvm/lib/Target/SparcV8/SparcV8RegisterInfo.cpp:1.27
--- llvm/lib/Target/SparcV8/SparcV8RegisterInfo.cpp:1.26	Fri Aug 19 13:50:11 2005
+++ llvm/lib/Target/SparcV8/SparcV8RegisterInfo.cpp	Thu Sep 29 20:29:42 2005
@@ -40,7 +40,8 @@
 
 void SparcV8RegisterInfo::
 storeRegToStackSlot(MachineBasicBlock &MBB, MachineBasicBlock::iterator I,
-                    unsigned SrcReg, int FrameIdx) const {
+                    unsigned SrcReg, int FrameIdx,
+                    const TargetRegisterClass *rc) const {
   const TargetRegisterClass *RC = getClass(SrcReg);
 
   // On the order of operands here: think "[FrameIdx + 0] = SrcReg".
@@ -59,7 +60,8 @@
 
 void SparcV8RegisterInfo::
 loadRegFromStackSlot(MachineBasicBlock &MBB, MachineBasicBlock::iterator I,
-                     unsigned DestReg, int FrameIdx) const {
+                     unsigned DestReg, int FrameIdx,
+                     const TargetRegisterClass *rc) const {
   const TargetRegisterClass *RC = getClass(DestReg);
   if (RC == V8::IntRegsRegisterClass)
     BuildMI (MBB, I, V8::LD, 2, DestReg).addFrameIndex (FrameIdx).addSImm (0);


Index: llvm/lib/Target/SparcV8/SparcV8RegisterInfo.h
diff -u llvm/lib/Target/SparcV8/SparcV8RegisterInfo.h:1.5 llvm/lib/Target/SparcV8/SparcV8RegisterInfo.h:1.6
--- llvm/lib/Target/SparcV8/SparcV8RegisterInfo.h:1.5	Thu Apr 21 18:21:30 2005
+++ llvm/lib/Target/SparcV8/SparcV8RegisterInfo.h	Thu Sep 29 20:29:42 2005
@@ -28,11 +28,13 @@
   /// Code Generation virtual methods...
   void storeRegToStackSlot(MachineBasicBlock &MBB,
                            MachineBasicBlock::iterator MBBI,
-                           unsigned SrcReg, int FrameIndex) const;
+                           unsigned SrcReg, int FrameIndex,
+                           const TargetRegisterClass *RC) const;
 
   void loadRegFromStackSlot(MachineBasicBlock &MBB,
                             MachineBasicBlock::iterator MBBI,
-                            unsigned DestReg, int FrameIndex) const;
+                            unsigned DestReg, int FrameIndex,
+                            const TargetRegisterClass *RC) const;
 
   void copyRegToReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI,
                     unsigned DestReg, unsigned SrcReg,






More information about the llvm-commits mailing list