2007-06-06 07:42:06 +00:00
|
|
|
//===- MipsSubtarget.cpp - Mips Subtarget Information -----------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2007-12-29 20:36:04 +00:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
2007-06-06 07:42:06 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file implements the Mips specific subclass of TargetSubtarget.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "MipsSubtarget.h"
|
|
|
|
#include "Mips.h"
|
|
|
|
#include "MipsGenSubtarget.inc"
|
|
|
|
using namespace llvm;
|
|
|
|
|
|
|
|
MipsSubtarget::MipsSubtarget(const TargetMachine &TM, const Module &M,
|
2007-08-18 02:18:07 +00:00
|
|
|
const std::string &FS) :
|
|
|
|
IsMipsIII(false)
|
2007-06-06 07:42:06 +00:00
|
|
|
{
|
2007-11-06 03:15:20 +00:00
|
|
|
std::string CPU = "mips1";
|
2007-06-06 07:42:06 +00:00
|
|
|
|
|
|
|
// Parse features string.
|
|
|
|
ParseSubtargetFeatures(FS, CPU);
|
|
|
|
}
|