1 //===- SPUSubtarget.cpp - STI Cell SPU Subtarget Information --------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file implements the CellSPU-specific subclass of TargetSubtarget.
12 //===----------------------------------------------------------------------===//
14 #include "SPUSubtarget.h"
16 #include "llvm/Module.h"
17 #include "llvm/Target/TargetMachine.h"
18 #include "SPUGenSubtarget.inc"
22 SPUSubtarget::SPUSubtarget(const TargetMachine
&tm
, const Module
&M
,
23 const std::string
&FS
) :
26 ProcDirective(SPU::DEFAULT_PROC
),
29 // Should be the target SPU processor type. For now, since there's only
30 // one, simply default to the current "v0" default:
31 std::string
default_cpu("v0");
33 // Parse features string.
34 ParseSubtargetFeatures(FS
, default_cpu
);
37 /// SetJITMode - This is called to inform the subtarget info that we are
38 /// producing code for the JIT.
39 void SPUSubtarget::SetJITMode() {