LLVM API Documentation

SPUSubtarget.cpp

Go to the documentation of this file.
00001 //===- SPUSubtarget.cpp - STI Cell SPU Subtarget Information --------------===//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 //
00010 // This file implements the CellSPU-specific subclass of TargetSubtarget.
00011 //
00012 //===----------------------------------------------------------------------===//
00013 
00014 #include "SPUSubtarget.h"
00015 #include "SPU.h"
00016 #include "SPUGenSubtarget.inc"
00017 
00018 using namespace llvm;
00019 
00020 SPUSubtarget::SPUSubtarget(const std::string &TT, const std::string &FS) :
00021   StackAlignment(16),
00022   ProcDirective(SPU::DEFAULT_PROC),
00023   UseLargeMem(false)
00024 {
00025   // Should be the target SPU processor type. For now, since there's only
00026   // one, simply default to the current "v0" default:
00027   std::string default_cpu("v0");
00028 
00029   // Parse features string.
00030   ParseSubtargetFeatures(FS, default_cpu);
00031 }
00032 
00033 /// SetJITMode - This is called to inform the subtarget info that we are
00034 /// producing code for the JIT.
00035 void SPUSubtarget::SetJITMode() {
00036 }