LLVM  14.0.0git
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 
24 public:
26 
27  /// Code Generation virtual methods...
28 
29  const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF) const override;
30 
31  BitVector getReservedRegs(const MachineFunction &MF) const override;
32 
33  bool requiresRegisterScavenging(const MachineFunction &MF) const override;
34 
35  bool useFPForScavengingIndex(const MachineFunction &MF) const override;
36 
38  int SPAdj, unsigned FIOperandNum,
39  RegScavenger *RS = nullptr) const override;
40 
41  // Debug information queries.
42  Register getFrameRegister(const MachineFunction &MF) const override;
43 
44  //! Return whether to emit frame moves
45  static bool needsFrameMoves(const MachineFunction &MF);
46 };
47 
48 } // end namespace llvm
49 
50 #endif
llvm
---------------------— PointerInfo ------------------------------------—
Definition: AllocatorList.h:23
llvm::XCoreRegisterInfo::requiresRegisterScavenging
bool requiresRegisterScavenging(const MachineFunction &MF) const override
Definition: XCoreRegisterInfo.cpp:244
XCoreGenRegisterInfo
llvm::XCoreRegisterInfo::getReservedRegs
BitVector getReservedRegs(const MachineFunction &MF) const override
Definition: XCoreRegisterInfo.cpp:229
llvm::XCoreRegisterInfo::eliminateFrameIndex
void eliminateFrameIndex(MachineBasicBlock::iterator II, int SPAdj, unsigned FIOperandNum, RegScavenger *RS=nullptr) const override
Definition: XCoreRegisterInfo.cpp:254
llvm::XCoreRegisterInfo::needsFrameMoves
static bool needsFrameMoves(const MachineFunction &MF)
Return whether to emit frame moves.
Definition: XCoreRegisterInfo.cpp:205
llvm::XCoreRegisterInfo::getCalleeSavedRegs
const MCPhysReg * getCalleeSavedRegs(const MachineFunction *MF) const override
Code Generation virtual methods...
Definition: XCoreRegisterInfo.cpp:210
llvm::XCoreRegisterInfo
Definition: XCoreRegisterInfo.h:23
llvm::BitVector
Definition: BitVector.h:74
llvm::XCoreRegisterInfo::getFrameRegister
Register getFrameRegister(const MachineFunction &MF) const override
Definition: XCoreRegisterInfo.cpp:319
llvm::RegScavenger
Definition: RegisterScavenging.h:34
llvm::MachineFunction
Definition: MachineFunction.h:230
llvm::Register
Wrapper class representing virtual and physical registers.
Definition: Register.h:19
uint16_t
llvm::XCoreRegisterInfo::XCoreRegisterInfo
XCoreRegisterInfo()
Definition: XCoreRegisterInfo.cpp:43
llvm::XCoreRegisterInfo::useFPForScavengingIndex
bool useFPForScavengingIndex(const MachineFunction &MF) const override
Definition: XCoreRegisterInfo.cpp:249
llvm::MachineInstrBundleIterator< MachineInstr >
TargetRegisterInfo.h