e69f9bc9c148ce40a94dcf8edc39dd115b18b600
[oota-llvm.git] / lib / Target / MSP430 / MSP430RegisterInfo.cpp
1 //===- MSP430RegisterInfo.cpp - MSP430 Register Information ---------------===//
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 MSP430 implementation of the TargetRegisterInfo class.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #define DEBUG_TYPE "msp430-reg-info"
15
16 #include "MSP430.h"
17 #include "MSP430RegisterInfo.h"
18 #include "llvm/ADT/BitVector.h"
19
20 using namespace llvm;
21
22 // FIXME: Provide proper call frame setup / destroy opcodes.
23 MSP430RegisterInfo::MSP430RegisterInfo(const TargetInstrInfo &tii)
24   : MSP430GenRegisterInfo(MSP430::NOP, MSP430::NOP),
25     TII(tii) {}
26
27 const unsigned*
28 MSP430RegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) const {
29   assert(0 && "Not implemented yet!");
30 }
31
32 const TargetRegisterClass* const*
33 MSP430RegisterInfo::getCalleeSavedRegClasses(const MachineFunction *MF) const {
34   assert(0 && "Not implemented yet!");
35 }
36
37 BitVector
38 MSP430RegisterInfo::getReservedRegs(const MachineFunction &MF) const {
39   assert(0 && "Not implemented yet!");
40 }
41
42 bool MSP430RegisterInfo::hasFP(const MachineFunction &MF) const {
43   assert(0 && "Not implemented yet!");
44 }
45
46 void
47 MSP430RegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator II,
48                                         int SPAdj, RegScavenger *RS) const {
49   assert(0 && "Not implemented yet!");
50 }
51
52 void MSP430RegisterInfo::emitPrologue(MachineFunction &MF) const {
53   assert(0 && "Not implemented yet!");
54 }
55
56 void MSP430RegisterInfo::emitEpilogue(MachineFunction &MF,
57                                       MachineBasicBlock &MBB) const {
58   assert(0 && "Not implemented yet!");
59 }
60
61 unsigned MSP430RegisterInfo::getRARegister() const {
62   assert(0 && "Not implemented yet!");
63 }
64
65 unsigned MSP430RegisterInfo::getFrameRegister(MachineFunction &MF) const {
66   assert(0 && "Not implemented yet!");
67 }
68
69 int MSP430RegisterInfo::getDwarfRegNum(unsigned RegNum, bool isEH) const {
70   assert(0 && "Not implemented yet!");
71 }
72
73 #include "MSP430GenRegisterInfo.inc"