Added virtual functions for storing and retrieving values from the stack.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4824 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Misha Brukman 2002-11-22 22:41:23 +00:00
parent 35880f394f
commit f6a132c7a0

View File

@ -107,15 +107,20 @@ public:
const MRegisterDesc &get(unsigned RegNo) const { return operator[](RegNo); }
virtual void copyReg2PCRel(MachineBasicBlock *MBB,
MachineBasicBlock::iterator &MBBI,
unsigned SrcReg, unsigned ImmOffset,
unsigned dataSize) const = 0;
virtual MachineBasicBlock::iterator
storeReg2RegOffset(MachineBasicBlock *MBB,
MachineBasicBlock::iterator &MBBI,
unsigned SrcReg, unsigned DestReg,
unsigned ImmOffset, unsigned dataSize) const = 0;
virtual void copyPCRel2Reg(MachineBasicBlock *MBB,
MachineBasicBlock::iterator &MBBI,
unsigned ImmOffset, unsigned DestReg,
unsigned dataSize) const = 0;
virtual MachineBasicBlock::iterator
loadRegOffset2Reg(MachineBasicBlock *MBB,
MachineBasicBlock::iterator &MBBI,
unsigned DestReg, unsigned SrcReg,
unsigned ImmOffset, unsigned dataSize) const = 0;
virtual unsigned getFramePointer() const = 0;
virtual unsigned getStackPointer() const = 0;
/// Register class iterators
typedef const TargetRegisterClass* const_iterator;