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 LLVM_LIB_TARGET_MIPS_MIPSSEFRAMELOWERING_H
15 #define LLVM_LIB_TARGET_MIPS_MIPSSEFRAMELOWERING_H
17 #include "MipsFrameLowering.h"
21 class MipsSEFrameLowering : public MipsFrameLowering {
23 explicit MipsSEFrameLowering(const MipsSubtarget &STI);
25 /// emitProlog/emitEpilog - These methods insert prolog and epilog code into
27 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
28 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
30 int getFrameIndexReference(const MachineFunction &MF, int FI,
31 unsigned &FrameReg) const override;
33 bool spillCalleeSavedRegisters(MachineBasicBlock &MBB,
34 MachineBasicBlock::iterator MI,
35 const std::vector<CalleeSavedInfo> &CSI,
36 const TargetRegisterInfo *TRI) const override;
38 bool hasReservedCallFrame(const MachineFunction &MF) const override;
40 void determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs,
41 RegScavenger *RS) const override;
42 unsigned ehDataReg(unsigned I) const;
45 void emitInterruptEpilogueStub(MachineFunction &MF,
46 MachineBasicBlock &MBB) const;
47 void emitInterruptPrologueStub(MachineFunction &MF,
48 MachineBasicBlock &MBB) const;
50 } // End llvm namespace