LLVM  8.0.1
ARCRegisterInfo.h
Go to the documentation of this file.
1 //===- ARCRegisterInfo.h - ARC Register Information Impl --------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file contains the ARC implementation of the MRegisterInfo class.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_LIB_TARGET_ARC_ARCREGISTERINFO_H
15 #define LLVM_LIB_TARGET_ARC_ARCREGISTERINFO_H
16 
18 
19 #define GET_REGINFO_HEADER
20 #include "ARCGenRegisterInfo.inc"
21 
22 namespace llvm {
23 
24 class TargetInstrInfo;
25 
27 public:
29 
30  /// Code Generation virtual methods...
31 
32  const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF) const override;
33 
34  BitVector getReservedRegs(const MachineFunction &MF) const override;
35 
36  bool requiresRegisterScavenging(const MachineFunction &MF) const override;
37 
38  bool trackLivenessAfterRegAlloc(const MachineFunction &MF) const override;
39 
40  bool useFPForScavengingIndex(const MachineFunction &MF) const override;
41 
43  unsigned FIOperandNum,
44  RegScavenger *RS = nullptr) const override;
45 
47  CallingConv::ID CC) const override;
48 
49  // Debug information queries.
50  unsigned getFrameRegister(const MachineFunction &MF) const override;
51 
52  //! Return whether to emit frame moves
53  static bool needsFrameMoves(const MachineFunction &MF);
54 };
55 
56 } // end namespace llvm
57 
58 #endif // LLVM_LIB_TARGET_ARC_ARCREGISTERINFO_H
This class represents lattice values for constants.
Definition: AllocatorList.h:24
bool trackLivenessAfterRegAlloc(const MachineFunction &MF) const override
unsigned getFrameRegister(const MachineFunction &MF) const override
BitVector getReservedRegs(const MachineFunction &MF) const override
bool useFPForScavengingIndex(const MachineFunction &MF) const override
uint16_t MCPhysReg
An unsigned integer type large enough to represent all physical registers, but not necessarily virtua...
static bool needsFrameMoves(const MachineFunction &MF)
Return whether to emit frame moves.
const uint32_t * getCallPreservedMask(const MachineFunction &MF, CallingConv::ID CC) const override
void eliminateFrameIndex(MachineBasicBlock::iterator II, int SPAdj, unsigned FIOperandNum, RegScavenger *RS=nullptr) const override
bool requiresRegisterScavenging(const MachineFunction &MF) const override
const MCPhysReg * getCalleeSavedRegs(const MachineFunction *MF) const override
Code Generation virtual methods...