The person who was planning to add SSE support isn't anymore, so disable
[oota-llvm.git] / lib / Target / PowerPC / PowerPCRegisterInfo.h
1 //===- PowerPCRegisterInfo.h - PowerPC Register Information Impl -*- C++ -*-==//
2 // 
3 //                     The LLVM Compiler Infrastructure
4 //
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.
7 // 
8 //===----------------------------------------------------------------------===//
9 //
10 // This file contains the PowerPC implementation of the MRegisterInfo class.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef POWERPC_REGISTERINFO_H
15 #define POWERPC_REGISTERINFO_H
16
17 #include "llvm/Target/MRegisterInfo.h"
18
19 namespace llvm {
20
21 class Type;
22
23 class PowerPCRegisterInfo : public PowerPCGenRegisterInfo {
24   std::map<unsigned, unsigned> ImmToIdxMap;
25 public:
26   PowerPCRegisterInfo();
27   const TargetRegisterClass* getRegClassForType(const Type* Ty) const;
28
29   /// Code Generation virtual methods...
30   void storeRegToStackSlot(MachineBasicBlock &MBB,
31                            MachineBasicBlock::iterator MBBI,
32                            unsigned SrcReg, int FrameIndex) const;
33
34   void loadRegFromStackSlot(MachineBasicBlock &MBB,
35                             MachineBasicBlock::iterator MBBI,
36                             unsigned DestReg, int FrameIndex) const;
37   
38   void copyRegToReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI,
39                     unsigned DestReg, unsigned SrcReg,
40                     const TargetRegisterClass *RC) const;
41
42   void eliminateCallFramePseudoInstr(MachineFunction &MF,
43                                      MachineBasicBlock &MBB,
44                                      MachineBasicBlock::iterator I) const;
45
46   void eliminateFrameIndex(MachineBasicBlock::iterator II) const;
47
48   void emitPrologue(MachineFunction &MF) const;
49   void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const;
50 };
51
52 } // end namespace llvm
53
54 #endif