2012-02-18 13:03:15 +01:00
|
|
|
//===-- XCoreRegisterInfo.h - XCore Register Information Impl ---*- C++ -*-===//
|
2008-11-07 11:59:00 +01:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file contains the XCore implementation of the MRegisterInfo class.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2014-08-13 18:26:38 +02:00
|
|
|
#ifndef LLVM_LIB_TARGET_XCORE_XCOREREGISTERINFO_H
|
|
|
|
#define LLVM_LIB_TARGET_XCORE_XCOREREGISTERINFO_H
|
2008-11-07 11:59:00 +01:00
|
|
|
|
|
|
|
#include "llvm/Target/TargetRegisterInfo.h"
|
2011-06-27 20:32:37 +02:00
|
|
|
|
|
|
|
#define GET_REGINFO_HEADER
|
|
|
|
#include "XCoreGenRegisterInfo.inc"
|
2008-11-07 11:59:00 +01:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
class TargetInstrInfo;
|
|
|
|
|
|
|
|
struct XCoreRegisterInfo : public XCoreGenRegisterInfo {
|
|
|
|
public:
|
2013-06-07 23:04:35 +02:00
|
|
|
XCoreRegisterInfo();
|
2008-11-07 11:59:00 +01:00
|
|
|
|
|
|
|
/// Code Generation virtual methods...
|
|
|
|
|
2015-03-11 22:41:28 +01:00
|
|
|
const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF) const override;
|
2008-11-07 11:59:00 +01:00
|
|
|
|
2014-04-29 09:57:00 +02:00
|
|
|
BitVector getReservedRegs(const MachineFunction &MF) const override;
|
2008-11-07 11:59:00 +01:00
|
|
|
|
2014-04-29 09:57:00 +02:00
|
|
|
bool requiresRegisterScavenging(const MachineFunction &MF) const override;
|
2011-03-15 16:10:11 +01:00
|
|
|
|
2014-04-29 09:57:00 +02:00
|
|
|
bool trackLivenessAfterRegAlloc(const MachineFunction &MF) const override;
|
2012-04-23 23:39:35 +02:00
|
|
|
|
2014-04-29 09:57:00 +02:00
|
|
|
bool useFPForScavengingIndex(const MachineFunction &MF) const override;
|
2008-11-07 11:59:00 +01:00
|
|
|
|
2010-08-27 01:32:16 +02:00
|
|
|
void eliminateFrameIndex(MachineBasicBlock::iterator II,
|
2013-01-31 21:02:54 +01:00
|
|
|
int SPAdj, unsigned FIOperandNum,
|
2014-04-29 09:57:00 +02:00
|
|
|
RegScavenger *RS = nullptr) const override;
|
2009-11-12 22:00:03 +01:00
|
|
|
|
2008-11-07 11:59:00 +01:00
|
|
|
// Debug information queries.
|
2014-04-29 09:57:00 +02:00
|
|
|
unsigned getFrameRegister(const MachineFunction &MF) const override;
|
2008-11-07 11:59:00 +01:00
|
|
|
|
|
|
|
//! Return whether to emit frame moves
|
|
|
|
static bool needsFrameMoves(const MachineFunction &MF);
|
|
|
|
};
|
|
|
|
|
|
|
|
} // end namespace llvm
|
|
|
|
|
|
|
|
#endif
|