45 lines · c
1//===-- MSP430RegisterInfo.h - MSP430 Register Information Impl -*- C++ -*-===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8//9// This file contains the MSP430 implementation of the MRegisterInfo class.10//11//===----------------------------------------------------------------------===//12 13#ifndef LLVM_LIB_TARGET_MSP430_MSP430REGISTERINFO_H14#define LLVM_LIB_TARGET_MSP430_MSP430REGISTERINFO_H15 16#include "llvm/CodeGen/TargetRegisterInfo.h"17 18#define GET_REGINFO_HEADER19#include "MSP430GenRegisterInfo.inc"20 21namespace llvm {22 23class MSP430RegisterInfo : public MSP430GenRegisterInfo {24public:25 MSP430RegisterInfo();26 27 /// Code Generation virtual methods...28 const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF) const override;29 30 BitVector getReservedRegs(const MachineFunction &MF) const override;31 const TargetRegisterClass *32 getPointerRegClass(unsigned Kind = 0) const override;33 34 bool eliminateFrameIndex(MachineBasicBlock::iterator II,35 int SPAdj, unsigned FIOperandNum,36 RegScavenger *RS = nullptr) const override;37 38 // Debug information queries.39 Register getFrameRegister(const MachineFunction &MF) const override;40};41 42} // end namespace llvm43 44#endif45