2012-02-18 13:03:15 +01:00
|
|
|
//===-- MSP430RegisterInfo.h - MSP430 Register Information Impl -*- C++ -*-===//
|
2009-05-03 14:57:15 +02: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 MSP430 implementation of the MRegisterInfo class.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2014-08-13 18:26:38 +02:00
|
|
|
#ifndef LLVM_LIB_TARGET_MSP430_MSP430REGISTERINFO_H
|
|
|
|
#define LLVM_LIB_TARGET_MSP430_MSP430REGISTERINFO_H
|
2009-05-03 14:57:15 +02:00
|
|
|
|
|
|
|
#include "llvm/Target/TargetRegisterInfo.h"
|
2011-06-27 20:32:37 +02:00
|
|
|
|
|
|
|
#define GET_REGINFO_HEADER
|
|
|
|
#include "MSP430GenRegisterInfo.inc"
|
2009-05-03 14:57:15 +02:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
struct MSP430RegisterInfo : public MSP430GenRegisterInfo {
|
|
|
|
public:
|
2014-06-27 03:14:50 +02:00
|
|
|
MSP430RegisterInfo();
|
2009-05-03 14:57:15 +02:00
|
|
|
|
|
|
|
/// Code Generation virtual methods...
|
2015-03-11 22:41:28 +01:00
|
|
|
const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF) const override;
|
2009-05-03 14:57:15 +02:00
|
|
|
|
2014-04-29 09:58:09 +02:00
|
|
|
BitVector getReservedRegs(const MachineFunction &MF) const override;
|
2012-05-08 00:10:26 +02:00
|
|
|
const TargetRegisterClass*
|
2014-04-29 09:58:09 +02:00
|
|
|
getPointerRegClass(const MachineFunction &MF,
|
|
|
|
unsigned Kind = 0) const override;
|
2009-05-03 14:57:15 +02: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:58:09 +02:00
|
|
|
RegScavenger *RS = nullptr) const override;
|
2009-05-03 14:57:15 +02:00
|
|
|
|
|
|
|
// Debug information queries.
|
2014-04-29 09:58:09 +02:00
|
|
|
unsigned getFrameRegister(const MachineFunction &MF) const override;
|
2009-05-03 14:57:15 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
} // end namespace llvm
|
|
|
|
|
2014-08-13 18:26:38 +02:00
|
|
|
#endif
|