SPU section handling is really huge mess. Replace remaining TAI calls for sections...
[oota-llvm.git] / lib / Target / CellSPU / SPUFrameInfo.cpp
1 //===-- SPUTargetMachine.cpp - Define TargetMachine for Cell SPU ----------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // Top-level implementation for the Cell SPU target.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #include "SPU.h"
15 #include "SPUFrameInfo.h"
16 #include "SPURegisterNames.h"
17 using namespace llvm;
18
19 //===----------------------------------------------------------------------===//
20 // SPUFrameInfo:
21 //===----------------------------------------------------------------------===//
22
23 SPUFrameInfo::SPUFrameInfo(const TargetMachine &tm):
24   TargetFrameInfo(TargetFrameInfo::StackGrowsDown, 16, 0),
25   TM(tm)
26 {
27   LR[0].first = SPU::R0;
28   LR[0].second = 16;
29 }