2009-08-02 19:32:10 +02:00
|
|
|
//===- BlackfinSubtarget.cpp - BLACKFIN Subtarget Information -------------===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2011-07-01 23:01:15 +02:00
|
|
|
// This file implements the blackfin specific subclass of TargetSubtargetInfo.
|
2009-08-02 19:32:10 +02:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "BlackfinSubtarget.h"
|
2011-07-09 07:47:46 +02:00
|
|
|
#include "Blackfin.h"
|
|
|
|
#include "llvm/Target/TargetRegistry.h"
|
2011-07-01 22:45:01 +02:00
|
|
|
|
|
|
|
#define GET_SUBTARGETINFO_TARGET_DESC
|
2011-07-08 03:53:10 +02:00
|
|
|
#define GET_SUBTARGETINFO_CTOR
|
2011-07-02 00:36:09 +02:00
|
|
|
#include "BlackfinGenSubtargetInfo.inc"
|
2009-08-02 19:32:10 +02:00
|
|
|
|
|
|
|
using namespace llvm;
|
|
|
|
|
2009-08-03 00:11:08 +02:00
|
|
|
BlackfinSubtarget::BlackfinSubtarget(const std::string &TT,
|
2011-06-30 03:53:36 +02:00
|
|
|
const std::string &CPU,
|
2009-08-02 20:27:36 +02:00
|
|
|
const std::string &FS)
|
2011-07-07 09:07:08 +02:00
|
|
|
: BlackfinGenSubtargetInfo(TT, CPU, FS), sdram(false),
|
2009-08-02 20:27:36 +02:00
|
|
|
icplb(false),
|
|
|
|
wa_mi_shift(false),
|
|
|
|
wa_csync(false),
|
|
|
|
wa_specld(false),
|
|
|
|
wa_mmr_stall(false),
|
|
|
|
wa_lcregs(false),
|
|
|
|
wa_hwloop(false),
|
|
|
|
wa_ind_call(false),
|
|
|
|
wa_killed_mmr(false),
|
|
|
|
wa_rets(false)
|
|
|
|
{
|
2011-06-30 03:53:36 +02:00
|
|
|
std::string CPUName = CPU;
|
|
|
|
if (CPUName.empty())
|
|
|
|
CPUName = "generic";
|
2009-08-02 19:32:10 +02:00
|
|
|
// Parse features string.
|
2011-07-07 09:07:08 +02:00
|
|
|
ParseSubtargetFeatures(CPUName, FS);
|
2009-08-02 19:32:10 +02:00
|
|
|
}
|