blob: 34405215686989102b7f685f9ba421665e34772d [file] [log] [blame]
Wesley Pecka70f28c2010-02-23 19:15:24 +00001//===- MBlazeSubtarget.cpp - MBlaze Subtarget Information -------*- C++ -*-===//
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 MBlaze specific subclass of TargetSubtarget.
11//
12//===----------------------------------------------------------------------===//
13
14#include "MBlazeSubtarget.h"
15#include "MBlaze.h"
16#include "MBlazeGenSubtarget.inc"
17#include "llvm/Support/CommandLine.h"
18using namespace llvm;
19
20MBlazeSubtarget::MBlazeSubtarget(const std::string &TT, const std::string &FS):
21 HasPipe3(false), HasBarrel(false), HasDiv(false), HasMul(false),
22 HasFSL(false), HasEFSL(false), HasMSRSet(false), HasException(false),
23 HasPatCmp(false), HasFPU(false), HasESR(false), HasPVR(false),
24 HasMul64(false), HasSqrt(false), HasMMU(false)
25{
26 std::string CPU = "v400";
27 MBlazeArchVersion = V400;
28
29 // Parse features string.
30 ParseSubtargetFeatures(FS, CPU);
31}