Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 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. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #include "MBlazeSubtarget.h" |
| 15 | #include "MBlaze.h" |
| 16 | #include "MBlazeGenSubtarget.inc" |
| 17 | #include "llvm/Support/CommandLine.h" |
| 18 | using namespace llvm; |
| 19 | |
| 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) |
| 25 | { |
| 26 | std::string CPU = "v400"; |
| 27 | MBlazeArchVersion = V400; |
| 28 | |
| 29 | // Parse features string. |
| 30 | ParseSubtargetFeatures(FS, CPU); |
| 31 | } |