diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2006-08-16 14:43:33 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2006-08-16 14:43:33 +0000 |
| commit | bf8e75148890b8e8af537454019c6285ac4a086f (patch) | |
| tree | ac4f31f56e295d5ae788c2863de4b76fc8fb2c9b /llvm/lib/Target/ARM/ARMFrameInfo.h | |
| parent | 63d178f473846b33e129f68765ea639ab60eda6a (diff) | |
| download | bcm5719-llvm-bf8e75148890b8e8af537454019c6285ac4a086f.tar.gz bcm5719-llvm-bf8e75148890b8e8af537454019c6285ac4a086f.zip | |
Declare the callee saved regs
Remove the hard coded store and load of the link register
Implement ARMFrameInfo
llvm-svn: 29727
Diffstat (limited to 'llvm/lib/Target/ARM/ARMFrameInfo.h')
| -rw-r--r-- | llvm/lib/Target/ARM/ARMFrameInfo.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMFrameInfo.h b/llvm/lib/Target/ARM/ARMFrameInfo.h new file mode 100644 index 00000000000..d25ec9c3f15 --- /dev/null +++ b/llvm/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 |

