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 19 namespace llvm { 20 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; 27 28 /// LowReg - Low register of range of callee-saved registers to store. 29 unsigned LowReg; 30 31 /// HighReg - High register of range of callee-saved registers to store. 32 unsigned HighReg; 33 public: 34 SystemZMachineFunctionInfo() : CalleeSavedFrameSize(0) {} 35 36 explicit SystemZMachineFunctionInfo(MachineFunction &MF) 37 : CalleeSavedFrameSize(0) {} 38 39 unsigned getCalleeSavedFrameSize() const { return CalleeSavedFrameSize; } 40 void setCalleeSavedFrameSize(unsigned bytes) { CalleeSavedFrameSize = bytes; } 41 42 unsigned getLowReg() const { return LowReg; } 43 void setLowReg(unsigned Reg) { LowReg = Reg; } 44 45 unsigned getHighReg() const { return HighReg; } 46 void setHighReg(unsigned Reg) { HighReg = Reg; } 47 }; 48 49 } // End llvm namespace 50 51 #endif 52