[llvm-commits] CVS: llvm/lib/Target/Skeleton/SkeletonRegisterInfo.cpp SkeletonRegisterInfo.h

Chris Lattner lattner at cs.uiuc.edu
Sun Aug 15 15:15:42 PDT 2004



Changes in directory llvm/lib/Target/Skeleton:

SkeletonRegisterInfo.cpp updated: 1.3 -> 1.4
SkeletonRegisterInfo.h updated: 1.3 -> 1.4
---
Log message:

Code insertion methods now return void instead of #instrs inserted


---
Diffs of the changes:  (+15 -18)

Index: llvm/lib/Target/Skeleton/SkeletonRegisterInfo.cpp
diff -u llvm/lib/Target/Skeleton/SkeletonRegisterInfo.cpp:1.3 llvm/lib/Target/Skeleton/SkeletonRegisterInfo.cpp:1.4
--- llvm/lib/Target/Skeleton/SkeletonRegisterInfo.cpp:1.3	Sun Aug 15 16:56:30 2004
+++ llvm/lib/Target/Skeleton/SkeletonRegisterInfo.cpp	Sun Aug 15 17:15:30 2004
@@ -20,26 +20,23 @@
   : SkeletonGenRegisterInfo(Skeleton::ADJCALLSTACKDOWN,
                            Skeleton::ADJCALLSTACKUP) {}
 
-int SkeletonRegisterInfo::
+void SkeletonRegisterInfo::
 storeRegToStackSlot(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI,
                     unsigned SrcReg, int FrameIdx) const {
   abort();
-  return -1;
 }
 
-int SkeletonRegisterInfo::
+void SkeletonRegisterInfo::
 loadRegFromStackSlot(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI,
                      unsigned DestReg, int FrameIdx) const {
   abort();
-  return -1;
 }
 
-int SkeletonRegisterInfo::copyRegToReg(MachineBasicBlock &MBB,
-                                       MachineBasicBlock::iterator MBBI,
-                                       unsigned DestReg, unsigned SrcReg,
-                                       const TargetRegisterClass *RC) const {
+void SkeletonRegisterInfo::copyRegToReg(MachineBasicBlock &MBB,
+                                        MachineBasicBlock::iterator MBBI,
+                                        unsigned DestReg, unsigned SrcReg,
+                                        const TargetRegisterClass *RC) const {
   abort();
-  return -1;
 }
 
 void SkeletonRegisterInfo::


Index: llvm/lib/Target/Skeleton/SkeletonRegisterInfo.h
diff -u llvm/lib/Target/Skeleton/SkeletonRegisterInfo.h:1.3 llvm/lib/Target/Skeleton/SkeletonRegisterInfo.h:1.4
--- llvm/lib/Target/Skeleton/SkeletonRegisterInfo.h:1.3	Sun Aug 15 16:56:30 2004
+++ llvm/lib/Target/Skeleton/SkeletonRegisterInfo.h	Sun Aug 15 17:15:30 2004
@@ -25,17 +25,17 @@
     const TargetRegisterClass* getRegClassForType(const Type* Ty) const;
     
     // See MRegisterInfo.h for information on these methods.
-    int storeRegToStackSlot(MachineBasicBlock &MBB,
-                            MachineBasicBlock::iterator MBBI,
-                            unsigned SrcReg, int FrameIndex) const;
-    
-    int loadRegFromStackSlot(MachineBasicBlock &MBB,
+    void storeRegToStackSlot(MachineBasicBlock &MBB,
                              MachineBasicBlock::iterator MBBI,
-                             unsigned DestReg, int FrameIndex) const;
+                             unsigned SrcReg, int FrameIndex) const;
     
-    int copyRegToReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI,
-                     unsigned DestReg, unsigned SrcReg,
-                     const TargetRegisterClass *RC) const;
+    void loadRegFromStackSlot(MachineBasicBlock &MBB,
+                              MachineBasicBlock::iterator MBBI,
+                              unsigned DestReg, int FrameIndex) const;
+    
+    void copyRegToReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI,
+                      unsigned DestReg, unsigned SrcReg,
+                      const TargetRegisterClass *RC) const;
     
     void eliminateCallFramePseudoInstr(MachineFunction &MF,
                                        MachineBasicBlock &MBB,






More information about the llvm-commits mailing list