mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-29 13:29:28 +00:00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45418 91177308-0d34-0410-b5e6-96231b3b80d8
30 lines
929 B
C++
30 lines
929 B
C++
//===-- SPUTargetMachine.cpp - Define TargetMachine for Cell SPU ----------===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.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;
|
|
}
|