MipsSubtarget.cpp revision d2947ee33e810b24a016b944b375d34910f8f5dd
1//===- MipsSubtarget.cpp - Mips 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 Mips specific subclass of TargetSubtarget.
11//
12//===----------------------------------------------------------------------===//
13
14#include "MipsSubtarget.h"
15#include "Mips.h"
16#include "MipsGenSubtarget.inc"
17using namespace llvm;
18
19MipsSubtarget::MipsSubtarget(const TargetMachine &TM, const Module &M,
20                             const std::string &FS, bool little) :
21  IsMipsIII(false),
22  IsLittle(little)
23{
24  std::string CPU = "mips1";
25
26  // Parse features string.
27  ParseSubtargetFeatures(FS, CPU);
28}
29