Path: blob/main/contrib/llvm-project/llvm/lib/Target/MSP430/MSP430RegisterInfo.h
96353 views
//===-- MSP430RegisterInfo.h - MSP430 Register Information Impl -*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8// This file contains the MSP430 implementation of the MRegisterInfo class.9//10//===----------------------------------------------------------------------===//1112#ifndef LLVM_LIB_TARGET_MSP430_MSP430REGISTERINFO_H13#define LLVM_LIB_TARGET_MSP430_MSP430REGISTERINFO_H1415#include "llvm/CodeGen/TargetRegisterInfo.h"1617#define GET_REGINFO_HEADER18#include "MSP430GenRegisterInfo.inc"1920namespace llvm {2122class MSP430RegisterInfo : public MSP430GenRegisterInfo {23public:24MSP430RegisterInfo();2526/// Code Generation virtual methods...27const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF) const override;2829BitVector getReservedRegs(const MachineFunction &MF) const override;30const TargetRegisterClass*31getPointerRegClass(const MachineFunction &MF,32unsigned Kind = 0) const override;3334bool eliminateFrameIndex(MachineBasicBlock::iterator II,35int SPAdj, unsigned FIOperandNum,36RegScavenger *RS = nullptr) const override;3738// Debug information queries.39Register getFrameRegister(const MachineFunction &MF) const override;40};4142} // end namespace llvm4344#endif454647