1 //===-- X86TargetFrameInfo.h - Define TargetFrameInfo for X86 ---*- 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 X86_FRAMEINFO_H
15 #define X86_FRAMEINFO_H
17 #include "X86Subtarget.h"
18 #include "llvm/Target/TargetFrameInfo.h"
23 class X86FrameInfo : public TargetFrameInfo {
25 const X86Subtarget &STI;
28 explicit X86FrameInfo(const X86Subtarget &sti)
29 : TargetFrameInfo(StackGrowsDown,
30 sti.getStackAlignment(),
31 (sti.isTargetWin64() ? -40 : (sti.is64Bit() ? -8 : -4))),
35 void emitCalleeSavedFrameMoves(MachineFunction &MF, MCSymbol *Label,
36 unsigned FramePtr) const;
38 /// emitProlog/emitEpilog - These methods insert prolog and epilog code into
40 void emitPrologue(MachineFunction &MF) const;
41 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const;
44 } // End llvm namespace