2007-12-04 22:23:35 +00:00
|
|
|
//===-- SPUTargetMachine.cpp - Define TargetMachine for Cell SPU ----------===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2007-12-29 20:36:04 +00:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
2007-12-04 22:23:35 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// 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;
|
|
|
|
}
|