LLVM API Documentation
00001 //===- BlackfinSubtarget.h - Define Subtarget for the Blackfin -*- C++ -*-====// 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 declares the BLACKFIN specific subclass of TargetSubtarget. 00011 // 00012 //===----------------------------------------------------------------------===// 00013 00014 #ifndef BLACKFIN_SUBTARGET_H 00015 #define BLACKFIN_SUBTARGET_H 00016 00017 #include "llvm/Target/TargetSubtarget.h" 00018 #include <string> 00019 00020 namespace llvm { 00021 00022 class BlackfinSubtarget : public TargetSubtarget { 00023 bool sdram; 00024 bool icplb; 00025 bool wa_mi_shift; 00026 bool wa_csync; 00027 bool wa_specld; 00028 bool wa_mmr_stall; 00029 bool wa_lcregs; 00030 bool wa_hwloop; 00031 bool wa_ind_call; 00032 bool wa_killed_mmr; 00033 bool wa_rets; 00034 public: 00035 BlackfinSubtarget(const std::string &TT, const std::string &FS); 00036 00037 /// ParseSubtargetFeatures - Parses features string setting specified 00038 /// subtarget options. Definition of function is auto generated by tblgen. 00039 std::string ParseSubtargetFeatures(const std::string &FS, 00040 const std::string &CPU); 00041 }; 00042 00043 } // end namespace llvm 00044 00045 #endif