Use %ull here.
[llvm/stm8.git] / lib / Target / XCore / XCoreFrameLowering.h
blob7da19f0deb1b5ebdd052c4d89c7019024eacc361
1 //===-- XCoreFrameLowering.h - Frame info for XCore Target -------*- 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 // This file contains XCore frame information that doesn't fit anywhere else
11 // cleanly...
13 //===----------------------------------------------------------------------===//
15 #ifndef XCOREFRAMEINFO_H
16 #define XCOREFRAMEINFO_H
18 #include "llvm/Target/TargetFrameLowering.h"
19 #include "llvm/Target/TargetMachine.h"
21 namespace llvm {
22 class XCoreSubtarget;
24 class XCoreFrameLowering: public TargetFrameLowering {
25 const XCoreSubtarget &STI;
26 public:
27 XCoreFrameLowering(const XCoreSubtarget &STI);
29 /// emitProlog/emitEpilog - These methods insert prolog and epilog code into
30 /// the function.
31 void emitPrologue(MachineFunction &MF) const;
32 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const;
34 bool spillCalleeSavedRegisters(MachineBasicBlock &MBB,
35 MachineBasicBlock::iterator MI,
36 const std::vector<CalleeSavedInfo> &CSI,
37 const TargetRegisterInfo *TRI) const;
38 bool restoreCalleeSavedRegisters(MachineBasicBlock &MBB,
39 MachineBasicBlock::iterator MI,
40 const std::vector<CalleeSavedInfo> &CSI,
41 const TargetRegisterInfo *TRI) const;
43 bool hasFP(const MachineFunction &MF) const;
45 void getInitialFrameState(std::vector<MachineMove> &Moves) const;
47 void processFunctionBeforeCalleeSavedScan(MachineFunction &MF,
48 RegScavenger *RS = NULL) const;
50 void processFunctionBeforeFrameFinalized(MachineFunction &MF) const;
52 //! Stack slot size (4 bytes)
53 static int stackSlotSize() {
54 return 4;
59 #endif // XCOREFRAMEINFO_H