LLVM API Documentation

Thumb1FrameLowering.h
Go to the documentation of this file.
00001 //===-- Thumb1FrameLowering.h - Thumb1-specific frame info stuff --*- 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_ARM_THUMB1FRAMELOWERING_H
00015 #define LLVM_LIB_TARGET_ARM_THUMB1FRAMELOWERING_H
00016 
00017 #include "ARMFrameLowering.h"
00018 #include "Thumb1InstrInfo.h"
00019 #include "Thumb1RegisterInfo.h"
00020 #include "llvm/Target/TargetFrameLowering.h"
00021 
00022 namespace llvm {
00023 
00024 class Thumb1FrameLowering : public ARMFrameLowering {
00025 public:
00026   explicit Thumb1FrameLowering(const ARMSubtarget &sti);
00027 
00028   /// emitProlog/emitEpilog - These methods insert prolog and epilog code into
00029   /// the function.
00030   void emitPrologue(MachineFunction &MF) const override;
00031   void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) 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   bool restoreCalleeSavedRegisters(MachineBasicBlock &MBB,
00038                                   MachineBasicBlock::iterator MI,
00039                                   const std::vector<CalleeSavedInfo> &CSI,
00040                                   const TargetRegisterInfo *TRI) const override;
00041 
00042   bool hasReservedCallFrame(const MachineFunction &MF) const override;
00043 
00044   void
00045   eliminateCallFramePseudoInstr(MachineFunction &MF,
00046                                 MachineBasicBlock &MBB,
00047                                 MachineBasicBlock::iterator MI) const override;
00048 };
00049 
00050 } // End llvm namespace
00051 
00052 #endif