blob: c110db9abc9a198cf6e69f5c4706d2c347a2e5f0 [file] [log] [blame]
Scott Michel8efdca42007-12-04 22:23:35 +00001//===-- SPUTargetMachine.cpp - Define TargetMachine for Cell SPU ----------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file was developed by a team from the Computer Systems Research
6// Department at The Aerospace Corporation.
7//
8// See README.txt for details.
9//
10//===----------------------------------------------------------------------===//
11//
12// Top-level implementation for the Cell SPU target.
13//
14//===----------------------------------------------------------------------===//
15
16#include "SPU.h"
17#include "SPUFrameInfo.h"
18#include "SPURegisterNames.h"
19
20using namespace llvm;
21
22//===----------------------------------------------------------------------===//
23// SPUFrameInfo:
24//===----------------------------------------------------------------------===//
25
26SPUFrameInfo::SPUFrameInfo(const TargetMachine &tm):
27 TargetFrameInfo(TargetFrameInfo::StackGrowsDown, 16, 0),
28 TM(tm)
29{
30 LR[0].first = SPU::R0;
31 LR[0].second = 16;
32}