Scott Michel | 266bc8f | 2007-12-04 22:23:35 +0000 | [diff] [blame] | 1 | //===-- SPUTargetMachine.cpp - Define TargetMachine for Cell SPU ----------===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
Chris Lattner | 4ee451d | 2007-12-29 20:36:04 +0000 | [diff] [blame] | 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
Scott Michel | 266bc8f | 2007-12-04 22:23:35 +0000 | [diff] [blame] | 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // Top-level implementation for the Cell SPU target. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #include "SPU.h" |
| 15 | #include "SPUFrameInfo.h" |
| 16 | #include "SPURegisterNames.h" |
Scott Michel | 266bc8f | 2007-12-04 22:23:35 +0000 | [diff] [blame] | 17 | using namespace llvm; |
| 18 | |
| 19 | //===----------------------------------------------------------------------===// |
| 20 | // SPUFrameInfo: |
| 21 | //===----------------------------------------------------------------------===// |
| 22 | |
| 23 | SPUFrameInfo::SPUFrameInfo(const TargetMachine &tm): |
| 24 | TargetFrameInfo(TargetFrameInfo::StackGrowsDown, 16, 0), |
| 25 | TM(tm) |
| 26 | { |
| 27 | LR[0].first = SPU::R0; |
| 28 | LR[0].second = 16; |
| 29 | } |