Scott Michel | 564427e | 2007-12-05 01:24:05 +0000 | [diff] [blame] | 1 | //===- SPUSubtarget.cpp - STI Cell SPU Subtarget Information --------------===// |
| 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 | 564427e | 2007-12-05 01:24:05 +0000 | [diff] [blame] | 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file implements the CellSPU-specific subclass of TargetSubtarget. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #include "SPUSubtarget.h" |
| 15 | #include "SPU.h" |
Scott Michel | 564427e | 2007-12-05 01:24:05 +0000 | [diff] [blame] | 16 | #include "SPUGenSubtarget.inc" |
| 17 | |
| 18 | using namespace llvm; |
| 19 | |
Daniel Dunbar | 3be0340 | 2009-08-02 22:11:08 +0000 | [diff] [blame] | 20 | SPUSubtarget::SPUSubtarget(const std::string &TT, const std::string &FS) : |
Scott Michel | 564427e | 2007-12-05 01:24:05 +0000 | [diff] [blame] | 21 | StackAlignment(16), |
| 22 | ProcDirective(SPU::DEFAULT_PROC), |
| 23 | UseLargeMem(false) |
| 24 | { |
| 25 | // Should be the target SPU processor type. For now, since there's only |
| 26 | // one, simply default to the current "v0" default: |
| 27 | std::string default_cpu("v0"); |
| 28 | |
| 29 | // Parse features string. |
| 30 | ParseSubtargetFeatures(FS, default_cpu); |
| 31 | } |
| 32 | |
| 33 | /// SetJITMode - This is called to inform the subtarget info that we are |
| 34 | /// producing code for the JIT. |
| 35 | void SPUSubtarget::SetJITMode() { |
| 36 | } |