Don't generate carry bit when loading immediate values on the Microblaze.
[oota-llvm.git] / lib / Target / MBlaze / MBlazeFrameInfo.h
1 //=-- MBlazeFrameInfo.h - Define TargetFrameInfo for MicroBlaze --*- 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 MBLAZE_FRAMEINFO_H
15 #define MBLAZE_FRAMEINFO_H
16
17 #include "MBlaze.h"
18 #include "MBlazeSubtarget.h"
19 #include "llvm/Target/TargetFrameInfo.h"
20
21 namespace llvm {
22   class MBlazeSubtarget;
23
24 class MBlazeFrameInfo : public TargetFrameInfo {
25 protected:
26   const MBlazeSubtarget &STI;
27
28 public:
29   explicit MBlazeFrameInfo(const MBlazeSubtarget &sti)
30     : TargetFrameInfo(TargetFrameInfo::StackGrowsUp, 4, 0), STI(sti) {
31   }
32
33   /// targetHandlesStackFrameRounding - Returns true if the target is
34   /// responsible for rounding up the stack frame (probably at emitPrologue
35   /// time).
36   bool targetHandlesStackFrameRounding() const { return true; }
37
38   /// emitProlog/emitEpilog - These methods insert prolog and epilog code into
39   /// the function.
40   void emitPrologue(MachineFunction &MF) const;
41   void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const;
42
43   bool hasFP(const MachineFunction &MF) const;
44
45   virtual void processFunctionBeforeCalleeSavedScan(MachineFunction &MF,
46                                                     RegScavenger *RS) const;
47 };
48
49 } // End llvm namespace
50
51 #endif