Change the default of AsmWriterClassName and isMCAsmWriter.
[oota-llvm.git] / lib / Target / Sparc / Sparc.td
1 //===-- Sparc.td - Describe the Sparc Target Machine -------*- tablegen -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 //
11 //===----------------------------------------------------------------------===//
12
13 //===----------------------------------------------------------------------===//
14 // Target-independent interfaces which we are implementing
15 //===----------------------------------------------------------------------===//
16
17 include "llvm/Target/Target.td"
18
19 //===----------------------------------------------------------------------===//
20 // SPARC Subtarget features.
21 //
22
23 def FeatureV9
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">;
29 def FeatureVIS
30   : SubtargetFeature<"vis", "IsVIS", "true",
31                      "Enable UltraSPARC Visual Instruction Set extensions">;
32
33 def FeatureHardQuad
34   : SubtargetFeature<"hard-quad-float", "HasHardQuad", "true",
35                      "Enable quad-word floating point instructions">;
36
37 //===----------------------------------------------------------------------===//
38 // Register File, Calling Conv, Instruction Descriptions
39 //===----------------------------------------------------------------------===//
40
41 include "SparcRegisterInfo.td"
42 include "SparcCallingConv.td"
43 include "SparcInstrInfo.td"
44
45 def SparcInstrInfo : InstrInfo;
46
47 //===----------------------------------------------------------------------===//
48 // SPARC processors supported.
49 //===----------------------------------------------------------------------===//
50
51 class Proc<string Name, list<SubtargetFeature> Features>
52  : Processor<Name, NoItineraries, Features>;
53
54 def : Proc<"generic",         []>;
55 def : Proc<"v8",              []>;
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]>;
67
68
69 def SparcAsmWriter : AsmWriter {
70   string AsmWriterClassName  = "AsmPrinter";
71   bit isMCAsmWriter = 0;
72 }
73
74 //===----------------------------------------------------------------------===//
75 // Declare the target which we are implementing
76 //===----------------------------------------------------------------------===//
77
78 def Sparc : Target {
79   // Pull in Instruction Info:
80   let InstructionSet = SparcInstrInfo;
81
82   let AssemblyWriters = [SparcAsmWriter];
83 }