2007-06-06 09:42:06 +02:00
|
|
|
//===- Mips.td - Describe the Mips Target Machine ---------------*- 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
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
2007-08-18 04:18:07 +02:00
|
|
|
// This is the top level entry point for the Mips target.
|
|
|
|
//===----------------------------------------------------------------------===//
|
2007-06-06 09:42:06 +02:00
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
2007-08-18 04:18:07 +02:00
|
|
|
// Target-independent interfaces
|
2007-06-06 09:42:06 +02:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
include "../Target.td"
|
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
2007-08-18 04:18:07 +02:00
|
|
|
// Descriptions
|
2007-06-06 09:42:06 +02:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
include "MipsRegisterInfo.td"
|
2007-08-18 04:18:07 +02:00
|
|
|
include "MipsSchedule.td"
|
2007-06-06 09:42:06 +02:00
|
|
|
include "MipsInstrInfo.td"
|
2007-08-18 04:18:07 +02:00
|
|
|
include "MipsCallingConv.td"
|
2007-06-06 09:42:06 +02:00
|
|
|
|
|
|
|
def MipsInstrInfo : InstrInfo {
|
|
|
|
let TSFlagsFields = [];
|
|
|
|
let TSFlagsShifts = [];
|
|
|
|
}
|
2007-08-18 04:18:07 +02:00
|
|
|
|
2007-06-06 09:42:06 +02:00
|
|
|
//===----------------------------------------------------------------------===//
|
2007-08-18 04:18:07 +02:00
|
|
|
// CPU Directives //
|
2007-06-06 09:42:06 +02:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2007-11-06 04:15:20 +01:00
|
|
|
// Not currently supported, but work as SubtargetFeature placeholder.
|
2007-08-18 04:18:07 +02:00
|
|
|
def FeatureMipsIII : SubtargetFeature<"mips3", "IsMipsIII", "true",
|
|
|
|
"MipsIII ISA Support">;
|
2007-06-06 09:42:06 +02:00
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Mips processors supported.
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2007-11-06 04:15:20 +01:00
|
|
|
def : Processor<"mips1", MipsGenericItineraries, []>;
|
|
|
|
def : Processor<"r2000", MipsGenericItineraries, []>;
|
|
|
|
def : Processor<"r3000", MipsGenericItineraries, []>;
|
2007-06-06 09:42:06 +02:00
|
|
|
|
|
|
|
def Mips : Target {
|
|
|
|
let InstructionSet = MipsInstrInfo;
|
|
|
|
}
|
2007-08-18 04:18:07 +02:00
|
|
|
|