1 //===- MBlazeSubtarget.cpp - MBlaze Subtarget Information -------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file implements the MBlaze specific subclass of TargetSubtarget.
12 //===----------------------------------------------------------------------===//
14 #include "MBlazeSubtarget.h"
16 #include "MBlazeGenSubtarget.inc"
17 #include "llvm/Support/CommandLine.h"
20 MBlazeSubtarget::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)
26 std::string CPU
= "v400";
27 MBlazeArchVersion
= V400
;
29 // Parse features string.
30 ParseSubtargetFeatures(FS
, CPU
);