2007-06-06 09:42:06 +02:00
|
|
|
//===- MipsSubtarget.cpp - Mips Subtarget Information -----------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2007-12-29 21:36:04 +01:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
2007-06-06 09:42:06 +02: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 04:18:07 +02:00
|
|
|
const std::string &FS) :
|
|
|
|
IsMipsIII(false)
|
2007-06-06 09:42:06 +02:00
|
|
|
{
|
2007-11-06 04:15:20 +01:00
|
|
|
std::string CPU = "mips1";
|
2007-06-06 09:42:06 +02:00
|
|
|
|
|
|
|
// Parse features string.
|
|
|
|
ParseSubtargetFeatures(FS, CPU);
|
|
|
|
}
|