Implement MipsSERegisterInfo::eliminateCallFramePseudoInstr. The function emits
[oota-llvm.git] / lib / Target / Mips / MipsSERegisterInfo.h
1 //===-- MipsSERegisterInfo.h - Mips32/64 Register Information ---*- 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 // This file contains the Mips32/64 implementation of the TargetRegisterInfo
11 // class.
12 //
13 //===----------------------------------------------------------------------===//
14
15 #ifndef MIPSSEREGISTERINFO_H
16 #define MIPSSEREGISTERINFO_H
17
18 #include "MipsRegisterInfo.h"
19
20 namespace llvm {
21
22 class MipsSERegisterInfo : public MipsRegisterInfo {
23 public:
24   MipsSERegisterInfo(const MipsSubtarget &Subtarget,
25                      const TargetInstrInfo &TII);
26
27   void eliminateCallFramePseudoInstr(MachineFunction &MF,
28                                      MachineBasicBlock &MBB,
29                                      MachineBasicBlock::iterator I) const;
30
31 private:
32   virtual void eliminateFI(MachineBasicBlock::iterator II, unsigned OpNo,
33                            int FrameIndex, uint64_t StackSize,
34                            int64_t SPOffset) const;
35 };
36
37 } // end namespace llvm
38
39 #endif