blob: 925d782d988be8a56f810bb452de486fc5027eb3 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001//===- Sparc.td - Describe the Sparc Target Machine -------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
Chris Lattner081ce942007-12-29 20:36:04 +00005// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007//
8//===----------------------------------------------------------------------===//
9//
10//
11//===----------------------------------------------------------------------===//
12
13//===----------------------------------------------------------------------===//
14// Target-independent interfaces which we are implementing
15//===----------------------------------------------------------------------===//
16
Evan Cheng301aaf52008-11-24 07:34:46 +000017include "llvm/Target/Target.td"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018
19//===----------------------------------------------------------------------===//
20// SPARC Subtarget features.
21//
22
23def FeatureV9
24 : SubtargetFeature<"v9", "IsV9", "true",
25 "Enable SPARC-V9 instructions">;
26def FeatureV8Deprecated
27 : SubtargetFeature<"deprecated-v8", "V8DeprecatedInsts", "true",
28 "Enable deprecated V8 instructions in V9 mode">;
29def FeatureVIS
30 : SubtargetFeature<"vis", "IsVIS", "true",
31 "Enable UltraSPARC Visual Instruction Set extensions">;
32
33//===----------------------------------------------------------------------===//
Chris Lattnerc9d7b7d2008-03-17 05:41:48 +000034// Register File, Calling Conv, Instruction Descriptions
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035//===----------------------------------------------------------------------===//
36
37include "SparcRegisterInfo.td"
Chris Lattnerc9d7b7d2008-03-17 05:41:48 +000038include "SparcCallingConv.td"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000039include "SparcInstrInfo.td"
40
Jakob Stoklund Olesen4f8ea292010-04-05 03:10:20 +000041def SparcInstrInfo : InstrInfo;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000042
43//===----------------------------------------------------------------------===//
44// SPARC processors supported.
45//===----------------------------------------------------------------------===//
46
47class Proc<string Name, list<SubtargetFeature> Features>
48 : Processor<Name, NoItineraries, Features>;
49
50def : Proc<"generic", []>;
51def : Proc<"v8", []>;
52def : Proc<"supersparc", []>;
53def : Proc<"sparclite", []>;
54def : Proc<"f934", []>;
55def : Proc<"hypersparc", []>;
56def : Proc<"sparclite86x", []>;
57def : Proc<"sparclet", []>;
58def : Proc<"tsc701", []>;
59def : Proc<"v9", [FeatureV9]>;
60def : Proc<"ultrasparc", [FeatureV9, FeatureV8Deprecated]>;
61def : Proc<"ultrasparc3", [FeatureV9, FeatureV8Deprecated]>;
62def : Proc<"ultrasparc3-vis", [FeatureV9, FeatureV8Deprecated, FeatureVIS]>;
63
64
65//===----------------------------------------------------------------------===//
66// Declare the target which we are implementing
67//===----------------------------------------------------------------------===//
68
69def Sparc : Target {
70 // Pull in Instruction Info:
71 let InstructionSet = SparcInstrInfo;
72}