1 //===-- PPCFrameInfo.h - Define TargetFrameInfo for PowerPC -----*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file was developed by the LLVM research group and is distributed under
6 // the University of Illinois Open Source License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 //===----------------------------------------------------------------------===//
13 #ifndef POWERPC_FRAMEINFO_H
14 #define POWERPC_FRAMEINFO_H
17 #include "llvm/Target/TargetFrameInfo.h"
18 #include "llvm/Target/TargetMachine.h"
22 class PPCFrameInfo: public TargetFrameInfo {
23 const TargetMachine &TM;
24 std::pair<unsigned, int> LR[1];
27 PPCFrameInfo(const TargetMachine &tm, bool LP64)
28 : TargetFrameInfo(TargetFrameInfo::StackGrowsDown, 16, 0), TM(tm) {
29 LR[0].first = PPC::LR;
30 LR[0].second = LP64 ? 16 : 8;
33 const std::pair<unsigned, int> *
34 getCalleeSaveSpillSlots(unsigned &NumEntries) const {
40 } // End llvm namespace