blob: a37dd5d261108e9d99f3e445e1e1dfb2f9e4312c [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
Scott Michel43e7c5e2007-12-05 01:40:25 +00006// Department at The Aerospace Corporation and is distributed under the
7// University of Illinois Open Source License. See LICENSE.TXT for details.
Scott Michel8efdca42007-12-04 22:23:35 +00008//
9//===----------------------------------------------------------------------===//
10//
11// Top-level implementation for the Cell SPU target.
12//
13//===----------------------------------------------------------------------===//
14
15#include "SPU.h"
16#include "SPUFrameInfo.h"
17#include "SPURegisterNames.h"
18
19using namespace llvm;
20
21//===----------------------------------------------------------------------===//
22// SPUFrameInfo:
23//===----------------------------------------------------------------------===//
24
25SPUFrameInfo::SPUFrameInfo(const TargetMachine &tm):
26 TargetFrameInfo(TargetFrameInfo::StackGrowsDown, 16, 0),
27 TM(tm)
28{
29 LR[0].first = SPU::R0;
30 LR[0].second = 16;
31}