blob: 2bfb82a3100aa3c4c5658994cc690648c55642c0 [file] [log] [blame]
Bruno Cardoso Lopes972f5892007-06-06 07:42:06 +00001//===- MipsSubtarget.cpp - Mips Subtarget Information -----------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
Chris Lattner4ee451d2007-12-29 20:36:04 +00005// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
Bruno Cardoso Lopes972f5892007-06-06 07:42:06 +00007//
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,
Bruno Cardoso Lopesd2947ee2008-06-04 01:45:25 +000020 const std::string &FS, bool little) :
21 IsMipsIII(false),
22 IsLittle(little)
Bruno Cardoso Lopes972f5892007-06-06 07:42:06 +000023{
Bruno Cardoso Lopes000604a2007-11-06 03:15:20 +000024 std::string CPU = "mips1";
Bruno Cardoso Lopes972f5892007-06-06 07:42:06 +000025
26 // Parse features string.
27 ParseSubtargetFeatures(FS, CPU);
28}