1 //===- SPUSubtarget.cpp - STI Cell SPU Subtarget Information --------------===//
3 // The LLVM Compiler Infrastructure
5 // This file was developed by a team from the Computer Systems Research
6 // Department at The Aerospace Corporation and is distributed under the
7 // University of Illinois Open Source License. See LICENSE.TXT for details.
9 //===----------------------------------------------------------------------===//
11 // This file implements the CellSPU-specific subclass of TargetSubtarget.
13 //===----------------------------------------------------------------------===//
15 #include "SPUSubtarget.h"
17 #include "llvm/Module.h"
18 #include "llvm/Target/TargetMachine.h"
19 #include "SPUGenSubtarget.inc"
23 SPUSubtarget::SPUSubtarget(const TargetMachine &tm, const Module &M,
24 const std::string &FS) :
27 ProcDirective(SPU::DEFAULT_PROC),
30 // Should be the target SPU processor type. For now, since there's only
31 // one, simply default to the current "v0" default:
32 std::string default_cpu("v0");
34 // Parse features string.
35 ParseSubtargetFeatures(FS, default_cpu);
38 /// SetJITMode - This is called to inform the subtarget info that we are
39 /// producing code for the JIT.
40 void SPUSubtarget::SetJITMode() {