LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

TargetFrameInfo.cpp

Go to the documentation of this file.
00001 //===-- TargetFrameInfo.cpp - Implement machine frame interface -*- C++ -*-===//
00002 // 
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file was developed by the LLVM research group and is distributed under
00006 // the University of Illinois Open Source License. See LICENSE.TXT for details.
00007 // 
00008 //===----------------------------------------------------------------------===//
00009 //
00010 // Implements the layout of a stack frame on the target machine.
00011 //
00012 //===----------------------------------------------------------------------===//
00013 
00014 #include "llvm/Target/TargetFrameInfo.h"
00015 #include <cstdlib>
00016 
00017 using namespace llvm;
00018 
00019 //===--------------------------------------------------------------------===//
00020 // These methods provide details of the stack frame used by Sparc, thus they
00021 // are Sparc specific.
00022 //===--------------------------------------------------------------------===//
00023 
00024 // This method adjusts a stack offset to meet alignment rules of target.
00025 int 
00026 TargetFrameInfo::adjustAlignment(int unalignedOffset, bool growUp,
00027                                  unsigned align) const { abort(); }
00028 
00029 // These methods compute offsets using the frame contents for a particular
00030 // function.  The frame contents are obtained from the MachineFunction object
00031 // for the given function.  The rest must be implemented by the
00032 // machine-specific subclass.
00033 // 
00034 int
00035 TargetFrameInfo::getIncomingArgOffset(MachineFunction& mcInfo, unsigned argNum)
00036   const{ abort(); }
00037 
00038 int
00039 TargetFrameInfo::getOutgoingArgOffset(MachineFunction& mcInfo,
00040                                       unsigned argNum) const { abort(); }
00041 
00042 int
00043 TargetFrameInfo::getFirstAutomaticVarOffset(MachineFunction& mcInfo,
00044                                             bool& growUp) const { abort(); }
00045 
00046 int 
00047 TargetFrameInfo::getRegSpillAreaOffset(MachineFunction& mcInfo, bool& growUp)
00048   const { abort(); }
00049 
00050 int
00051 TargetFrameInfo::getTmpAreaOffset(MachineFunction& mcInfo, bool& growUp) const
00052 { abort(); }
00053 
00054 int 
00055 TargetFrameInfo::getDynamicAreaOffset(MachineFunction& mcInfo, bool& growUp)
00056   const { abort(); }
00057