1 //===-- MSP430RegisterInfo.h - MSP430 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 MSP430 implementation of the MRegisterInfo class.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_LIB_TARGET_MSP430_MSP430REGISTERINFO_H
15 #define LLVM_LIB_TARGET_MSP430_MSP430REGISTERINFO_H
17 #include "llvm/Target/TargetRegisterInfo.h"
19 #define GET_REGINFO_HEADER
20 #include "MSP430GenRegisterInfo.inc"
24 struct MSP430RegisterInfo : public MSP430GenRegisterInfo {
28 /// Code Generation virtual methods...
30 getCalleeSavedRegs(const MachineFunction *MF = nullptr) const override;
32 BitVector getReservedRegs(const MachineFunction &MF) const override;
33 const TargetRegisterClass*
34 getPointerRegClass(const MachineFunction &MF,
35 unsigned Kind = 0) const override;
37 void eliminateFrameIndex(MachineBasicBlock::iterator II,
38 int SPAdj, unsigned FIOperandNum,
39 RegScavenger *RS = nullptr) const override;
41 // Debug information queries.
42 unsigned getFrameRegister(const MachineFunction &MF) const override;
45 } // end namespace llvm