]> CyberLeo.Net >> Repos - FreeBSD/releng/9.0.git/blob - contrib/llvm/lib/Target/Blackfin/BlackfinSubtarget.cpp
Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
[FreeBSD/releng/9.0.git] / contrib / llvm / 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 #include "Blackfin.h"
16 #include "llvm/Support/TargetRegistry.h"
17
18 #define GET_SUBTARGETINFO_TARGET_DESC
19 #define GET_SUBTARGETINFO_CTOR
20 #include "BlackfinGenSubtargetInfo.inc"
21
22 using namespace llvm;
23
24 BlackfinSubtarget::BlackfinSubtarget(const std::string &TT,
25                                      const std::string &CPU,
26                                      const std::string &FS)
27   : BlackfinGenSubtargetInfo(TT, CPU, FS), sdram(false),
28     icplb(false),
29     wa_mi_shift(false),
30     wa_csync(false),
31     wa_specld(false),
32     wa_mmr_stall(false),
33     wa_lcregs(false),
34     wa_hwloop(false),
35     wa_ind_call(false),
36     wa_killed_mmr(false),
37     wa_rets(false)
38 {
39   std::string CPUName = CPU;
40   if (CPUName.empty())
41     CPUName = "generic";
42   // Parse features string.
43   ParseSubtargetFeatures(CPUName, FS);
44 }