blob: 60d7ba736ac6f5039742b6876dbc617ce168d53e [file] [log] [blame]
Scott Michel266bc8f2007-12-04 22:23:35 +00001//===-- SPUTargetMachine.cpp - Define TargetMachine for Cell SPU ----------===//
2//
3// The LLVM Compiler Infrastructure
4//
Chris Lattner4ee451d2007-12-29 20:36:04 +00005// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
Scott Michel266bc8f2007-12-04 22:23:35 +00007//
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"
Scott Michel266bc8f2007-12-04 22:23:35 +000017using namespace llvm;
18
19//===----------------------------------------------------------------------===//
20// SPUFrameInfo:
21//===----------------------------------------------------------------------===//
22
23SPUFrameInfo::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}