Moved InsertCallerSaveInstr to the SparcRegInfo.cpp and made machine independent
authorRuchira Sasanka <sasanka@students.uiuc.edu>
Sat, 3 Nov 2001 17:14:13 +0000 (17:14 +0000)
committerRuchira Sasanka <sasanka@students.uiuc.edu>
Sat, 3 Nov 2001 17:14:13 +0000 (17:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1107 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/MachineInstrInfo.h
include/llvm/Target/TargetInstrInfo.h
include/llvm/Target/TargetRegInfo.h

index d0294caf468afb9bc219f3c0d22721d8b17e9b7a..696738a15157b64356969b2e11c4d6a5e2c3f716 100644 (file)
@@ -166,13 +166,13 @@ public:
         || getDescriptor(opCode).iclass & M_PREFETCH_FLAG
         || getDescriptor(opCode).iclass & M_STORE_FLAG;
   }
-  bool isDummyPhiInstr(MachineOpCode opCode) const {
+  bool isDummyPhiInstr(const MachineOpCode opCode) const {
     return getDescriptor(opCode).iclass & M_DUMMY_PHI_FLAG;
   }
 
 
   // delete this later *******
-  bool isPhi(MachineOpCode opCode) { return isDummyPhiInstr(opCode); }  
+  bool isPhi(const MachineOpCode opCode) { return isDummyPhiInstr(opCode); }  
   
 
   // Check if an instruction can be issued before its operands are ready,
index d0294caf468afb9bc219f3c0d22721d8b17e9b7a..696738a15157b64356969b2e11c4d6a5e2c3f716 100644 (file)
@@ -166,13 +166,13 @@ public:
         || getDescriptor(opCode).iclass & M_PREFETCH_FLAG
         || getDescriptor(opCode).iclass & M_STORE_FLAG;
   }
-  bool isDummyPhiInstr(MachineOpCode opCode) const {
+  bool isDummyPhiInstr(const MachineOpCode opCode) const {
     return getDescriptor(opCode).iclass & M_DUMMY_PHI_FLAG;
   }
 
 
   // delete this later *******
-  bool isPhi(MachineOpCode opCode) { return isDummyPhiInstr(opCode); }  
+  bool isPhi(const MachineOpCode opCode) { return isDummyPhiInstr(opCode); }  
   
 
   // Check if an instruction can be issued before its operands are ready,
index 73dc0ce1c744114a7e0a8fd08f09b33891a58b26..9983629ad02347c8f38d7fabf2e9e57e67280e41 100644 (file)
@@ -142,14 +142,17 @@ public:
   cpReg2RegMI(const unsigned SrcReg, const unsigned DestReg,
              const int RegType) const=0;
 
-   virtual MachineInstr * 
-   cpReg2MemMI(const unsigned SrcReg, const unsigned DestPtrReg,
+  virtual MachineInstr * 
+  cpReg2MemMI(const unsigned SrcReg, const unsigned DestPtrReg,
               const int Offset, const int RegType) const=0;
 
-   virtual MachineInstr *
+  virtual MachineInstr *
    cpMem2RegMI(const unsigned SrcPtrReg, const int Offset,
               const unsigned DestReg, const int RegType) const=0;
 
+  virtual MachineInstr *cpValue2Value( Value *Src, Value *Dest) const=0;
+
+
   virtual bool isRegVolatile(const int RegClassID, const int Reg) const=0;