1 //===-- XCoreFrameInfo.h - Frame info for XCore Target -----------*- 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 //===----------------------------------------------------------------------===//
10 // This file contains XCore frame information that doesn't fit anywhere else
13 //===----------------------------------------------------------------------===//
15 #ifndef XCOREFRAMEINFO_H
16 #define XCOREFRAMEINFO_H
18 #include "llvm/Target/TargetFrameInfo.h"
19 #include "llvm/Target/TargetMachine.h"
24 class XCoreFrameInfo: public TargetFrameInfo {
25 const XCoreSubtarget &STI;
27 XCoreFrameInfo(const XCoreSubtarget &STI);
29 /// emitProlog/emitEpilog - These methods insert prolog and epilog code into
31 void emitPrologue(MachineFunction &MF) const;
32 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const;
34 //! Stack slot size (4 bytes)
35 static int stackSlotSize() {
41 #endif // XCOREFRAMEINFO_H