LLVM  14.0.0git
LanaiRegisterInfo.h
Go to the documentation of this file.
1 //===- LanaiRegisterInfo.h - Lanai 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 Lanai implementation of the TargetRegisterInfo class.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef LLVM_LIB_TARGET_LANAI_LANAIREGISTERINFO_H
14 #define LLVM_LIB_TARGET_LANAI_LANAIREGISTERINFO_H
15 
17 
18 #define GET_REGINFO_HEADER
19 #include "LanaiGenRegisterInfo.inc"
20 
21 namespace llvm {
22 
25 
27  CallingConv::ID) const override;
28 
29  // Code Generation virtual methods.
30  const uint16_t *
31  getCalleeSavedRegs(const MachineFunction *MF = nullptr) const override;
32 
33  BitVector getReservedRegs(const MachineFunction &MF) const override;
34 
35  bool requiresRegisterScavenging(const MachineFunction &MF) const override;
36 
38  unsigned FIOperandNum,
39  RegScavenger *RS = nullptr) const override;
40 
41  // Debug information queries.
42  unsigned getRARegister() const;
43  Register getFrameRegister(const MachineFunction &MF) const override;
44  Register getBaseRegister() const;
45  bool hasBasePointer(const MachineFunction &MF) const;
46 
47  int getDwarfRegNum(unsigned RegNum, bool IsEH) const;
48 };
49 
50 } // end namespace llvm
51 
52 #endif // LLVM_LIB_TARGET_LANAI_LANAIREGISTERINFO_H
llvm
---------------------— PointerInfo ------------------------------------—
Definition: AllocatorList.h:23
llvm::LanaiRegisterInfo::LanaiRegisterInfo
LanaiRegisterInfo()
Definition: LanaiRegisterInfo.cpp:35
llvm::LanaiRegisterInfo::getCallPreservedMask
const uint32_t * getCallPreservedMask(const MachineFunction &MF, CallingConv::ID) const override
Definition: LanaiRegisterInfo.cpp:264
llvm::LanaiRegisterInfo::requiresRegisterScavenging
bool requiresRegisterScavenging(const MachineFunction &MF) const override
Definition: LanaiRegisterInfo.cpp:64
llvm::LanaiRegisterInfo::getDwarfRegNum
int getDwarfRegNum(unsigned RegNum, bool IsEH) const
LanaiGenRegisterInfo
llvm::LanaiRegisterInfo::getCalleeSavedRegs
const uint16_t * getCalleeSavedRegs(const MachineFunction *MF=nullptr) const override
Definition: LanaiRegisterInfo.cpp:38
llvm::BitVector
Definition: BitVector.h:74
llvm::LanaiRegisterInfo::hasBasePointer
bool hasBasePointer(const MachineFunction &MF) const
Definition: LanaiRegisterInfo.cpp:244
llvm::CallingConv::ID
unsigned ID
LLVM IR allows to use arbitrary numbers as calling convention identifiers.
Definition: CallingConv.h:24
llvm::LanaiRegisterInfo::eliminateFrameIndex
void eliminateFrameIndex(MachineBasicBlock::iterator II, int SPAdj, unsigned FIOperandNum, RegScavenger *RS=nullptr) const override
Definition: LanaiRegisterInfo.cpp:131
llvm::RegScavenger
Definition: RegisterScavenging.h:34
llvm::LanaiRegisterInfo::getReservedRegs
BitVector getReservedRegs(const MachineFunction &MF) const override
Definition: LanaiRegisterInfo.cpp:42
llvm::LanaiRegisterInfo::getBaseRegister
Register getBaseRegister() const
Definition: LanaiRegisterInfo.cpp:261
llvm::MachineFunction
Definition: MachineFunction.h:230
uint32_t
llvm::LanaiRegisterInfo::getFrameRegister
Register getFrameRegister(const MachineFunction &MF) const override
Definition: LanaiRegisterInfo.cpp:257
llvm::LanaiRegisterInfo
Definition: LanaiRegisterInfo.h:23
llvm::Register
Wrapper class representing virtual and physical registers.
Definition: Register.h:19
uint16_t
llvm::LanaiRegisterInfo::getRARegister
unsigned getRARegister() const
Definition: LanaiRegisterInfo.cpp:254
llvm::MachineInstrBundleIterator< MachineInstr >
TargetRegisterInfo.h