1 //===-- Mips16FrameLowering.h - Mips16 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 MIPS16_FRAMEINFO_H
15 #define MIPS16_FRAMEINFO_H
17 #include "MipsFrameLowering.h"
20 class Mips16FrameLowering : public MipsFrameLowering {
22 explicit Mips16FrameLowering(const MipsSubtarget &STI)
23 : MipsFrameLowering(STI) {}
25 /// emitProlog/emitEpilog - These methods insert prolog and epilog code into
27 void emitPrologue(MachineFunction &MF) const;
28 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const;
30 bool spillCalleeSavedRegisters(MachineBasicBlock &MBB,
31 MachineBasicBlock::iterator MI,
32 const std::vector<CalleeSavedInfo> &CSI,
33 const TargetRegisterInfo *TRI) const;
35 bool hasReservedCallFrame(const MachineFunction &MF) const;
37 void processFunctionBeforeCalleeSavedScan(MachineFunction &MF,
38 RegScavenger *RS) const;
41 } // End llvm namespace