Fix the instruction table entries for AI1_adde_sube_s_irs multiclass definition so...
[oota-llvm.git] / lib / Target / PTX / PTX.td
1 //===- PTX.td - Describe the PTX Target Machine ---------------*- tblgen -*-==//
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 // This is the top level entry point for the PTX target.
10 //===----------------------------------------------------------------------===//
11
12 //===----------------------------------------------------------------------===//
13 // Target-independent interfaces
14 //===----------------------------------------------------------------------===//
15
16 include "llvm/Target/Target.td"
17
18 //===----------------------------------------------------------------------===//
19 // Subtarget Features.
20 //===----------------------------------------------------------------------===//
21
22 //===- Architectural Features ---------------------------------------------===//
23
24 def FeatureDouble : SubtargetFeature<"double", "SupportsDouble", "true",
25                                      "Do not demote .f64 to .f32">;
26
27 def Feature64Bit : SubtargetFeature<"64bit", "Use64BitAddresses", "true",
28                                     "Use 64-bit integer types for addresses.">;
29
30 //===- PTX Version --------------------------------------------------------===//
31
32 def FeaturePTX20 : SubtargetFeature<"ptx20", "PTXVersion", "PTX_VERSION_2_0",
33                                     "Use PTX Language Version 2.0",
34                                     []>;
35
36 def FeaturePTX21 : SubtargetFeature<"ptx21", "PTXVersion", "PTX_VERSION_2_1",
37                                     "Use PTX Language Version 2.1",
38                                     [FeaturePTX20]>;
39
40 def FeaturePTX22 : SubtargetFeature<"ptx22", "PTXVersion", "PTX_VERSION_2_2",
41                                     "Use PTX Language Version 2.2",
42                                     [FeaturePTX21]>;
43
44 //===- PTX Shader Model ---------------------------------------------------===//
45
46 def FeatureSM10 : SubtargetFeature<"sm10", "PTXShaderModel", "PTX_SM_1_0",
47                                    "Enable Shader Model 1.0 compliance">;
48 def FeatureSM13 : SubtargetFeature<"sm13", "PTXShaderModel", "PTX_SM_1_3",
49                                    "Enable Shader Model 1.3 compliance",
50                                    [FeatureSM10, FeatureDouble]>;
51 def FeatureSM20 : SubtargetFeature<"sm20", "PTXShaderModel", "PTX_SM_2_0",
52                                    "Enable Shader Model 2.0 compliance",
53                                    [FeatureSM13]>;
54
55 //===----------------------------------------------------------------------===//
56 // PTX supported processors.
57 //===----------------------------------------------------------------------===//
58
59 class Proc<string Name, list<SubtargetFeature> Features>
60   : Processor<Name, NoItineraries, Features>;
61
62 def : Proc<"generic", []>;
63
64 //===----------------------------------------------------------------------===//
65 // Register File Description
66 //===----------------------------------------------------------------------===//
67
68 include "PTXRegisterInfo.td"
69
70 //===----------------------------------------------------------------------===//
71 // Instruction Descriptions
72 //===----------------------------------------------------------------------===//
73
74 include "PTXInstrInfo.td"
75
76 def PTXInstrInfo : InstrInfo;
77
78 //===----------------------------------------------------------------------===//
79 // Target Declaration
80 //===----------------------------------------------------------------------===//
81
82 def PTX : Target {
83   let InstructionSet = PTXInstrInfo;
84 }