LLVM  3.7.0
Thumb1FrameLowering.h
Go to the documentation of this file.
1 //===-- Thumb1FrameLowering.h - Thumb1-specific frame info stuff --*- 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_ARM_THUMB1FRAMELOWERING_H
15 #define LLVM_LIB_TARGET_ARM_THUMB1FRAMELOWERING_H
16 
17 #include "ARMFrameLowering.h"
18 #include "Thumb1InstrInfo.h"
19 #include "ThumbRegisterInfo.h"
21 
22 namespace llvm {
23 
25 public:
26  explicit Thumb1FrameLowering(const ARMSubtarget &sti);
27 
28  /// emitProlog/emitEpilog - These methods insert prolog and epilog code into
29  /// the function.
30  void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
31  void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
32 
35  const std::vector<CalleeSavedInfo> &CSI,
36  const TargetRegisterInfo *TRI) const override;
39  const std::vector<CalleeSavedInfo> &CSI,
40  const TargetRegisterInfo *TRI) const override;
41 
42  bool hasReservedCallFrame(const MachineFunction &MF) const override;
43 
44  void
46  MachineBasicBlock &MBB,
47  MachineBasicBlock::iterator MI) const override;
48 };
49 
50 } // End llvm namespace
51 
52 #endif
void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override
Thumb1FrameLowering(const ARMSubtarget &sti)
bundle_iterator< MachineInstr, instr_iterator > iterator
bool restoreCalleeSavedRegisters(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, const std::vector< CalleeSavedInfo > &CSI, const TargetRegisterInfo *TRI) const override
restoreCalleeSavedRegisters - Issues instruction(s) to restore all callee saved registers and returns...
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.
TargetRegisterInfo base class - We assume that the target defines a static array of TargetRegisterDes...
void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override
emitProlog/emitEpilog - These methods insert prolog and epilog code into the function.
void eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator MI) const override
eliminateCallFramePseudoInstr - This method is called during prolog/epilog code insertion to eliminat...
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...