blob: 6481a0ac86d709712bd421e460e7b857d648cc97 [file] [log] [blame]
Akira Hatanakacdb3ba72012-07-31 22:50:19 +00001//===-- MipsSEFrameLowering.h - Mips32/64 frame lowering --------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10//
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef MIPSSE_FRAMEINFO_H
15#define MIPSSE_FRAMEINFO_H
16
17#include "MipsFrameLowering.h"
18
19namespace llvm {
20
21class MipsSEFrameLowering : public MipsFrameLowering {
22public:
23 explicit MipsSEFrameLowering(const MipsSubtarget &STI)
24 : MipsFrameLowering(STI) {}
25
26 /// emitProlog/emitEpilog - These methods insert prolog and epilog code into
27 /// the function.
28 void emitPrologue(MachineFunction &MF) const;
29 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const;
30
31 bool spillCalleeSavedRegisters(MachineBasicBlock &MBB,
32 MachineBasicBlock::iterator MI,
33 const std::vector<CalleeSavedInfo> &CSI,
34 const TargetRegisterInfo *TRI) const;
35
36 bool hasReservedCallFrame(const MachineFunction &MF) const;
37
38 void processFunctionBeforeCalleeSavedScan(MachineFunction &MF,
39 RegScavenger *RS) const;
40};
41
42} // End llvm namespace
43
44#endif