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) {}
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 bool spillCalleeSavedRegisters(MachineBasicBlock &MBB,
32 MachineBasicBlock::iterator MI,
33 const std::vector<CalleeSavedInfo> &CSI,
34 const TargetRegisterInfo *TRI) const;
36 bool hasReservedCallFrame(const MachineFunction &MF) const;
38 void processFunctionBeforeCalleeSavedScan(MachineFunction &MF,
39 RegScavenger *RS) const;
42 } // End llvm namespace