1 //===- SkeletonRegisterInfo.h - Skeleton Register Information Impl -*- C++ -*-==//
3 // The LLVM Compiler Infrastructure
5 // This file was developed by the LLVM research group and is distributed under
6 // the University of Illinois Open Source License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file contains the Skeleton implementation of the MRegisterInfo class.
12 //===----------------------------------------------------------------------===//
14 #ifndef SKELETON_REGISTERINFO_H
15 #define SKELETON_REGISTERINFO_H
17 #include "SkeletonGenRegisterInfo.h.inc"
22 struct SkeletonRegisterInfo : public SkeletonGenRegisterInfo {
23 SkeletonRegisterInfo();
25 void storeRegToStackSlot(MachineBasicBlock &MBB,
26 MachineBasicBlock::iterator MBBI,
27 unsigned SrcReg, int FrameIndex) const;
29 void loadRegFromStackSlot(MachineBasicBlock &MBB,
30 MachineBasicBlock::iterator MBBI,
31 unsigned DestReg, int FrameIndex) const;
33 void copyRegToReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI,
34 unsigned DestReg, unsigned SrcReg,
35 const TargetRegisterClass *RC) const;
37 void eliminateCallFramePseudoInstr(MachineFunction &MF,
38 MachineBasicBlock &MBB,
39 MachineBasicBlock::iterator I) const;
41 void eliminateFrameIndex(MachineBasicBlock::iterator II) const;
43 void processFunctionBeforeFrameFinalized(MachineFunction &MF) const;
45 void emitPrologue(MachineFunction &MF) const;
46 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const;
48 } // end namespace llvm