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 |
| 6 | // Department at The Aerospace Corporation. |
| 7 | // |
| 8 | // See README.txt for details. |
| 9 | // |
| 10 | //===----------------------------------------------------------------------===// |
| 11 | // |
| 12 | // Top-level implementation for the Cell SPU target. |
| 13 | // |
| 14 | //===----------------------------------------------------------------------===// |
| 15 | |
| 16 | #include "SPU.h" |
| 17 | #include "SPUFrameInfo.h" |
| 18 | #include "SPURegisterNames.h" |
| 19 | |
| 20 | using namespace llvm; |
| 21 | |
| 22 | //===----------------------------------------------------------------------===// |
| 23 | // SPUFrameInfo: |
| 24 | //===----------------------------------------------------------------------===// |
| 25 | |
| 26 | SPUFrameInfo::SPUFrameInfo(const TargetMachine &tm): |
| 27 | TargetFrameInfo(TargetFrameInfo::StackGrowsDown, 16, 0), |
| 28 | TM(tm) |
| 29 | { |
| 30 | LR[0].first = SPU::R0; |
| 31 | LR[0].second = 16; |
| 32 | } |