summaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMFrameInfo.h
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2006-08-16 14:43:33 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2006-08-16 14:43:33 +0000
commitec46ea34dcc615558294e9e0dbd0dd0f2894f574 (patch)
tree0965e178da0dccf23657b2f8734d118b730d6dfd /lib/Target/ARM/ARMFrameInfo.h
parent23329f5e0366af7cd9a96572ed8d6322696e5846 (diff)
downloadllvm-ec46ea34dcc615558294e9e0dbd0dd0f2894f574.tar.gz
llvm-ec46ea34dcc615558294e9e0dbd0dd0f2894f574.tar.bz2
llvm-ec46ea34dcc615558294e9e0dbd0dd0f2894f574.tar.xz
Declare the callee saved regs
Remove the hard coded store and load of the link register Implement ARMFrameInfo git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29727 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMFrameInfo.h')
-rw-r--r--lib/Target/ARM/ARMFrameInfo.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMFrameInfo.h b/lib/Target/ARM/ARMFrameInfo.h
new file mode 100644
index 0000000000..d25ec9c3f1
--- /dev/null
+++ b/lib/Target/ARM/ARMFrameInfo.h
@@ -0,0 +1,43 @@
+//===-- ARMTargetFrameInfo.h - Define TargetFrameInfo for ARM ---*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file was developed by the "Instituto Nokia de Tecnologia" and
+// is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+//
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef ARM_FRAMEINFO_H
+#define ARM_FRAMEINFO_H
+
+#include "ARM.h"
+#include "llvm/Target/TargetFrameInfo.h"
+#include "llvm/Target/TargetMachine.h"
+
+namespace llvm {
+
+class ARMFrameInfo: public TargetFrameInfo {
+ std::pair<unsigned, int> LR[1];
+
+public:
+ ARMFrameInfo()
+ : TargetFrameInfo(TargetFrameInfo::StackGrowsDown, 8, 0) {
+ LR[0].first = ARM::R14;
+ LR[0].second = -4;
+ }
+
+ const std::pair<unsigned, int> *
+ getCalleeSaveSpillSlots(unsigned &NumEntries) const {
+ NumEntries = 1;
+ return &LR[0];
+ }
+};
+
+} // End llvm namespace
+
+#endif