blob: 8beb3fb8953733366a943ec22357f85aa3da3f19 [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 Lopes57d896c2007-08-18 02:18:07 +000036def FeatureMipsIII : SubtargetFeature<"mips3", "IsMipsIII", "true",
37 "MipsIII ISA Support">;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000038
39//===----------------------------------------------------------------------===//
40// Mips processors supported.
41//===----------------------------------------------------------------------===//
42
Bruno Cardoso Lopes57d896c2007-08-18 02:18:07 +000043def : Processor<"generic", MipsGenericItineraries, []>;
44//def : Processor<"r4000", MipsR4000Itineraries, [FeatureMipsIII]>;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000045
46def Mips : Target {
Dan Gohmanf17a25c2007-07-18 16:29:46 +000047 let InstructionSet = MipsInstrInfo;
48}
Bruno Cardoso Lopes57d896c2007-08-18 02:18:07 +000049