LLVM API Documentation
00001 //===-- SparcRegisterInfo.h - Sparc Register Information Impl ---*- C++ -*-===// 00002 // 00003 // The LLVM Compiler Infrastructure 00004 // 00005 // This file is distributed under the University of Illinois Open Source 00006 // License. See LICENSE.TXT for details. 00007 // 00008 //===----------------------------------------------------------------------===// 00009 // 00010 // This file contains the Sparc implementation of the TargetRegisterInfo class. 00011 // 00012 //===----------------------------------------------------------------------===// 00013 00014 #ifndef LLVM_LIB_TARGET_SPARC_SPARCREGISTERINFO_H 00015 #define LLVM_LIB_TARGET_SPARC_SPARCREGISTERINFO_H 00016 00017 #include "llvm/Target/TargetRegisterInfo.h" 00018 00019 #define GET_REGINFO_HEADER 00020 #include "SparcGenRegisterInfo.inc" 00021 00022 namespace llvm { 00023 00024 class SparcSubtarget; 00025 class TargetInstrInfo; 00026 class Type; 00027 00028 struct SparcRegisterInfo : public SparcGenRegisterInfo { 00029 SparcSubtarget &Subtarget; 00030 00031 SparcRegisterInfo(SparcSubtarget &st); 00032 00033 /// Code Generation virtual methods... 00034 const MCPhysReg * 00035 getCalleeSavedRegs(const MachineFunction *MF =nullptr) const override; 00036 const uint32_t* getCallPreservedMask(CallingConv::ID CC) const override; 00037 00038 const uint32_t* getRTCallPreservedMask(CallingConv::ID CC) const; 00039 00040 BitVector getReservedRegs(const MachineFunction &MF) const override; 00041 00042 const TargetRegisterClass *getPointerRegClass(const MachineFunction &MF, 00043 unsigned Kind) const override; 00044 00045 void eliminateFrameIndex(MachineBasicBlock::iterator II, 00046 int SPAdj, unsigned FIOperandNum, 00047 RegScavenger *RS = nullptr) const override; 00048 00049 void processFunctionBeforeFrameFinalized(MachineFunction &MF, 00050 RegScavenger *RS = nullptr) const; 00051 00052 // Debug information queries. 00053 unsigned getFrameRegister(const MachineFunction &MF) const override; 00054 }; 00055 00056 } // end namespace llvm 00057 00058 #endif