mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-10-15 05:25:55 +00:00
33 lines
966 B
C++
33 lines
966 B
C++
|
//===-- SPUTargetMachine.cpp - Define TargetMachine for Cell SPU ----------===//
|
||
|
//
|
||
|
// The LLVM Compiler Infrastructure
|
||
|
//
|
||
|
// This file was developed by a team from the Computer Systems Research
|
||
|
// Department at The Aerospace Corporation.
|
||
|
//
|
||
|
// See README.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;
|
||
|
}
|