LLVM  9.0.0svn
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 
37  bool trackLivenessAfterRegAlloc(const MachineFunction &MF) const override;
38 
40  unsigned FIOperandNum,
41  RegScavenger *RS = nullptr) const override;
42 
43  // Debug information queries.
44  unsigned getRARegister() const;
45  Register getFrameRegister(const MachineFunction &MF) const override;
46  Register getBaseRegister() const;
47  bool hasBasePointer(const MachineFunction &MF) const;
48 
49  int getDwarfRegNum(unsigned RegNum, bool IsEH) const;
50 };
51 
52 } // end namespace llvm
53 
54 #endif // LLVM_LIB_TARGET_LANAI_LANAIREGISTERINFO_H
This class represents lattice values for constants.
Definition: AllocatorList.h:23
const uint32_t * getCallPreservedMask(const MachineFunction &MF, CallingConv::ID) const override
const uint16_t * getCalleeSavedRegs(const MachineFunction *MF=nullptr) const override
bool hasBasePointer(const MachineFunction &MF) const
int getDwarfRegNum(unsigned RegNum, bool IsEH) const
Register getBaseRegister() const
void eliminateFrameIndex(MachineBasicBlock::iterator II, int SPAdj, unsigned FIOperandNum, RegScavenger *RS=nullptr) const override
BitVector getReservedRegs(const MachineFunction &MF) const override
unsigned getRARegister() const
Register getFrameRegister(const MachineFunction &MF) const override
bool trackLivenessAfterRegAlloc(const MachineFunction &MF) const override
bool requiresRegisterScavenging(const MachineFunction &MF) const override
Wrapper class representing virtual and physical registers.
Definition: Register.h:18