]> git.proxmox.com Git - rustc.git/blame - src/llvm/lib/Target/XCore/XCoreRegisterInfo.h
Imported Upstream version 1.0.0+dfsg1
[rustc.git] / src / llvm / lib / Target / XCore / XCoreRegisterInfo.h
CommitLineData
223e47cc
LB
1//===-- XCoreRegisterInfo.h - XCore 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 XCore implementation of the MRegisterInfo class.
11//
12//===----------------------------------------------------------------------===//
13
1a4d82fc
JJ
14#ifndef LLVM_LIB_TARGET_XCORE_XCOREREGISTERINFO_H
15#define LLVM_LIB_TARGET_XCORE_XCOREREGISTERINFO_H
223e47cc
LB
16
17#include "llvm/Target/TargetRegisterInfo.h"
18
19#define GET_REGINFO_HEADER
20#include "XCoreGenRegisterInfo.inc"
21
22namespace llvm {
23
24class TargetInstrInfo;
25
26struct XCoreRegisterInfo : public XCoreGenRegisterInfo {
223e47cc 27public:
1a4d82fc 28 XCoreRegisterInfo();
223e47cc
LB
29
30 /// Code Generation virtual methods...
31
1a4d82fc
JJ
32 const MCPhysReg *
33 getCalleeSavedRegs(const MachineFunction *MF =nullptr) const override;
223e47cc 34
1a4d82fc 35 BitVector getReservedRegs(const MachineFunction &MF) const override;
223e47cc 36
1a4d82fc 37 bool requiresRegisterScavenging(const MachineFunction &MF) const override;
223e47cc 38
1a4d82fc 39 bool trackLivenessAfterRegAlloc(const MachineFunction &MF) const override;
223e47cc 40
1a4d82fc 41 bool useFPForScavengingIndex(const MachineFunction &MF) const override;
223e47cc 42
223e47cc 43 void eliminateFrameIndex(MachineBasicBlock::iterator II,
970d7e83 44 int SPAdj, unsigned FIOperandNum,
1a4d82fc 45 RegScavenger *RS = nullptr) const override;
223e47cc
LB
46
47 // Debug information queries.
1a4d82fc 48 unsigned getFrameRegister(const MachineFunction &MF) const override;
223e47cc
LB
49
50 //! Return whether to emit frame moves
51 static bool needsFrameMoves(const MachineFunction &MF);
52};
53
54} // end namespace llvm
55
56#endif