Scott Michel | 8efdca4 | 2007-12-04 22:23:35 +0000 | [diff] [blame] | 1 | //===-- SPUTargetMachine.cpp - Define TargetMachine for Cell SPU ----------===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file was developed by a team from the Computer Systems Research |
Scott Michel | 43e7c5e | 2007-12-05 01:40:25 +0000 | [diff] [blame^] | 6 | // Department at The Aerospace Corporation and is distributed under the |
| 7 | // University of Illinois Open Source License. See LICENSE.TXT for details. |
Scott Michel | 8efdca4 | 2007-12-04 22:23:35 +0000 | [diff] [blame] | 8 | // |
| 9 | //===----------------------------------------------------------------------===// |
| 10 | // |
| 11 | // Top-level implementation for the Cell SPU target. |
| 12 | // |
| 13 | //===----------------------------------------------------------------------===// |
| 14 | |
| 15 | #include "SPU.h" |
| 16 | #include "SPUFrameInfo.h" |
| 17 | #include "SPURegisterNames.h" |
| 18 | |
| 19 | using namespace llvm; |
| 20 | |
| 21 | //===----------------------------------------------------------------------===// |
| 22 | // SPUFrameInfo: |
| 23 | //===----------------------------------------------------------------------===// |
| 24 | |
| 25 | SPUFrameInfo::SPUFrameInfo(const TargetMachine &tm): |
| 26 | TargetFrameInfo(TargetFrameInfo::StackGrowsDown, 16, 0), |
| 27 | TM(tm) |
| 28 | { |
| 29 | LR[0].first = SPU::R0; |
| 30 | LR[0].second = 16; |
| 31 | } |