Bruno Cardoso Lopes | 972f589 | 2007-06-06 07:42:06 +0000 | [diff] [blame] | 1 | //===- 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 | |
| 14 | include "../Target.td" |
| 15 | |
| 16 | //===----------------------------------------------------------------------===// |
| 17 | // Register File Description |
| 18 | //===----------------------------------------------------------------------===// |
| 19 | |
| 20 | include "MipsRegisterInfo.td" |
| 21 | |
| 22 | //===----------------------------------------------------------------------===// |
| 23 | // Subtarget features |
| 24 | //===----------------------------------------------------------------------===// |
| 25 | |
| 26 | // TODO: dummy, needed to compile |
| 27 | def FeatureCIX : SubtargetFeature<"r3000", "isR3000", "true", |
| 28 | "Enable r3000 extentions">; |
| 29 | |
| 30 | //===----------------------------------------------------------------------===// |
| 31 | // Instruction Description |
| 32 | //===----------------------------------------------------------------------===// |
| 33 | |
| 34 | include "MipsInstrInfo.td" |
| 35 | |
| 36 | def 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 | |
| 45 | include "MipsCallingConv.td" |
| 46 | |
| 47 | //===----------------------------------------------------------------------===// |
| 48 | // Mips processors supported. |
| 49 | //===----------------------------------------------------------------------===// |
| 50 | |
| 51 | class Proc<string Name, list<SubtargetFeature> Features> |
| 52 | : Processor<Name, NoItineraries, Features>; |
| 53 | |
| 54 | def : Proc<"generic", []>; |
| 55 | |
| 56 | //===----------------------------------------------------------------------===// |
| 57 | // Declare the target which we are implementing |
| 58 | //===----------------------------------------------------------------------===// |
| 59 | |
| 60 | def Mips : Target { |
| 61 | // Pull in Instruction Info: |
| 62 | let InstructionSet = MipsInstrInfo; |
| 63 | } |