LLVM  3.7.0
MipsSEFrameLowering.h
Go to the documentation of this file.
1 //===-- MipsSEFrameLowering.h - Mips32/64 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 //
10 //
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_LIB_TARGET_MIPS_MIPSSEFRAMELOWERING_H
15 #define LLVM_LIB_TARGET_MIPS_MIPSSEFRAMELOWERING_H
16 
17 #include "MipsFrameLowering.h"
18 
19 namespace llvm {
20 
22 public:
23  explicit MipsSEFrameLowering(const MipsSubtarget &STI);
24 
25  /// emitProlog/emitEpilog - These methods insert prolog and epilog code into
26  /// the function.
27  void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
28  void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
29 
32  const std::vector<CalleeSavedInfo> &CSI,
33  const TargetRegisterInfo *TRI) const override;
34 
35  bool hasReservedCallFrame(const MachineFunction &MF) const override;
36 
37  void determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs,
38  RegScavenger *RS) const override;
39  unsigned ehDataReg(unsigned I) const;
40 };
41 
42 } // End llvm namespace
43 
44 #endif
const MipsSubtarget & STI
bool spillCalleeSavedRegisters(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, const std::vector< CalleeSavedInfo > &CSI, const TargetRegisterInfo *TRI) const override
spillCalleeSavedRegisters - Issues instruction(s) to spill all callee saved registers and returns tru...
bool hasReservedCallFrame(const MachineFunction &MF) const override
hasReservedCallFrame - Under normal circumstances, when a frame pointer is not required, we reserve argument space for call sites in the function immediately on entry to the current function.
void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override
emitProlog/emitEpilog - These methods insert prolog and epilog code into the function.
bundle_iterator< MachineInstr, instr_iterator > iterator
TargetRegisterInfo base class - We assume that the target defines a static array of TargetRegisterDes...
void determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs, RegScavenger *RS) const override
This method determines which of the registers reported by TargetRegisterInfo::getCalleeSavedRegs() sh...
MipsSEFrameLowering(const MipsSubtarget &STI)
#define I(x, y, z)
Definition: MD5.cpp:54
unsigned ehDataReg(unsigned I) const
void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override