1 //==- SystemZMachineFuctionInfo.h - SystemZ machine function info -*- C++ -*-=//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file declares SystemZ-specific per-machine-function information.
12 //===----------------------------------------------------------------------===//
14 #ifndef SYSTEMZMACHINEFUNCTIONINFO_H
15 #define SYSTEMZMACHINEFUNCTIONINFO_H
17 #include "llvm/CodeGen/MachineFunction.h"
21 /// SystemZMachineFunctionInfo - This class is derived from MachineFunction and
22 /// contains private SystemZ target-specific information for each MachineFunction.
23 class SystemZMachineFunctionInfo
: public MachineFunctionInfo
{
24 /// CalleeSavedFrameSize - Size of the callee-saved register portion of the
25 /// stack frame in bytes.
26 unsigned CalleeSavedFrameSize
;
28 /// LowReg - Low register of range of callee-saved registers to store.
31 /// HighReg - High register of range of callee-saved registers to store.
34 SystemZMachineFunctionInfo() : CalleeSavedFrameSize(0) {}
36 SystemZMachineFunctionInfo(MachineFunction
&MF
) : CalleeSavedFrameSize(0) {}
38 unsigned getCalleeSavedFrameSize() const { return CalleeSavedFrameSize
; }
39 void setCalleeSavedFrameSize(unsigned bytes
) { CalleeSavedFrameSize
= bytes
; }
41 unsigned getLowReg() const { return LowReg
; }
42 void setLowReg(unsigned Reg
) { LowReg
= Reg
; }
44 unsigned getHighReg() const { return HighReg
; }
45 void setHighReg(unsigned Reg
) { HighReg
= Reg
; }
48 } // End llvm namespace