LLVM API Documentation

MipsSEFrameLowering.h
Go to the documentation of this file.
00001 //===-- MipsSEFrameLowering.h - Mips32/64 frame lowering --------*- C++ -*-===//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 //
00010 //
00011 //
00012 //===----------------------------------------------------------------------===//
00013 
00014 #ifndef LLVM_LIB_TARGET_MIPS_MIPSSEFRAMELOWERING_H
00015 #define LLVM_LIB_TARGET_MIPS_MIPSSEFRAMELOWERING_H
00016 
00017 #include "MipsFrameLowering.h"
00018 
00019 namespace llvm {
00020 
00021 class MipsSEFrameLowering : public MipsFrameLowering {
00022 public:
00023   explicit MipsSEFrameLowering(const MipsSubtarget &STI);
00024 
00025   /// emitProlog/emitEpilog - These methods insert prolog and epilog code into
00026   /// the function.
00027   void emitPrologue(MachineFunction &MF) const override;
00028   void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
00029 
00030   void eliminateCallFramePseudoInstr(MachineFunction &MF,
00031                                   MachineBasicBlock &MBB,
00032                                   MachineBasicBlock::iterator I) const override;
00033 
00034   bool spillCalleeSavedRegisters(MachineBasicBlock &MBB,
00035                                  MachineBasicBlock::iterator MI,
00036                                  const std::vector<CalleeSavedInfo> &CSI,
00037                                  const TargetRegisterInfo *TRI) const override;
00038 
00039   bool hasReservedCallFrame(const MachineFunction &MF) const override;
00040 
00041   void processFunctionBeforeCalleeSavedScan(MachineFunction &MF,
00042                                             RegScavenger *RS) const override;
00043   unsigned ehDataReg(unsigned I) const;
00044 };
00045 
00046 } // End llvm namespace
00047 
00048 #endif