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