MipsSEFrameLowering.h revision cd81d94322a39503e4a3e87b6ee03d4fcb3465fb
1//===-- 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
25  /// emitProlog/emitEpilog - These methods insert prolog and epilog code into
26  /// the function.
27  void emitPrologue(MachineFunction &MF) const override;
28  void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
29
30  void eliminateCallFramePseudoInstr(MachineFunction &MF,
31                                  MachineBasicBlock &MBB,
32                                  MachineBasicBlock::iterator I) const override;
33
34  bool spillCalleeSavedRegisters(MachineBasicBlock &MBB,
35                                 MachineBasicBlock::iterator MI,
36                                 const std::vector<CalleeSavedInfo> &CSI,
37                                 const TargetRegisterInfo *TRI) const override;
38
39  bool hasReservedCallFrame(const MachineFunction &MF) const override;
40
41  void processFunctionBeforeCalleeSavedScan(MachineFunction &MF,
42                                            RegScavenger *RS) const override;
43  unsigned ehDataReg(unsigned I) const;
44};
45
46} // End llvm namespace
47
48#endif
49