LLVM  10.0.0svn
XCoreRegisterInfo.h
Go to the documentation of this file.
1 //===-- XCoreRegisterInfo.h - XCore 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 XCore implementation of the MRegisterInfo class.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef LLVM_LIB_TARGET_XCORE_XCOREREGISTERINFO_H
14 #define LLVM_LIB_TARGET_XCORE_XCOREREGISTERINFO_H
15 
17 
18 #define GET_REGINFO_HEADER
19 #include "XCoreGenRegisterInfo.inc"
20 
21 namespace llvm {
22 
23 class TargetInstrInfo;
24 
26 public:
28 
29  /// Code Generation virtual methods...
30 
31  const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF) 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 
39  bool useFPForScavengingIndex(const MachineFunction &MF) const override;
40 
42  int SPAdj, unsigned FIOperandNum,
43  RegScavenger *RS = nullptr) const override;
44 
45  // Debug information queries.
46  Register getFrameRegister(const MachineFunction &MF) const override;
47 
48  //! Return whether to emit frame moves
49  static bool needsFrameMoves(const MachineFunction &MF);
50 };
51 
52 } // end namespace llvm
53 
54 #endif
This class represents lattice values for constants.
Definition: AllocatorList.h:23
bool trackLivenessAfterRegAlloc(const MachineFunction &MF) const override
Register getFrameRegister(const MachineFunction &MF) const override
static bool needsFrameMoves(const MachineFunction &MF)
Return whether to emit frame moves.
uint16_t MCPhysReg
An unsigned integer type large enough to represent all physical registers, but not necessarily virtua...
Definition: MCRegister.h:19
bool useFPForScavengingIndex(const MachineFunction &MF) const override
bool requiresRegisterScavenging(const MachineFunction &MF) const override
BitVector getReservedRegs(const MachineFunction &MF) const override
void eliminateFrameIndex(MachineBasicBlock::iterator II, int SPAdj, unsigned FIOperandNum, RegScavenger *RS=nullptr) const override
Wrapper class representing virtual and physical registers.
Definition: Register.h:19
const MCPhysReg * getCalleeSavedRegs(const MachineFunction *MF) const override
Code Generation virtual methods...