From f6a132c7a0226979aacf9d34b953452df9f140b3 Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Fri, 22 Nov 2002 22:41:23 +0000 Subject: [PATCH] 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 --- include/llvm/Target/MRegisterInfo.h | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/include/llvm/Target/MRegisterInfo.h b/include/llvm/Target/MRegisterInfo.h index c79b2584a5e..7a0dd3c4495 100644 --- a/include/llvm/Target/MRegisterInfo.h +++ b/include/llvm/Target/MRegisterInfo.h @@ -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;