diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-05-03 13:07:54 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-05-03 13:07:54 +0000 |
commit | b561264d2b2e33e1e6322a99d600b5daece5bbde (patch) | |
tree | e7f4636b0381e8fef9a324f2330c66c842ee655b /lib/Target/MSP430/MSP430RegisterInfo.h | |
parent | 4428885c5acfffbbdd03ad2aab23960531c47753 (diff) | |
download | llvm-b561264d2b2e33e1e6322a99d600b5daece5bbde.tar.gz llvm-b561264d2b2e33e1e6322a99d600b5daece5bbde.tar.bz2 llvm-b561264d2b2e33e1e6322a99d600b5daece5bbde.tar.xz |
Add call frame setup instruction elimination and lowerid for bunch of call-related stuff.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70728 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/MSP430/MSP430RegisterInfo.h')
-rw-r--r-- | lib/Target/MSP430/MSP430RegisterInfo.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/Target/MSP430/MSP430RegisterInfo.h b/lib/Target/MSP430/MSP430RegisterInfo.h index f1c4095263..0dc061c674 100644 --- a/lib/Target/MSP430/MSP430RegisterInfo.h +++ b/lib/Target/MSP430/MSP430RegisterInfo.h @@ -20,12 +20,18 @@ namespace llvm { class TargetInstrInfo; +class MSP430TargetMachine; struct MSP430RegisterInfo : public MSP430GenRegisterInfo { private: + MSP430TargetMachine &TM; const TargetInstrInfo &TII; + + /// StackAlign - Default stack alignment. + /// + unsigned StackAlign; public: - MSP430RegisterInfo(const TargetInstrInfo &tii); + MSP430RegisterInfo(MSP430TargetMachine &tm, const TargetInstrInfo &tii); /// Code Generation virtual methods... const unsigned *getCalleeSavedRegs(const MachineFunction *MF = 0) const; @@ -36,6 +42,11 @@ public: BitVector getReservedRegs(const MachineFunction &MF) const; bool hasFP(const MachineFunction &MF) const; + bool hasReservedCallFrame(MachineFunction &MF) const; + + void eliminateCallFramePseudoInstr(MachineFunction &MF, + MachineBasicBlock &MBB, + MachineBasicBlock::iterator I) const; void eliminateFrameIndex(MachineBasicBlock::iterator II, int SPAdj, RegScavenger *RS = NULL) const; |