Silence -Wunused-variable in release builds.
[llvm/stm8.git] / lib / Target / Blackfin / BlackfinFrameLowering.h
blob726fa2c063f7b56795dc7934320a453c41f76754
1 //=- BlackfinFrameLowering.h - Define frame lowering for Blackfin -*- 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 //
12 //===----------------------------------------------------------------------===//
14 #ifndef ALPHA_FRAMEINFO_H
15 #define ALPHA_FRAMEINFO_H
17 #include "Blackfin.h"
18 #include "BlackfinSubtarget.h"
19 #include "llvm/Target/TargetFrameLowering.h"
21 namespace llvm {
22 class BlackfinSubtarget;
24 class BlackfinFrameLowering : public TargetFrameLowering {
25 protected:
26 const BlackfinSubtarget &STI;
28 public:
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
34 /// the function.
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
47 #endif