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 {
27 /// Code Generation virtual methods...
28 void storeRegToStackSlot(MachineBasicBlock &MBB,
29 MachineBasicBlock::iterator MI,
30 unsigned SrcReg, int FrameIndex,
31 const TargetRegisterClass *RC) const;
33 void loadRegFromStackSlot(MachineBasicBlock &MBB,
34 MachineBasicBlock::iterator MI,
35 unsigned DestReg, int FrameIndex,
36 const TargetRegisterClass *RC) const;
38 void copyRegToReg(MachineBasicBlock &MBB,
39 MachineBasicBlock::iterator MI,
40 unsigned DestReg, unsigned SrcReg,
41 const TargetRegisterClass *RC) const;
43 const unsigned *getCalleeSaveRegs() const;
45 const TargetRegisterClass* const* getCalleeSaveRegClasses() const;
47 void eliminateCallFramePseudoInstr(MachineFunction &MF,
48 MachineBasicBlock &MBB,
49 MachineBasicBlock::iterator MI) const;
51 void eliminateFrameIndex(MachineBasicBlock::iterator MI) const;
53 void emitPrologue(MachineFunction &MF) const;
54 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const;
56 // Debug information queries.
57 unsigned getRARegister() const;
58 unsigned getFrameRegister(MachineFunction &MF) const;
61 } // End llvm namespace