1 //===-- TargetFrameInfo.cpp - Implement machine frame interface -*- 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 //===----------------------------------------------------------------------===//
10 // Implements the layout of a stack frame on the target machine.
12 //===----------------------------------------------------------------------===//
14 #include "llvm/Target/TargetFrameInfo.h"
19 //===--------------------------------------------------------------------===//
20 // These methods provide details of the stack frame used by Sparc, thus they
21 // are Sparc specific.
22 //===--------------------------------------------------------------------===//
24 int TargetFrameInfo::getStackFrameSizeAlignment() const { abort(); }
25 int TargetFrameInfo::getMinStackFrameSize() const { abort(); }
26 int TargetFrameInfo::getNumFixedOutgoingArgs() const { abort(); }
27 int TargetFrameInfo::getSizeOfEachArgOnStack() const { abort(); }
28 bool TargetFrameInfo::argsOnStackHaveFixedSize() const { abort(); }
30 // This method adjusts a stack offset to meet alignment rules of target.
32 TargetFrameInfo::adjustAlignment(int unalignedOffset, bool growUp,
33 unsigned align) const { abort(); }
35 // These methods compute offsets using the frame contents for a particular
36 // function. The frame contents are obtained from the MachineFunction object
37 // for the given function. The rest must be implemented by the
38 // machine-specific subclass.
41 TargetFrameInfo::getIncomingArgOffset(MachineFunction& mcInfo, unsigned argNum)
45 TargetFrameInfo::getOutgoingArgOffset(MachineFunction& mcInfo,
46 unsigned argNum) const { abort(); }
49 TargetFrameInfo::getFirstIncomingArgOffset(MachineFunction& mcInfo,
50 bool& growUp) const { abort(); }
53 TargetFrameInfo::getFirstOutgoingArgOffset(MachineFunction& mcInfo,
54 bool& growUp) const { abort(); }
57 TargetFrameInfo::getFirstOptionalOutgoingArgOffset(MachineFunction&,
58 bool& growUp) const { abort(); }
61 TargetFrameInfo::getFirstAutomaticVarOffset(MachineFunction& mcInfo,
62 bool& growUp) const { abort(); }
65 TargetFrameInfo::getRegSpillAreaOffset(MachineFunction& mcInfo, bool& growUp)
69 TargetFrameInfo::getTmpAreaOffset(MachineFunction& mcInfo, bool& growUp) const
73 TargetFrameInfo::getDynamicAreaOffset(MachineFunction& mcInfo, bool& growUp)
77 // These methods specify the base register used for each stack area
78 // (generally FP or SP)
80 int TargetFrameInfo::getIncomingArgBaseRegNum() const { abort(); }
81 int TargetFrameInfo::getOutgoingArgBaseRegNum() const { abort(); }
82 int TargetFrameInfo::getOptionalOutgoingArgBaseRegNum() const {abort();}
83 int TargetFrameInfo::getAutomaticVarBaseRegNum() const { abort(); }
84 int TargetFrameInfo::getRegSpillAreaBaseRegNum() const { abort(); }
85 int TargetFrameInfo::getDynamicAreaBaseRegNum() const { abort(); }