LLVM API Documentation
00001 //===-- SPUTargetMachine.cpp - Define TargetMachine for Cell SPU ----------===// 00002 // 00003 // The LLVM Compiler Infrastructure 00004 // 00005 // This file is distributed under the University of Illinois Open Source 00006 // License. See LICENSE.TXT for details. 00007 // 00008 //===----------------------------------------------------------------------===// 00009 // 00010 // Top-level implementation for the Cell SPU target. 00011 // 00012 //===----------------------------------------------------------------------===// 00013 00014 #include "SPU.h" 00015 #include "SPUFrameInfo.h" 00016 #include "SPURegisterNames.h" 00017 using namespace llvm; 00018 00019 //===----------------------------------------------------------------------===// 00020 // SPUFrameInfo: 00021 //===----------------------------------------------------------------------===// 00022 00023 SPUFrameInfo::SPUFrameInfo(const TargetMachine &tm): 00024 TargetFrameInfo(TargetFrameInfo::StackGrowsDown, 16, 0), 00025 TM(tm) 00026 { 00027 LR[0].first = SPU::R0; 00028 LR[0].second = 16; 00029 }