1 //===- Sparc.td - Describe the Sparc Target Machine -------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 //===----------------------------------------------------------------------===//
13 //===----------------------------------------------------------------------===//
14 // Target-independent interfaces which we are implementing
15 //===----------------------------------------------------------------------===//
17 include "llvm/Target/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, Calling Conv, Instruction Descriptions
35 //===----------------------------------------------------------------------===//
37 include "SparcRegisterInfo.td"
38 include "SparcCallingConv.td"
39 include "SparcInstrInfo.td"
41 def SparcInstrInfo : InstrInfo {
42 // Define how we want to layout our target-specific information field.
43 let TSFlagsFields = [];
44 let TSFlagsShifts = [];
47 //===----------------------------------------------------------------------===//
48 // SPARC processors supported.
49 //===----------------------------------------------------------------------===//
51 class Proc<string Name, list<SubtargetFeature> Features>
52 : Processor<Name, NoItineraries, Features>;
54 def : Proc<"generic", []>;
56 def : Proc<"supersparc", []>;
57 def : Proc<"sparclite", []>;
58 def : Proc<"f934", []>;
59 def : Proc<"hypersparc", []>;
60 def : Proc<"sparclite86x", []>;
61 def : Proc<"sparclet", []>;
62 def : Proc<"tsc701", []>;
63 def : Proc<"v9", [FeatureV9]>;
64 def : Proc<"ultrasparc", [FeatureV9, FeatureV8Deprecated]>;
65 def : Proc<"ultrasparc3", [FeatureV9, FeatureV8Deprecated]>;
66 def : Proc<"ultrasparc3-vis", [FeatureV9, FeatureV8Deprecated, FeatureVIS]>;
69 //===----------------------------------------------------------------------===//
70 // Declare the target which we are implementing
71 //===----------------------------------------------------------------------===//
74 // Pull in Instruction Info:
75 let InstructionSet = SparcInstrInfo;