1 //===-- Mips16RegisterInfo.h - Mips16 Register Information ------*- 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 //===----------------------------------------------------------------------===//
10 // This file contains the Mips16 implementation of the TargetRegisterInfo class.
12 //===----------------------------------------------------------------------===//
14 #ifndef MIPS16REGISTERINFO_H
15 #define MIPS16REGISTERINFO_H
17 #include "MipsRegisterInfo.h"
20 class Mips16InstrInfo;
22 class Mips16RegisterInfo : public MipsRegisterInfo {
23 const Mips16InstrInfo &TII;
25 Mips16RegisterInfo(const MipsSubtarget &Subtarget,
26 const Mips16InstrInfo &TII);
28 void eliminateCallFramePseudoInstr(MachineFunction &MF,
29 MachineBasicBlock &MBB,
30 MachineBasicBlock::iterator I) const;
32 bool requiresRegisterScavenging(const MachineFunction &MF) const;
34 bool requiresFrameIndexScavenging(const MachineFunction &MF) const;
36 bool useFPForScavengingIndex(const MachineFunction &MF) const;
38 bool saveScavengerRegister(MachineBasicBlock &MBB,
39 MachineBasicBlock::iterator I,
40 MachineBasicBlock::iterator &UseMI,
41 const TargetRegisterClass *RC,
45 virtual void eliminateFI(MachineBasicBlock::iterator II, unsigned OpNo,
46 int FrameIndex, uint64_t StackSize,
47 int64_t SPOffset) const;
50 } // end namespace llvm