kill SelectCALL() in the DAG isel, we handle this in lowering now, like
[oota-llvm.git] / lib / Target / TargetFrameInfo.cpp
1 //===-- TargetFrameInfo.cpp - Implement machine frame interface -*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
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.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // Implements the layout of a stack frame on the target machine.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #include "llvm/Target/TargetFrameInfo.h"
15 #include <cstdlib>
16
17 using namespace llvm;
18
19 TargetFrameInfo::~TargetFrameInfo()
20 {
21 }
22
23 //===--------------------------------------------------------------------===//
24 // These methods provide details of the stack frame used by Sparc, thus they
25 // are Sparc specific.
26 //===--------------------------------------------------------------------===//
27
28 // This method adjusts a stack offset to meet alignment rules of target.
29 int
30 TargetFrameInfo::adjustAlignment(int unalignedOffset, bool growUp,
31                                  unsigned align) const {
32   abort();
33   return 0;
34 }
35
36 // These methods compute offsets using the frame contents for a particular
37 // function.  The frame contents are obtained from the MachineFunction object
38 // for the given function.  The rest must be implemented by the
39 // machine-specific subclass.
40 //
41 int
42 TargetFrameInfo::getIncomingArgOffset(MachineFunction& mcInfo, unsigned argNum)
43   const {
44   abort();
45   return 0;
46 }
47
48 int
49 TargetFrameInfo::getOutgoingArgOffset(MachineFunction& mcInfo,
50                                       unsigned argNum) const {
51   abort();
52   return 0;
53 }
54
55 int
56 TargetFrameInfo::getFirstAutomaticVarOffset(MachineFunction& mcInfo,
57                                             bool& growUp) const {
58   abort();
59   return 0;
60 }
61
62 int
63 TargetFrameInfo::getRegSpillAreaOffset(MachineFunction& mcInfo, bool& growUp)
64   const {
65   abort();
66   return 0;
67 }
68
69 int
70 TargetFrameInfo::getTmpAreaOffset(MachineFunction& mcInfo, bool& growUp) const {
71   abort();
72   return 0;
73 }
74
75 int
76 TargetFrameInfo::getDynamicAreaOffset(MachineFunction& mcInfo, bool& growUp)
77   const {
78   abort();
79   return 0;
80 }
81