Fix uninitialized variable
[llvm-core.git] / lib / Target / Mips / Mips16RegisterInfo.h
blobd67a79b640334bf70b7c3efa5d9362d85736c2b1
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.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_LIB_TARGET_MIPS_MIPS16REGISTERINFO_H
15 #define LLVM_LIB_TARGET_MIPS_MIPS16REGISTERINFO_H
17 #include "MipsRegisterInfo.h"
19 namespace llvm {
20 class Mips16InstrInfo;
22 class Mips16RegisterInfo : public MipsRegisterInfo {
23 public:
24 Mips16RegisterInfo();
26 bool requiresRegisterScavenging(const MachineFunction &MF) const override;
28 bool requiresFrameIndexScavenging(const MachineFunction &MF) const override;
30 bool useFPForScavengingIndex(const MachineFunction &MF) const override;
32 bool saveScavengerRegister(MachineBasicBlock &MBB,
33 MachineBasicBlock::iterator I,
34 MachineBasicBlock::iterator &UseMI,
35 const TargetRegisterClass *RC,
36 unsigned Reg) const override;
38 const TargetRegisterClass *intRegClass(unsigned Size) const override;
40 private:
41 void eliminateFI(MachineBasicBlock::iterator II, unsigned OpNo,
42 int FrameIndex, uint64_t StackSize,
43 int64_t SPOffset) const override;
46 } // end namespace llvm
48 #endif