Jakob Stoklund Olesen | d950941 | 2009-08-02 17:32:10 +0000 | [diff] [blame] | 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 TargetSubtarget. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #include "BlackfinSubtarget.h" |
| 15 | #include "BlackfinGenSubtarget.inc" |
| 16 | |
| 17 | using namespace llvm; |
| 18 | |
Daniel Dunbar | 3be0340 | 2009-08-02 22:11:08 +0000 | [diff] [blame] | 19 | BlackfinSubtarget::BlackfinSubtarget(const std::string &TT, |
Evan Cheng | 276365d | 2011-06-30 01:53:36 +0000 | [diff] [blame^] | 20 | const std::string &CPU, |
Jakob Stoklund Olesen | 26a84d4 | 2009-08-02 18:27:36 +0000 | [diff] [blame] | 21 | const std::string &FS) |
| 22 | : sdram(false), |
| 23 | icplb(false), |
| 24 | wa_mi_shift(false), |
| 25 | wa_csync(false), |
| 26 | wa_specld(false), |
| 27 | wa_mmr_stall(false), |
| 28 | wa_lcregs(false), |
| 29 | wa_hwloop(false), |
| 30 | wa_ind_call(false), |
| 31 | wa_killed_mmr(false), |
| 32 | wa_rets(false) |
| 33 | { |
Evan Cheng | 276365d | 2011-06-30 01:53:36 +0000 | [diff] [blame^] | 34 | std::string CPUName = CPU; |
| 35 | if (CPUName.empty()) |
| 36 | CPUName = "generic"; |
Jakob Stoklund Olesen | d950941 | 2009-08-02 17:32:10 +0000 | [diff] [blame] | 37 | // Parse features string. |
Evan Cheng | 276365d | 2011-06-30 01:53:36 +0000 | [diff] [blame^] | 38 | ParseSubtargetFeatures(FS, CPUName); |
Jakob Stoklund Olesen | d950941 | 2009-08-02 17:32:10 +0000 | [diff] [blame] | 39 | } |