10b57cec5SDimitry Andric //===-- MSP430RegisterInfo.h - MSP430 Register Information Impl -*- C++ -*-===// 20b57cec5SDimitry Andric // 30b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 40b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information. 50b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 60b57cec5SDimitry Andric // 70b57cec5SDimitry Andric //===----------------------------------------------------------------------===// 80b57cec5SDimitry Andric // 90b57cec5SDimitry Andric // This file contains the MSP430 implementation of the MRegisterInfo class. 100b57cec5SDimitry Andric // 110b57cec5SDimitry Andric //===----------------------------------------------------------------------===// 120b57cec5SDimitry Andric 130b57cec5SDimitry Andric #ifndef LLVM_LIB_TARGET_MSP430_MSP430REGISTERINFO_H 140b57cec5SDimitry Andric #define LLVM_LIB_TARGET_MSP430_MSP430REGISTERINFO_H 150b57cec5SDimitry Andric 160b57cec5SDimitry Andric #include "llvm/CodeGen/TargetRegisterInfo.h" 170b57cec5SDimitry Andric 180b57cec5SDimitry Andric #define GET_REGINFO_HEADER 190b57cec5SDimitry Andric #include "MSP430GenRegisterInfo.inc" 200b57cec5SDimitry Andric 210b57cec5SDimitry Andric namespace llvm { 220b57cec5SDimitry Andric 2306c3fb27SDimitry Andric class MSP430RegisterInfo : public MSP430GenRegisterInfo { 240b57cec5SDimitry Andric public: 250b57cec5SDimitry Andric MSP430RegisterInfo(); 260b57cec5SDimitry Andric 270b57cec5SDimitry Andric /// Code Generation virtual methods... 280b57cec5SDimitry Andric const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF) const override; 290b57cec5SDimitry Andric 300b57cec5SDimitry Andric BitVector getReservedRegs(const MachineFunction &MF) const override; 310b57cec5SDimitry Andric const TargetRegisterClass* 320b57cec5SDimitry Andric getPointerRegClass(const MachineFunction &MF, 330b57cec5SDimitry Andric unsigned Kind = 0) const override; 340b57cec5SDimitry Andric 35bdd1243dSDimitry Andric bool eliminateFrameIndex(MachineBasicBlock::iterator II, 360b57cec5SDimitry Andric int SPAdj, unsigned FIOperandNum, 370b57cec5SDimitry Andric RegScavenger *RS = nullptr) const override; 380b57cec5SDimitry Andric 390b57cec5SDimitry Andric // Debug information queries. 400b57cec5SDimitry Andric Register getFrameRegister(const MachineFunction &MF) const override; 410b57cec5SDimitry Andric }; 420b57cec5SDimitry Andric 430b57cec5SDimitry Andric } // end namespace llvm 440b57cec5SDimitry Andric 450b57cec5SDimitry Andric #endif 46