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();
24 const TargetRegisterClass* getRegClassForType(const Type* Ty) const;
26 void storeRegToStackSlot(MachineBasicBlock &MBB,
27 MachineBasicBlock::iterator MBBI,
28 unsigned SrcReg, int FrameIndex) const;
30 void loadRegFromStackSlot(MachineBasicBlock &MBB,
31 MachineBasicBlock::iterator MBBI,
32 unsigned DestReg, int FrameIndex) const;
34 void copyRegToReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI,
35 unsigned DestReg, unsigned SrcReg,
36 const TargetRegisterClass *RC) const;
38 void eliminateCallFramePseudoInstr(MachineFunction &MF,
39 MachineBasicBlock &MBB,
40 MachineBasicBlock::iterator I) const;
42 void eliminateFrameIndex(MachineBasicBlock::iterator II) const;
44 void processFunctionBeforeFrameFinalized(MachineFunction &MF) const;
46 void emitPrologue(MachineFunction &MF) const;
47 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const;
49 } // end namespace llvm