MBlazeSubtarget.cpp revision a70f28ce7dc85d0075a7d86da5d7987b6e306bc6
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" 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} 32