1 //===-- PowerPCFrameInfo.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"
19 #include "llvm/Target/MRegisterInfo.h"
23 class PowerPCFrameInfo: public TargetFrameInfo {
24 const TargetMachine &TM;
25 std::pair<unsigned, int> LR[1];
28 PowerPCFrameInfo(const TargetMachine &tm, bool LP64)
29 : TargetFrameInfo(TargetFrameInfo::StackGrowsDown, 16, 0), TM(tm) {
30 LR[0].first = PPC::LR;
31 LR[0].second = LP64 ? 16 : 8;
34 const std::pair<unsigned, int> *
35 getCalleeSaveSpillSlots(unsigned &NumEntries) const {
41 } // End llvm namespace