Switch the fixed-length disassembler to be table-driven.
[oota-llvm.git] / lib / Target / Mips / Mips16RegisterInfo.h
1 //===-- Mips16RegisterInfo.h - Mips16 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 Mips16 implementation of the TargetRegisterInfo class.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef MIPS16REGISTERINFO_H
15 #define MIPS16REGISTERINFO_H
16
17 #include "MipsRegisterInfo.h"
18
19 namespace llvm {
20
21 class Mips16RegisterInfo : public MipsRegisterInfo {
22 public:
23   Mips16RegisterInfo(const MipsSubtarget &Subtarget,
24                      const TargetInstrInfo &TII);
25
26   void eliminateCallFramePseudoInstr(MachineFunction &MF,
27                                      MachineBasicBlock &MBB,
28                                      MachineBasicBlock::iterator I) const;
29 private:
30   virtual void eliminateFI(MachineBasicBlock::iterator II, unsigned OpNo,
31                            int FrameIndex, uint64_t StackSize,
32                            int64_t SPOffset) const;
33 };
34
35 } // end namespace llvm
36
37 #endif