SystemZMachineFunctionInfo.h revision 4403b930f867f61b48304a23a6843026b0b9a32a
1//==- SystemZMachineFuctionInfo.h - SystemZ 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 SystemZ-specific per-machine-function information.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef SYSTEMZMACHINEFUNCTIONINFO_H
15#define SYSTEMZMACHINEFUNCTIONINFO_H
16
17#include "llvm/CodeGen/MachineFunction.h"
18
19namespace llvm {
20
21/// SystemZMachineFunctionInfo - This class is derived from MachineFunction and
22/// contains private SystemZ target-specific information for each MachineFunction.
23class SystemZMachineFunctionInfo : public MachineFunctionInfo {
24  /// CalleeSavedFrameSize - Size of the callee-saved register portion of the
25  /// stack frame in bytes.
26  unsigned CalleeSavedFrameSize;
27
28public:
29  SystemZMachineFunctionInfo() : CalleeSavedFrameSize(0) {}
30
31  SystemZMachineFunctionInfo(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
40