1 //===-- MipsSEFrameLowering.h - Mips32/64 frame lowering --------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
12 //===----------------------------------------------------------------------===//
14 #ifndef MIPSSE_FRAMEINFO_H
15 #define MIPSSE_FRAMEINFO_H
17 #include "MipsFrameLowering.h"
21 class MipsSEFrameLowering : public MipsFrameLowering {
23 explicit MipsSEFrameLowering(const MipsSubtarget &STI)
24 : MipsFrameLowering(STI, STI.stackAlignment()) {}
26 /// emitProlog/emitEpilog - These methods insert prolog and epilog code into
28 void emitPrologue(MachineFunction &MF) const;
29 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const;
31 void eliminateCallFramePseudoInstr(MachineFunction &MF,
32 MachineBasicBlock &MBB,
33 MachineBasicBlock::iterator I) const;
35 bool spillCalleeSavedRegisters(MachineBasicBlock &MBB,
36 MachineBasicBlock::iterator MI,
37 const std::vector<CalleeSavedInfo> &CSI,
38 const TargetRegisterInfo *TRI) const;
40 bool hasReservedCallFrame(const MachineFunction &MF) const;
42 void processFunctionBeforeCalleeSavedScan(MachineFunction &MF,
43 RegScavenger *RS) const;
44 unsigned ehDataReg(unsigned I) const;
47 } // End llvm namespace