1 //=- BlackfinFrameLowering.h - Define frame lowering for Blackfin -*- C++ -*-=//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
12 //===----------------------------------------------------------------------===//
14 #ifndef ALPHA_FRAMEINFO_H
15 #define ALPHA_FRAMEINFO_H
18 #include "BlackfinSubtarget.h"
19 #include "llvm/Target/TargetFrameLowering.h"
22 class BlackfinSubtarget;
24 class BlackfinFrameLowering : public TargetFrameLowering {
26 const BlackfinSubtarget &STI;
29 explicit BlackfinFrameLowering(const BlackfinSubtarget &sti)
30 : TargetFrameLowering(TargetFrameLowering::StackGrowsDown, 4, 0), STI(sti) {
33 /// emitProlog/emitEpilog - These methods insert prolog and epilog code into
35 void emitPrologue(MachineFunction &MF) const;
36 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const;
38 bool hasFP(const MachineFunction &MF) const;
39 bool hasReservedCallFrame(const MachineFunction &MF) const;
41 void processFunctionBeforeCalleeSavedScan(MachineFunction &MF,
42 RegScavenger *RS) const;
45 } // End llvm namespace