aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/CellSPU/SPUFrameInfo.cpp
blob: 60d7ba736ac6f5039742b6876dbc617ce168d53e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//===-- SPUTargetMachine.cpp - Define TargetMachine for Cell SPU ----------===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// Top-level implementation for the Cell SPU target.
//
//===----------------------------------------------------------------------===//

#include "SPU.h"
#include "SPUFrameInfo.h"
#include "SPURegisterNames.h"
using namespace llvm;

//===----------------------------------------------------------------------===//
// SPUFrameInfo:
//===----------------------------------------------------------------------===//

SPUFrameInfo::SPUFrameInfo(const TargetMachine &tm):
  TargetFrameInfo(TargetFrameInfo::StackGrowsDown, 16, 0),
  TM(tm)
{
  LR[0].first = SPU::R0;
  LR[0].second = 16;
}