Fix uninitialized variable
[llvm-core.git] / lib / Target / Mips / Mips16FrameLowering.h
blobf7fa4dc3d86d9ac28678b734e5111fd3f66eb144
1 //===-- Mips16FrameLowering.h - Mips16 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 //
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_LIB_TARGET_MIPS_MIPS16FRAMELOWERING_H
15 #define LLVM_LIB_TARGET_MIPS_MIPS16FRAMELOWERING_H
17 #include "MipsFrameLowering.h"
19 namespace llvm {
20 class Mips16FrameLowering : public MipsFrameLowering {
21 public:
22 explicit Mips16FrameLowering(const MipsSubtarget &STI);
24 /// emitProlog/emitEpilog - These methods insert prolog and epilog code into
25 /// the function.
26 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
27 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
29 bool spillCalleeSavedRegisters(MachineBasicBlock &MBB,
30 MachineBasicBlock::iterator MI,
31 const std::vector<CalleeSavedInfo> &CSI,
32 const TargetRegisterInfo *TRI) const override;
34 bool restoreCalleeSavedRegisters(MachineBasicBlock &MBB,
35 MachineBasicBlock::iterator MI,
36 std::vector<CalleeSavedInfo> &CSI,
37 const TargetRegisterInfo *TRI) const override;
39 bool hasReservedCallFrame(const MachineFunction &MF) const override;
41 void determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs,
42 RegScavenger *RS) const override;
45 } // End llvm namespace
47 #endif