Rename XXXGenSubtarget.inc to XXXGenSubtargetInfo.inc for consistency.
[oota-llvm.git] / lib / Target / Blackfin / BlackfinSubtarget.cpp
1 //===- BlackfinSubtarget.cpp - BLACKFIN Subtarget Information -------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file implements the blackfin specific subclass of TargetSubtargetInfo.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #include "BlackfinSubtarget.h"
15
16 #define GET_SUBTARGETINFO_CTOR
17 #define GET_SUBTARGETINFO_MC_DESC
18 #define GET_SUBTARGETINFO_TARGET_DESC
19 #include "BlackfinGenSubtargetInfo.inc"
20
21 using namespace llvm;
22
23 BlackfinSubtarget::BlackfinSubtarget(const std::string &TT,
24                                      const std::string &CPU,
25                                      const std::string &FS)
26   : BlackfinGenSubtargetInfo(), sdram(false),
27     icplb(false),
28     wa_mi_shift(false),
29     wa_csync(false),
30     wa_specld(false),
31     wa_mmr_stall(false),
32     wa_lcregs(false),
33     wa_hwloop(false),
34     wa_ind_call(false),
35     wa_killed_mmr(false),
36     wa_rets(false)
37 {
38   std::string CPUName = CPU;
39   if (CPUName.empty())
40     CPUName = "generic";
41   // Parse features string.
42   ParseSubtargetFeatures(FS, CPUName);
43 }