blob: 662bc3b85d8572393abc7eefce8162c821de5e1b [file] [log] [blame]
Bruno Cardoso Lopes972f5892007-06-06 07:42:06 +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//===----------------------------------------------------------------------===//
9
10//===----------------------------------------------------------------------===//
11// Target-independent interfaces which we are implementing
12//===----------------------------------------------------------------------===//
13
14include "../Target.td"
15
16//===----------------------------------------------------------------------===//
17// Register File Description
18//===----------------------------------------------------------------------===//
19
20include "MipsRegisterInfo.td"
21
22//===----------------------------------------------------------------------===//
23// Subtarget features
24//===----------------------------------------------------------------------===//
25
26// TODO: dummy, needed to compile
27def FeatureCIX : SubtargetFeature<"r3000", "isR3000", "true",
28 "Enable r3000 extentions">;
29
30//===----------------------------------------------------------------------===//
31// Instruction Description
32//===----------------------------------------------------------------------===//
33
34include "MipsInstrInfo.td"
35
36def MipsInstrInfo : InstrInfo {
37 // Define how we want to layout our target-specific information field.
38 let TSFlagsFields = [];
39 let TSFlagsShifts = [];
40}
41//===----------------------------------------------------------------------===//
42// Calling Conventions
43//===----------------------------------------------------------------------===//
44
45include "MipsCallingConv.td"
46
47//===----------------------------------------------------------------------===//
48// Mips processors supported.
49//===----------------------------------------------------------------------===//
50
51class Proc<string Name, list<SubtargetFeature> Features>
52 : Processor<Name, NoItineraries, Features>;
53
54def : Proc<"generic", []>;
55
56//===----------------------------------------------------------------------===//
57// Declare the target which we are implementing
58//===----------------------------------------------------------------------===//
59
60def Mips : Target {
61 // Pull in Instruction Info:
62 let InstructionSet = MipsInstrInfo;
63}