aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/MBlaze/MBlazeSubtarget.cpp
blob: 34405215686989102b7f685f9ba421665e34772d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//===- MBlazeSubtarget.cpp - MBlaze Subtarget Information -------*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file implements the MBlaze specific subclass of TargetSubtarget.
//
//===----------------------------------------------------------------------===//

#include "MBlazeSubtarget.h"
#include "MBlaze.h"
#include "MBlazeGenSubtarget.inc"
#include "llvm/Support/CommandLine.h"
using namespace llvm;

MBlazeSubtarget::MBlazeSubtarget(const std::string &TT, const std::string &FS):
  HasPipe3(false), HasBarrel(false), HasDiv(false), HasMul(false),
  HasFSL(false), HasEFSL(false), HasMSRSet(false), HasException(false),
  HasPatCmp(false), HasFPU(false), HasESR(false), HasPVR(false),
  HasMul64(false), HasSqrt(false), HasMMU(false)
{
  std::string CPU = "v400";
  MBlazeArchVersion = V400;

  // Parse features string.
  ParseSubtargetFeatures(FS, CPU);
}