From c334c28b3b329c02f38f750bc6bcae47c36b609e Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Thu, 16 Jul 2009 13:27:25 +0000 Subject: Let's start another backend :) llvm-svn: 75909 --- .../Target/SystemZ/SystemZMachineFunctionInfo.h | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 llvm/lib/Target/SystemZ/SystemZMachineFunctionInfo.h (limited to 'llvm/lib/Target/SystemZ/SystemZMachineFunctionInfo.h') diff --git a/llvm/lib/Target/SystemZ/SystemZMachineFunctionInfo.h b/llvm/lib/Target/SystemZ/SystemZMachineFunctionInfo.h new file mode 100644 index 00000000000..9b45b0364ce --- /dev/null +++ b/llvm/lib/Target/SystemZ/SystemZMachineFunctionInfo.h @@ -0,0 +1,39 @@ +//==- SystemZMachineFuctionInfo.h - SystemZ machine function info -*- C++ -*-=// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares SystemZ-specific per-machine-function information. +// +//===----------------------------------------------------------------------===// + +#ifndef SYSTEMZMACHINEFUNCTIONINFO_H +#define SYSTEMZMACHINEFUNCTIONINFO_H + +#include "llvm/CodeGen/MachineFunction.h" + +namespace llvm { + +/// SystemZMachineFunctionInfo - This class is derived from MachineFunction and +/// contains private SystemZ target-specific information for each MachineFunction. +class SystemZMachineFunctionInfo : public MachineFunctionInfo { + /// CalleeSavedFrameSize - Size of the callee-saved register portion of the + /// stack frame in bytes. + unsigned CalleeSavedFrameSize; + +public: + SystemZMachineFunctionInfo() : CalleeSavedFrameSize(0) {} + + SystemZMachineFunctionInfo(MachineFunction &MF) : CalleeSavedFrameSize(0) {} + + unsigned getCalleeSavedFrameSize() const { return CalleeSavedFrameSize; } + void setCalleeSavedFrameSize(unsigned bytes) { CalleeSavedFrameSize = bytes; } +}; + +} // End llvm namespace + +#endif -- cgit v1.2.3