1 //===- AlphaRegisterInfo.h - Alpha 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 Alpha implementation of the MRegisterInfo class.
12 //===----------------------------------------------------------------------===//
14 #ifndef ALPHAREGISTERINFO_H
15 #define ALPHAREGISTERINFO_H
17 #include "llvm/Target/MRegisterInfo.h"
18 #include "AlphaGenRegisterInfo.h.inc"
24 struct AlphaRegisterInfo : public AlphaGenRegisterInfo {
26 const TargetRegisterClass* getRegClassForType(const Type* Ty) const;
28 /// Code Generation virtual methods...
29 void storeRegToStackSlot(MachineBasicBlock &MBB,
30 MachineBasicBlock::iterator MBBI,
31 unsigned SrcReg, int FrameIndex) const;
33 void loadRegFromStackSlot(MachineBasicBlock &MBB,
34 MachineBasicBlock::iterator MBBI,
35 unsigned DestReg, int FrameIndex) const;
37 void copyRegToReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI,
38 unsigned DestReg, unsigned SrcReg,
39 const TargetRegisterClass *RC) const;
41 void eliminateCallFramePseudoInstr(MachineFunction &MF,
42 MachineBasicBlock &MBB,
43 MachineBasicBlock::iterator I) const;
45 void eliminateFrameIndex(MachineBasicBlock::iterator II) const;
47 //void processFunctionBeforeFrameFinalized(MachineFunction &MF) const;
49 void emitPrologue(MachineFunction &MF) const;
50 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const;
52 static std::string getPrettyName(unsigned reg);
55 } // end namespace llvm