and so it begins...
[oota-llvm.git] / lib / Target / IA64 / IA64RegisterInfo.h
1 //===- IA64RegisterInfo.h - IA64 Register Information Impl ------*- C++ -*-===//
2 // 
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file was developed by Duraid Madina and is distributed under the
6 // University of Illinois Open Source License. See LICENSE.TXT for details.
7 // 
8 //===----------------------------------------------------------------------===//
9 //
10 // This file contains the IA64 implementation of the MRegisterInfo class.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef IA64REGISTERINFO_H
15 #define IA64REGISTERINFO_H
16
17 #include "llvm/Target/MRegisterInfo.h"
18 #include "IA64GenRegisterInfo.h.inc"
19
20 namespace llvm { class llvm::Type; }
21
22 namespace llvm {
23
24 struct IA64RegisterInfo : public IA64GenRegisterInfo {
25   IA64RegisterInfo();
26   const TargetRegisterClass* getRegClassForType(const Type* Ty) const;
27
28   /// Code Generation virtual methods...
29   void storeRegToStackSlot(MachineBasicBlock &MBB,
30                            MachineBasicBlock::iterator MI,
31                            unsigned SrcReg, int FrameIndex) const;
32
33   void loadRegFromStackSlot(MachineBasicBlock &MBB,
34                             MachineBasicBlock::iterator MI,
35                             unsigned DestReg, int FrameIndex) const;
36   
37   void copyRegToReg(MachineBasicBlock &MBB,
38                     MachineBasicBlock::iterator MI,
39                     unsigned DestReg, unsigned SrcReg,
40                     const TargetRegisterClass *RC) const;
41
42   void eliminateCallFramePseudoInstr(MachineFunction &MF,
43                                      MachineBasicBlock &MBB,
44                                      MachineBasicBlock::iterator MI) const;
45
46   void eliminateFrameIndex(MachineBasicBlock::iterator MI) const;
47
48   void emitPrologue(MachineFunction &MF) const;
49   void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const;
50 };
51
52 } // End llvm namespace
53
54 #endif
55