LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
XCoreFrameLowering.h
Go to the documentation of this file.
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...
12 //
13 //===----------------------------------------------------------------------===//
14 
15 #ifndef XCOREFRAMEINFO_H
16 #define XCOREFRAMEINFO_H
17 
20 
21 namespace llvm {
22  class XCoreSubtarget;
23 
25  public:
27 
28  /// emitProlog/emitEpilog - These methods insert prolog and epilog code into
29  /// the function.
30  void emitPrologue(MachineFunction &MF) const;
31  void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const;
32 
35  const std::vector<CalleeSavedInfo> &CSI,
36  const TargetRegisterInfo *TRI) const;
39  const std::vector<CalleeSavedInfo> &CSI,
40  const TargetRegisterInfo *TRI) const;
41 
43  MachineBasicBlock &MBB,
45 
46  bool hasFP(const MachineFunction &MF) const;
47 
49  RegScavenger *RS = NULL) const;
50 
51  //! Stack slot size (4 bytes)
52  static int stackSlotSize() {
53  return 4;
54  }
55  };
56 }
57 
58 #endif // XCOREFRAMEINFO_H
XCoreFrameLowering(const XCoreSubtarget &STI)
bool hasFP(const MachineFunction &MF) const
static int stackSlotSize()
Stack slot size (4 bytes)
bool restoreCalleeSavedRegisters(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, const std::vector< CalleeSavedInfo > &CSI, const TargetRegisterInfo *TRI) const
void emitPrologue(MachineFunction &MF) const
bundle_iterator< MachineInstr, instr_iterator > iterator
void eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const
bool spillCalleeSavedRegisters(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, const std::vector< CalleeSavedInfo > &CSI, const TargetRegisterInfo *TRI) const
void processFunctionBeforeCalleeSavedScan(MachineFunction &MF, RegScavenger *RS=NULL) const
void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const
#define I(x, y, z)
Definition: MD5.cpp:54