LLVM API Documentation

BlackfinSubtarget.cpp

Go to the documentation of this file.
00001 //===- BlackfinSubtarget.cpp - BLACKFIN 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 blackfin specific subclass of TargetSubtarget.
00011 //
00012 //===----------------------------------------------------------------------===//
00013 
00014 #include "BlackfinSubtarget.h"
00015 #include "BlackfinGenSubtarget.inc"
00016 
00017 using namespace llvm;
00018 
00019 BlackfinSubtarget::BlackfinSubtarget(const std::string &TT,
00020                                      const std::string &FS)
00021   : sdram(false),
00022     icplb(false),
00023     wa_mi_shift(false),
00024     wa_csync(false),
00025     wa_specld(false),
00026     wa_mmr_stall(false),
00027     wa_lcregs(false),
00028     wa_hwloop(false),
00029     wa_ind_call(false),
00030     wa_killed_mmr(false),
00031     wa_rets(false)
00032 {
00033   std::string CPU = "generic";
00034   // Parse features string.
00035   ParseSubtargetFeatures(FS, CPU);
00036 }