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.
8 // See README.txt for details.
10 //===----------------------------------------------------------------------===//
12 // This file implements the CellSPU-specific subclass of TargetSubtarget.
14 //===----------------------------------------------------------------------===//
16 #include "SPUSubtarget.h"
18 #include "llvm/Module.h"
19 #include "llvm/Target/TargetMachine.h"
20 #include "SPUGenSubtarget.inc"
24 SPUSubtarget::SPUSubtarget(const TargetMachine &tm, const Module &M,
25 const std::string &FS) :
28 ProcDirective(SPU::DEFAULT_PROC),
31 // Should be the target SPU processor type. For now, since there's only
32 // one, simply default to the current "v0" default:
33 std::string default_cpu("v0");
35 // Parse features string.
36 ParseSubtargetFeatures(FS, default_cpu);
39 /// SetJITMode - This is called to inform the subtarget info that we are
40 /// producing code for the JIT.
41 void SPUSubtarget::SetJITMode() {