1 //===- IA64RegisterInfo.h - IA64 Register Information Impl ------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
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.
8 //===----------------------------------------------------------------------===//
10 // This file contains the IA64 implementation of the MRegisterInfo class.
12 //===----------------------------------------------------------------------===//
14 #ifndef IA64REGISTERINFO_H
15 #define IA64REGISTERINFO_H
17 #include "llvm/Target/MRegisterInfo.h"
18 #include "IA64GenRegisterInfo.h.inc"
20 namespace llvm { class llvm::Type; }
24 struct IA64RegisterInfo : public IA64GenRegisterInfo {
26 const TargetRegisterClass* getRegClassForType(const Type* Ty) const;
28 /// Code Generation virtual methods...
29 void storeRegToStackSlot(MachineBasicBlock &MBB,
30 MachineBasicBlock::iterator MI,
31 unsigned SrcReg, int FrameIndex) const;
33 void loadRegFromStackSlot(MachineBasicBlock &MBB,
34 MachineBasicBlock::iterator MI,
35 unsigned DestReg, int FrameIndex) const;
37 void copyRegToReg(MachineBasicBlock &MBB,
38 MachineBasicBlock::iterator MI,
39 unsigned DestReg, unsigned SrcReg,
40 const TargetRegisterClass *RC) const;
42 void eliminateCallFramePseudoInstr(MachineFunction &MF,
43 MachineBasicBlock &MBB,
44 MachineBasicBlock::iterator MI) const;
46 void eliminateFrameIndex(MachineBasicBlock::iterator MI) const;
48 void emitPrologue(MachineFunction &MF) const;
49 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const;
52 } // End llvm namespace