1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 12:33:33 +02:00
llvm-mirror/lib/Target/MSP430/MSP430RegisterInfo.h

47 lines
1.5 KiB
C
Raw Normal View History

//===-- 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.
//
//===----------------------------------------------------------------------===//
#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"
#define GET_REGINFO_HEADER
#include "MSP430GenRegisterInfo.inc"
2009-05-03 14:57:15 +02:00
namespace llvm {
struct MSP430RegisterInfo : public MSP430GenRegisterInfo {
public:
MSP430RegisterInfo();
2009-05-03 14:57:15 +02:00
/// Code Generation virtual methods...
const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF) const override;
2009-05-03 14:57:15 +02:00
BitVector getReservedRegs(const MachineFunction &MF) const override;
const TargetRegisterClass*
getPointerRegClass(const MachineFunction &MF,
unsigned Kind = 0) const override;
2009-05-03 14:57:15 +02:00
void eliminateFrameIndex(MachineBasicBlock::iterator II,
int SPAdj, unsigned FIOperandNum,
RegScavenger *RS = nullptr) const override;
2009-05-03 14:57:15 +02:00
// Debug information queries.
unsigned getFrameRegister(const MachineFunction &MF) const override;
2009-05-03 14:57:15 +02:00
};
} // end namespace llvm
#endif