1 //===- ARCRegisterInfo.h - ARC Register Information Impl --------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file contains the ARC implementation of the MRegisterInfo class.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_LIB_TARGET_ARC_ARCREGISTERINFO_H
15 #define LLVM_LIB_TARGET_ARC_ARCREGISTERINFO_H
17 #include "llvm/CodeGen/TargetRegisterInfo.h"
19 #define GET_REGINFO_HEADER
20 #include "ARCGenRegisterInfo.inc"
24 class TargetInstrInfo;
26 struct ARCRegisterInfo : public ARCGenRegisterInfo {
30 /// Code Generation virtual methods...
32 const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF) const override;
34 BitVector getReservedRegs(const MachineFunction &MF) const override;
36 bool requiresRegisterScavenging(const MachineFunction &MF) const override;
38 bool trackLivenessAfterRegAlloc(const MachineFunction &MF) const override;
40 bool useFPForScavengingIndex(const MachineFunction &MF) const override;
42 void eliminateFrameIndex(MachineBasicBlock::iterator II, int SPAdj,
43 unsigned FIOperandNum,
44 RegScavenger *RS = nullptr) const override;
46 const uint32_t *getCallPreservedMask(const MachineFunction &MF,
47 CallingConv::ID CC) const override;
49 // Debug information queries.
50 unsigned getFrameRegister(const MachineFunction &MF) const override;
52 //! Return whether to emit frame moves
53 static bool needsFrameMoves(const MachineFunction &MF);
56 } // end namespace llvm
58 #endif // LLVM_LIB_TARGET_ARC_ARCREGISTERINFO_H