1 //===-- SparcRegisterInfo.h - Sparc Register Information Impl ---*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file contains the Sparc implementation of the TargetRegisterInfo class.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_LIB_TARGET_SPARC_SPARCREGISTERINFO_H
15 #define LLVM_LIB_TARGET_SPARC_SPARCREGISTERINFO_H
17 #include "llvm/Target/TargetRegisterInfo.h"
19 #define GET_REGINFO_HEADER
20 #include "SparcGenRegisterInfo.inc"
23 struct SparcRegisterInfo : public SparcGenRegisterInfo {
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;
31 const uint32_t* getRTCallPreservedMask(CallingConv::ID CC) const;
33 BitVector getReservedRegs(const MachineFunction &MF) const override;
35 const TargetRegisterClass *getPointerRegClass(const MachineFunction &MF,
36 unsigned Kind) const override;
38 void eliminateFrameIndex(MachineBasicBlock::iterator II,
39 int SPAdj, unsigned FIOperandNum,
40 RegScavenger *RS = nullptr) const override;
42 void processFunctionBeforeFrameFinalized(MachineFunction &MF,
43 RegScavenger *RS = nullptr) const;
45 // Debug information queries.
46 unsigned getFrameRegister(const MachineFunction &MF) const override;
49 } // end namespace llvm