1 //===- PPC32RegisterInfo.h - PowerPC32 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 PowerPC implementation of the MRegisterInfo class.
12 //===----------------------------------------------------------------------===//
14 #ifndef POWERPC32_REGISTERINFO_H
15 #define POWERPC32_REGISTERINFO_H
18 #include "PPC32GenRegisterInfo.h.inc"
25 class PPC32RegisterInfo : public PPC32GenRegisterInfo {
26 std::map<unsigned, unsigned> ImmToIdxMap;
30 /// Code Generation virtual methods...
31 void storeRegToStackSlot(MachineBasicBlock &MBB,
32 MachineBasicBlock::iterator MBBI,
33 unsigned SrcReg, int FrameIndex) const;
35 void loadRegFromStackSlot(MachineBasicBlock &MBB,
36 MachineBasicBlock::iterator MBBI,
37 unsigned DestReg, int FrameIndex) const;
39 void copyRegToReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI,
40 unsigned DestReg, unsigned SrcReg,
41 const TargetRegisterClass *RC) const;
43 void eliminateCallFramePseudoInstr(MachineFunction &MF,
44 MachineBasicBlock &MBB,
45 MachineBasicBlock::iterator I) const;
47 void eliminateFrameIndex(MachineBasicBlock::iterator II) const;
49 void emitPrologue(MachineFunction &MF) const;
50 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const;
53 } // end namespace llvm