[llvm-commits] CVS: llvm/lib/Target/X86/X86RegisterInfo.cpp X86RegisterInfo.h

Chris Lattner lattner at cs.uiuc.edu
Sun Aug 15 14:56:23 PDT 2004



Changes in directory llvm/lib/Target/X86:

X86RegisterInfo.cpp updated: 1.89 -> 1.90
X86RegisterInfo.h updated: 1.26 -> 1.27
---
Log message:

These methods no longer take a TargetRegisterClass* operand.


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

Index: llvm/lib/Target/X86/X86RegisterInfo.cpp
diff -u llvm/lib/Target/X86/X86RegisterInfo.cpp:1.89 llvm/lib/Target/X86/X86RegisterInfo.cpp:1.90
--- llvm/lib/Target/X86/X86RegisterInfo.cpp:1.89	Sat Aug 14 17:05:10 2004
+++ llvm/lib/Target/X86/X86RegisterInfo.cpp	Sun Aug 15 16:56:12 2004
@@ -56,10 +56,10 @@
 
 int X86RegisterInfo::storeRegToStackSlot(MachineBasicBlock &MBB,
                                          MachineBasicBlock::iterator MI,
-                                         unsigned SrcReg, int FrameIdx,
-                                         const TargetRegisterClass *RC) const {
+                                         unsigned SrcReg, int FrameIdx) const {
   static const unsigned Opcode[] =
     { X86::MOV8mr, X86::MOV16mr, X86::MOV32mr, X86::FSTP80m };
+  const TargetRegisterClass *RC = getRegClass(SrcReg);
   MachineInstr *I = addFrameReference(BuildMI(Opcode[getIdx(RC)], 5),
 				       FrameIdx).addReg(SrcReg);
   MBB.insert(MI, I);
@@ -68,10 +68,10 @@
 
 int X86RegisterInfo::loadRegFromStackSlot(MachineBasicBlock &MBB,
                                           MachineBasicBlock::iterator MI,
-                                          unsigned DestReg, int FrameIdx,
-                                          const TargetRegisterClass *RC) const{
+                                          unsigned DestReg, int FrameIdx) const{
   static const unsigned Opcode[] =
     { X86::MOV8rm, X86::MOV16rm, X86::MOV32rm, X86::FLD80m };
+  const TargetRegisterClass *RC = getRegClass(DestReg);
   unsigned OC = Opcode[getIdx(RC)];
   MBB.insert(MI, addFrameReference(BuildMI(OC, 4, DestReg), FrameIdx));
   return 1;


Index: llvm/lib/Target/X86/X86RegisterInfo.h
diff -u llvm/lib/Target/X86/X86RegisterInfo.h:1.26 llvm/lib/Target/X86/X86RegisterInfo.h:1.27
--- llvm/lib/Target/X86/X86RegisterInfo.h:1.26	Sat Aug 14 17:05:10 2004
+++ llvm/lib/Target/X86/X86RegisterInfo.h	Sun Aug 15 16:56:12 2004
@@ -29,13 +29,11 @@
   /// Code Generation virtual methods...
   int storeRegToStackSlot(MachineBasicBlock &MBB,
                           MachineBasicBlock::iterator MI,
-                          unsigned SrcReg, int FrameIndex,
-                          const TargetRegisterClass *RC) const;
+                          unsigned SrcReg, int FrameIndex) const;
 
   int loadRegFromStackSlot(MachineBasicBlock &MBB,
                            MachineBasicBlock::iterator MI,
-                           unsigned DestReg, int FrameIndex,
-                           const TargetRegisterClass *RC) const;
+                           unsigned DestReg, int FrameIndex) const;
   
   int copyRegToReg(MachineBasicBlock &MBB,
                    MachineBasicBlock::iterator MI,






More information about the llvm-commits mailing list