LLVM  13.0.0git
ARCRegisterInfo.h
Go to the documentation of this file.
1 //===- ARCRegisterInfo.h - ARC 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 ARC implementation of the MRegisterInfo class.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef LLVM_LIB_TARGET_ARC_ARCREGISTERINFO_H
14 #define LLVM_LIB_TARGET_ARC_ARCREGISTERINFO_H
15 
17 
18 #define GET_REGINFO_HEADER
19 #include "ARCGenRegisterInfo.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 useFPForScavengingIndex(const MachineFunction &MF) const override;
38 
40  unsigned FIOperandNum,
41  RegScavenger *RS = nullptr) const override;
42 
44  CallingConv::ID CC) const override;
45 
46  // Debug information queries.
47  Register getFrameRegister(const MachineFunction &MF) const override;
48 
49  //! Return whether to emit frame moves
50  static bool needsFrameMoves(const MachineFunction &MF);
51 };
52 
53 } // end namespace llvm
54 
55 #endif // LLVM_LIB_TARGET_ARC_ARCREGISTERINFO_H
ARCGenRegisterInfo
llvm
Definition: AllocatorList.h:23
llvm::ARCRegisterInfo::eliminateFrameIndex
void eliminateFrameIndex(MachineBasicBlock::iterator II, int SPAdj, unsigned FIOperandNum, RegScavenger *RS=nullptr) const override
Definition: ARCRegisterInfo.cpp:160
llvm::ARCRegisterInfo::useFPForScavengingIndex
bool useFPForScavengingIndex(const MachineFunction &MF) const override
Definition: ARCRegisterInfo.cpp:156
llvm::ARCRegisterInfo::getFrameRegister
Register getFrameRegister(const MachineFunction &MF) const override
Definition: ARCRegisterInfo.cpp:221
llvm::ARCRegisterInfo::needsFrameMoves
static bool needsFrameMoves(const MachineFunction &MF)
Return whether to emit frame moves.
Definition: ARCRegisterInfo.cpp:130
llvm::ARCRegisterInfo::requiresRegisterScavenging
bool requiresRegisterScavenging(const MachineFunction &MF) const override
Definition: ARCRegisterInfo.cpp:151
llvm::BitVector
Definition: BitVector.h:74
llvm::CallingConv::ID
unsigned ID
LLVM IR allows to use arbitrary numbers as calling convention identifiers.
Definition: CallingConv.h:24
llvm::ARCRegisterInfo::getCalleeSavedRegs
const MCPhysReg * getCalleeSavedRegs(const MachineFunction *MF) const override
Code Generation virtual methods...
Definition: ARCRegisterInfo.cpp:135
llvm::RegScavenger
Definition: RegisterScavenging.h:34
llvm::ARCRegisterInfo::getReservedRegs
BitVector getReservedRegs(const MachineFunction &MF) const override
Definition: ARCRegisterInfo.cpp:139
llvm::MachineFunction
Definition: MachineFunction.h:227
llvm::ARCRegisterInfo::getCallPreservedMask
const uint32_t * getCallPreservedMask(const MachineFunction &MF, CallingConv::ID CC) const override
Definition: ARCRegisterInfo.cpp:227
uint32_t
llvm::Register
Wrapper class representing virtual and physical registers.
Definition: Register.h:19
uint16_t
llvm::ARCRegisterInfo
Definition: ARCRegisterInfo.h:25
llvm::ARCRegisterInfo::ARCRegisterInfo
ARCRegisterInfo()
Definition: ARCRegisterInfo.cpp:128
llvm::MachineInstrBundleIterator< MachineInstr >
TargetRegisterInfo.h