LLVM API Documentation

MSP430MachineFunctionInfo.h

Go to the documentation of this file.
00001 //===- MSP430MachineFuctionInfo.h - MSP430 machine function info -*- C++ -*-==//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 //
00010 // This file declares MSP430-specific per-machine-function information.
00011 //
00012 //===----------------------------------------------------------------------===//
00013 
00014 #ifndef MSP430MACHINEFUNCTIONINFO_H
00015 #define MSP430MACHINEFUNCTIONINFO_H
00016 
00017 #include "llvm/CodeGen/MachineFunction.h"
00018 
00019 namespace llvm {
00020 
00021 /// MSP430MachineFunctionInfo - This class is derived from MachineFunction and
00022 /// contains private MSP430 target-specific information for each MachineFunction.
00023 class MSP430MachineFunctionInfo : public MachineFunctionInfo {
00024   /// CalleeSavedFrameSize - Size of the callee-saved register portion of the
00025   /// stack frame in bytes.
00026   unsigned CalleeSavedFrameSize;
00027 
00028 public:
00029   MSP430MachineFunctionInfo() : CalleeSavedFrameSize(0) {}
00030 
00031   explicit MSP430MachineFunctionInfo(MachineFunction &MF)
00032     : CalleeSavedFrameSize(0) {}
00033 
00034   unsigned getCalleeSavedFrameSize() const { return CalleeSavedFrameSize; }
00035   void setCalleeSavedFrameSize(unsigned bytes) { CalleeSavedFrameSize = bytes; }
00036 };
00037 
00038 } // End llvm namespace
00039 
00040 #endif