zpu: managed to compile program that writes constant to global variable
[llvm/zpu.git] / lib / Target / MBlaze / MBlazeSubtarget.cpp
blob34405215686989102b7f685f9ba421665e34772d
1 //===- 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.
12 //===----------------------------------------------------------------------===//
14 #include "MBlazeSubtarget.h"
15 #include "MBlaze.h"
16 #include "MBlazeGenSubtarget.inc"
17 #include "llvm/Support/CommandLine.h"
18 using namespace llvm;
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);