support for Schedule included on Mips.td

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41159 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bruno Cardoso Lopes
2007-08-18 02:18:07 +00:00
parent 7ff6fa2503
commit 6d32ca0762
2 changed files with 15 additions and 28 deletions

View File

@ -6,58 +6,44 @@
// University of Illinois Open Source License. See LICENSE.TXT for details. // University of Illinois Open Source License. See LICENSE.TXT for details.
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// This is the top level entry point for the Mips target.
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// Target-independent interfaces which we are implementing // Target-independent interfaces
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
include "../Target.td" include "../Target.td"
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// Register File Description // Descriptions
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
include "MipsRegisterInfo.td" include "MipsRegisterInfo.td"
include "MipsSchedule.td"
//===----------------------------------------------------------------------===//
// Subtarget features
//===----------------------------------------------------------------------===//
// TODO: dummy, needed to compile
def FeatureCIX : SubtargetFeature<"r3000", "isR3000", "true",
"Enable r3000 extentions">;
//===----------------------------------------------------------------------===//
// Instruction Description
//===----------------------------------------------------------------------===//
include "MipsInstrInfo.td" include "MipsInstrInfo.td"
include "MipsCallingConv.td"
def MipsInstrInfo : InstrInfo { def MipsInstrInfo : InstrInfo {
// Define how we want to layout our target-specific information field.
let TSFlagsFields = []; let TSFlagsFields = [];
let TSFlagsShifts = []; let TSFlagsShifts = [];
} }
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// Calling Conventions // CPU Directives //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
include "MipsCallingConv.td" def FeatureMipsIII : SubtargetFeature<"mips3", "IsMipsIII", "true",
"MipsIII ISA Support">;
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// Mips processors supported. // Mips processors supported.
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
class Proc<string Name, list<SubtargetFeature> Features> def : Processor<"generic", MipsGenericItineraries, []>;
: Processor<Name, NoItineraries, Features>; //def : Processor<"r4000", MipsR4000Itineraries, [FeatureMipsIII]>;
def : Proc<"generic", []>;
//===----------------------------------------------------------------------===//
// Declare the target which we are implementing
//===----------------------------------------------------------------------===//
def Mips : Target { def Mips : Target {
// Pull in Instruction Info:
let InstructionSet = MipsInstrInfo; let InstructionSet = MipsInstrInfo;
} }

View File

@ -17,7 +17,8 @@
using namespace llvm; using namespace llvm;
MipsSubtarget::MipsSubtarget(const TargetMachine &TM, const Module &M, MipsSubtarget::MipsSubtarget(const TargetMachine &TM, const Module &M,
const std::string &FS) : isR3000(false) const std::string &FS) :
IsMipsIII(false)
{ {
std::string CPU = "generic"; std::string CPU = "generic";