summaryrefslogtreecommitdiff
path: root/lib/Target/SystemZ/SystemZMachineFunctionInfo.h
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-07-16 13:27:25 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-07-16 13:27:25 +0000
commit4403b930f867f61b48304a23a6843026b0b9a32a (patch)
tree4dfc4dc075d8144cc64c6db7093c5556111148f3 /lib/Target/SystemZ/SystemZMachineFunctionInfo.h
parentdb9e697725e81edb4c5cb80f8dc7b412431be0d0 (diff)
downloadllvm-4403b930f867f61b48304a23a6843026b0b9a32a.tar.gz
llvm-4403b930f867f61b48304a23a6843026b0b9a32a.tar.bz2
llvm-4403b930f867f61b48304a23a6843026b0b9a32a.tar.xz
Let's start another backend :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75909 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ/SystemZMachineFunctionInfo.h')
-rw-r--r--lib/Target/SystemZ/SystemZMachineFunctionInfo.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/lib/Target/SystemZ/SystemZMachineFunctionInfo.h b/lib/Target/SystemZ/SystemZMachineFunctionInfo.h
new file mode 100644
index 0000000000..9b45b0364c
--- /dev/null
+++ b/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