blob: 0a1c2f75cfe5ef02307651ac8ee54ded94553f57 [file] [log] [blame]
Scott Michel564427e2007-12-05 01:24:05 +00001//===- SPUSubtarget.cpp - STI Cell SPU Subtarget Information --------------===//
2//
3// The LLVM Compiler Infrastructure
4//
Chris Lattner4ee451d2007-12-29 20:36:04 +00005// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
Scott Michel564427e2007-12-05 01:24:05 +00007//
8//===----------------------------------------------------------------------===//
9//
10// This file implements the CellSPU-specific subclass of TargetSubtarget.
11//
12//===----------------------------------------------------------------------===//
13
14#include "SPUSubtarget.h"
15#include "SPU.h"
16#include "llvm/Module.h"
17#include "llvm/Target/TargetMachine.h"
18#include "SPUGenSubtarget.inc"
19
20using namespace llvm;
21
22SPUSubtarget::SPUSubtarget(const TargetMachine &tm, const Module &M,
23 const std::string &FS) :
24 TM(tm),
25 StackAlignment(16),
26 ProcDirective(SPU::DEFAULT_PROC),
27 UseLargeMem(false)
28{
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");
32
33 // Parse features string.
34 ParseSubtargetFeatures(FS, default_cpu);
35}
36
37/// SetJITMode - This is called to inform the subtarget info that we are
38/// producing code for the JIT.
39void SPUSubtarget::SetJITMode() {
40}