LLVM  14.0.0git
MSP430RegisterInfo.h
Go to the documentation of this file.
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-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file contains the MSP430 implementation of the MRegisterInfo class.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef LLVM_LIB_TARGET_MSP430_MSP430REGISTERINFO_H
14 #define LLVM_LIB_TARGET_MSP430_MSP430REGISTERINFO_H
15 
17 
18 #define GET_REGINFO_HEADER
19 #include "MSP430GenRegisterInfo.inc"
20 
21 namespace llvm {
22 
24 public:
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*
33  unsigned Kind = 0) const override;
34 
36  int SPAdj, unsigned FIOperandNum,
37  RegScavenger *RS = nullptr) const override;
38 
39  // Debug information queries.
40  Register getFrameRegister(const MachineFunction &MF) const override;
41 };
42 
43 } // end namespace llvm
44 
45 #endif
llvm
---------------------— PointerInfo ------------------------------------—
Definition: AllocatorList.h:23
MSP430GenRegisterInfo
llvm::MSP430RegisterInfo
Definition: MSP430RegisterInfo.h:23
llvm::MSP430RegisterInfo::eliminateFrameIndex
void eliminateFrameIndex(MachineBasicBlock::iterator II, int SPAdj, unsigned FIOperandNum, RegScavenger *RS=nullptr) const override
Definition: MSP430RegisterInfo.cpp:103
llvm::TargetRegisterClass
Definition: TargetRegisterInfo.h:46
llvm::MSP430RegisterInfo::MSP430RegisterInfo
MSP430RegisterInfo()
Definition: MSP430RegisterInfo.cpp:34
llvm::BitVector
Definition: BitVector.h:74
llvm::lltok::Kind
Kind
Definition: LLToken.h:18
llvm::MSP430RegisterInfo::getCalleeSavedRegs
const MCPhysReg * getCalleeSavedRegs(const MachineFunction *MF) const override
Code Generation virtual methods...
Definition: MSP430RegisterInfo.cpp:38
llvm::RegScavenger
Definition: RegisterScavenging.h:34
llvm::MachineFunction
Definition: MachineFunction.h:230
llvm::MSP430RegisterInfo::getReservedRegs
BitVector getReservedRegs(const MachineFunction &MF) const override
Definition: MSP430RegisterInfo.cpp:73
llvm::Register
Wrapper class representing virtual and physical registers.
Definition: Register.h:19
llvm::MSP430RegisterInfo::getPointerRegClass
const TargetRegisterClass * getPointerRegClass(const MachineFunction &MF, unsigned Kind=0) const override
Definition: MSP430RegisterInfo.cpp:97
uint16_t
llvm::MachineInstrBundleIterator< MachineInstr >
TargetRegisterInfo.h
llvm::MSP430RegisterInfo::getFrameRegister
Register getFrameRegister(const MachineFunction &MF) const override
Definition: MSP430RegisterInfo.cpp:157