blob: c4b40e24f758d81c54511f061853f6645e95b478 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001//===- Mips.td - Describe the Mips Target Machine ---------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file was developed by Bruno Cardoso Lopes and is distributed under the
6// University of Illinois Open Source License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
Bruno Cardoso Lopes57d896c2007-08-18 02:18:07 +00009// This is the top level entry point for the Mips target.
10//===----------------------------------------------------------------------===//
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011
12//===----------------------------------------------------------------------===//
Bruno Cardoso Lopes57d896c2007-08-18 02:18:07 +000013// Target-independent interfaces
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014//===----------------------------------------------------------------------===//
15
16include "../Target.td"
17
18//===----------------------------------------------------------------------===//
Bruno Cardoso Lopes57d896c2007-08-18 02:18:07 +000019// Descriptions
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020//===----------------------------------------------------------------------===//
21
22include "MipsRegisterInfo.td"
Bruno Cardoso Lopes57d896c2007-08-18 02:18:07 +000023include "MipsSchedule.td"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024include "MipsInstrInfo.td"
Bruno Cardoso Lopes57d896c2007-08-18 02:18:07 +000025include "MipsCallingConv.td"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026
27def MipsInstrInfo : InstrInfo {
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028 let TSFlagsFields = [];
29 let TSFlagsShifts = [];
30}
Bruno Cardoso Lopes57d896c2007-08-18 02:18:07 +000031
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032//===----------------------------------------------------------------------===//
Bruno Cardoso Lopes57d896c2007-08-18 02:18:07 +000033// CPU Directives //
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034//===----------------------------------------------------------------------===//
35
Bruno Cardoso Lopes0ec193d2007-11-06 03:15:20 +000036// Not currently supported, but work as SubtargetFeature placeholder.
Bruno Cardoso Lopes57d896c2007-08-18 02:18:07 +000037def FeatureMipsIII : SubtargetFeature<"mips3", "IsMipsIII", "true",
38 "MipsIII ISA Support">;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000039
40//===----------------------------------------------------------------------===//
41// Mips processors supported.
42//===----------------------------------------------------------------------===//
43
Bruno Cardoso Lopes0ec193d2007-11-06 03:15:20 +000044def : Processor<"mips1", MipsGenericItineraries, []>;
45def : Processor<"r2000", MipsGenericItineraries, []>;
46def : Processor<"r3000", MipsGenericItineraries, []>;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000047
48def Mips : Target {
Dan Gohmanf17a25c2007-07-18 16:29:46 +000049 let InstructionSet = MipsInstrInfo;
50}
Bruno Cardoso Lopes57d896c2007-08-18 02:18:07 +000051