XCoreRegisterInfo.h revision 36b56886974eae4f9c5ebc96befd3e7bfe5de338
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 14#ifndef XCOREREGISTERINFO_H 15#define XCOREREGISTERINFO_H 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 { 27public: 28 XCoreRegisterInfo(); 29 30 /// Code Generation virtual methods... 31 32 const uint16_t *getCalleeSavedRegs(const MachineFunction *MF = 0) const; 33 34 BitVector getReservedRegs(const MachineFunction &MF) const; 35 36 bool requiresRegisterScavenging(const MachineFunction &MF) const; 37 38 bool trackLivenessAfterRegAlloc(const MachineFunction &MF) const; 39 40 bool useFPForScavengingIndex(const MachineFunction &MF) const; 41 42 void eliminateFrameIndex(MachineBasicBlock::iterator II, 43 int SPAdj, unsigned FIOperandNum, 44 RegScavenger *RS = NULL) const; 45 46 // Debug information queries. 47 unsigned getFrameRegister(const MachineFunction &MF) const; 48 49 //! Return whether to emit frame moves 50 static bool needsFrameMoves(const MachineFunction &MF); 51}; 52 53} // end namespace llvm 54 55#endif 56