1 //===- Sparc.td - Describe the Sparc Target Machine -------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file was developed by the LLVM research group and is distributed under
6 // the University of Illinois Open Source License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 //===----------------------------------------------------------------------===//
13 //===----------------------------------------------------------------------===//
14 // Target-independent interfaces which we are implementing
15 //===----------------------------------------------------------------------===//
17 include "../Target.td"
19 //===----------------------------------------------------------------------===//
20 // SPARC Subtarget features.
24 : SubtargetFeature<"v9", "IsV9", "true",
25 "Enable SPARC-V9 instructions">;
26 def FeatureV8Deprecated
27 : SubtargetFeature<"deprecated-v8", "V8DeprecatedInsts", "true",
28 "Enable deprecated V8 instructions in V9 mode">;
30 : SubtargetFeature<"vis", "IsVIS", "true",
31 "Enable UltraSPARC Visual Instruction Set extensions">;
33 //===----------------------------------------------------------------------===//
34 // Register File Description
35 //===----------------------------------------------------------------------===//
37 include "SparcRegisterInfo.td"
39 //===----------------------------------------------------------------------===//
40 // Instruction Descriptions
41 //===----------------------------------------------------------------------===//
43 include "SparcInstrInfo.td"
45 def SparcInstrInfo : InstrInfo {
46 // Define how we want to layout our target-specific information field.
47 let TSFlagsFields = [];
48 let TSFlagsShifts = [];
51 //===----------------------------------------------------------------------===//
52 // SPARC processors supported.
53 //===----------------------------------------------------------------------===//
55 class Proc<string Name, list<SubtargetFeature> Features>
56 : Processor<Name, NoItineraries, Features>;
58 def : Proc<"generic", []>;
60 def : Proc<"supersparc", []>;
61 def : Proc<"sparclite", []>;
62 def : Proc<"f934", []>;
63 def : Proc<"hypersparc", []>;
64 def : Proc<"sparclite86x", []>;
65 def : Proc<"sparclet", []>;
66 def : Proc<"tsc701", []>;
67 def : Proc<"v9", [FeatureV9]>;
68 def : Proc<"ultrasparc", [FeatureV9, FeatureV8Deprecated]>;
69 def : Proc<"ultrasparc3", [FeatureV9, FeatureV8Deprecated]>;
70 def : Proc<"ultrasparc3-vis", [FeatureV9, FeatureV8Deprecated, FeatureVIS]>;
73 //===----------------------------------------------------------------------===//
74 // Declare the target which we are implementing
75 //===----------------------------------------------------------------------===//
78 // Pull in Instruction Info:
79 let InstructionSet = SparcInstrInfo;