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