From 0d3ea0268f44f8fd4ddf7a15f3624b384b0691db Mon Sep 17 00:00:00 2001 From: Ruchira Sasanka Date: Sat, 3 Nov 2001 17:14:13 +0000 Subject: [PATCH] Moved InsertCallerSaveInstr to the SparcRegInfo.cpp and made machine independent git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1107 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Target/MachineInstrInfo.h | 4 ++-- include/llvm/Target/TargetInstrInfo.h | 4 ++-- include/llvm/Target/TargetRegInfo.h | 9 ++++++--- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/include/llvm/Target/MachineInstrInfo.h b/include/llvm/Target/MachineInstrInfo.h index d0294caf468..696738a1515 100644 --- a/include/llvm/Target/MachineInstrInfo.h +++ b/include/llvm/Target/MachineInstrInfo.h @@ -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, diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h index d0294caf468..696738a1515 100644 --- a/include/llvm/Target/TargetInstrInfo.h +++ b/include/llvm/Target/TargetInstrInfo.h @@ -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, diff --git a/include/llvm/Target/TargetRegInfo.h b/include/llvm/Target/TargetRegInfo.h index 73dc0ce1c74..9983629ad02 100644 --- a/include/llvm/Target/TargetRegInfo.h +++ b/include/llvm/Target/TargetRegInfo.h @@ -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; -- 2.34.1