1 //===- AlphaRegisterInfo.h - Alpha Register Information Impl ----*- C++ -*-===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 // 10 // This file contains the Alpha implementation of the TargetRegisterInfo class. 11 // 12 //===----------------------------------------------------------------------===// 13 14 #ifndef ALPHAREGISTERINFO_H 15 #define ALPHAREGISTERINFO_H 16 17 #include "llvm/Target/TargetRegisterInfo.h" 18 19 #define GET_REGINFO_HEADER 20 #include "AlphaGenRegisterInfo.inc" 21 22 namespace llvm { 23 24 class TargetInstrInfo; 25 class Type; 26 27 struct AlphaRegisterInfo : public AlphaGenRegisterInfo { 28 const TargetInstrInfo &TII; 29 30 AlphaRegisterInfo(const TargetInstrInfo &tii); 31 32 /// Code Generation virtual methods... 33 const unsigned *getCalleeSavedRegs(const MachineFunction *MF = 0) const; 34 35 BitVector getReservedRegs(const MachineFunction &MF) const; 36 37 void eliminateCallFramePseudoInstr(MachineFunction &MF, 38 MachineBasicBlock &MBB, 39 MachineBasicBlock::iterator I) const; 40 41 void eliminateFrameIndex(MachineBasicBlock::iterator II, 42 int SPAdj, RegScavenger *RS = NULL) const; 43 44 // Debug information queries. 45 unsigned getFrameRegister(const MachineFunction &MF) const; 46 47 // Exception handling queries. 48 unsigned getEHExceptionRegister() const; 49 unsigned getEHHandlerRegister() const; 50 51 static std::string getPrettyName(unsigned reg); 52 }; 53 54 } // end namespace llvm 55 56 #endif 57