blob: b94d7e44cace2adf0a2379709d822de4d2c08d36 [file] [log] [blame]
Anton Korobeynikovd5047cb2009-05-03 13:11:04 +00001//===- MSP430MachineFuctionInfo.h - MSP430 machine function info -*- 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 declares MSP430-specific per-machine-function information.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef MSP430MACHINEFUNCTIONINFO_H
15#define MSP430MACHINEFUNCTIONINFO_H
16
17#include "llvm/CodeGen/MachineFunction.h"
18
19namespace llvm {
20
21/// MSP430MachineFunctionInfo - This class is derived from MachineFunction and
22/// contains private MSP430 target-specific information for each MachineFunction.
23class MSP430MachineFunctionInfo : public MachineFunctionInfo {
24 /// CalleeSavedFrameSize - Size of the callee-saved register portion of the
25 /// stack frame in bytes.
26 unsigned CalleeSavedFrameSize;
27
28public:
29 MSP430MachineFunctionInfo() : CalleeSavedFrameSize(0) {}
30
31 MSP430MachineFunctionInfo(MachineFunction &MF) : CalleeSavedFrameSize(0) {}
32
33 unsigned getCalleeSavedFrameSize() const { return CalleeSavedFrameSize; }
34 void setCalleeSavedFrameSize(unsigned bytes) { CalleeSavedFrameSize = bytes; }
35};
36
37} // End llvm namespace
38
39#endif