LLVM API Documentation

Mips16FrameLowering.h
Go to the documentation of this file.
00001 //===-- Mips16FrameLowering.h - Mips16 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_MIPS16FRAMELOWERING_H
00015 #define LLVM_LIB_TARGET_MIPS_MIPS16FRAMELOWERING_H
00016 
00017 #include "MipsFrameLowering.h"
00018 
00019 namespace llvm {
00020 class Mips16FrameLowering : public MipsFrameLowering {
00021 public:
00022   explicit Mips16FrameLowering(const MipsSubtarget &STI);
00023 
00024   /// emitProlog/emitEpilog - These methods insert prolog and epilog code into
00025   /// the function.
00026   void emitPrologue(MachineFunction &MF) const override;
00027   void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
00028 
00029   void eliminateCallFramePseudoInstr(MachineFunction &MF,
00030                                   MachineBasicBlock &MBB,
00031                                   MachineBasicBlock::iterator I) const override;
00032 
00033   bool spillCalleeSavedRegisters(MachineBasicBlock &MBB,
00034                                  MachineBasicBlock::iterator MI,
00035                                  const std::vector<CalleeSavedInfo> &CSI,
00036                                  const TargetRegisterInfo *TRI) const override;
00037 
00038   bool restoreCalleeSavedRegisters(MachineBasicBlock &MBB,
00039                                   MachineBasicBlock::iterator MI,
00040                                   const std::vector<CalleeSavedInfo> &CSI,
00041                                   const TargetRegisterInfo *TRI) const override;
00042 
00043   bool hasReservedCallFrame(const MachineFunction &MF) const override;
00044 
00045   void processFunctionBeforeCalleeSavedScan(MachineFunction &MF,
00046                                             RegScavenger *RS) const override;
00047 };
00048 
00049 } // End llvm namespace
00050 
00051 #endif