1 //===-- SparcRegisterInfo.h - Sparc 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 Sparc implementation of the TargetRegisterInfo class. 11 // 12 //===----------------------------------------------------------------------===// 13 14 #ifndef LLVM_LIB_TARGET_SPARC_SPARCREGISTERINFO_H 15 #define LLVM_LIB_TARGET_SPARC_SPARCREGISTERINFO_H 16 17 #include "llvm/Target/TargetRegisterInfo.h" 18 19 #define GET_REGINFO_HEADER 20 #include "SparcGenRegisterInfo.inc" 21 22 namespace llvm { 23 struct SparcRegisterInfo : public SparcGenRegisterInfo { 24 SparcRegisterInfo(); 25 26 /// Code Generation virtual methods... 27 const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF) const override; 28 const uint32_t *getCallPreservedMask(const MachineFunction &MF, 29 CallingConv::ID CC) const override; 30 31 const uint32_t* getRTCallPreservedMask(CallingConv::ID CC) const; 32 33 BitVector getReservedRegs(const MachineFunction &MF) const override; 34 35 const TargetRegisterClass *getPointerRegClass(const MachineFunction &MF, 36 unsigned Kind) const override; 37 38 void eliminateFrameIndex(MachineBasicBlock::iterator II, 39 int SPAdj, unsigned FIOperandNum, 40 RegScavenger *RS = nullptr) const override; 41 42 void processFunctionBeforeFrameFinalized(MachineFunction &MF, 43 RegScavenger *RS = nullptr) const; 44 45 // Debug information queries. 46 unsigned getFrameRegister(const MachineFunction &MF) const override; 47 }; 48 49 } // end namespace llvm 50 51 #endif 52