Now with fewer extraneous semicolons!
[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 def FeatureSM20 : SubtargetFeature<"sm20", "is_sm20", "true",
23                                    "Enable sm_20 target architecture">;
24
25 //===----------------------------------------------------------------------===//
26 // PTX supported processors.
27 //===----------------------------------------------------------------------===//
28
29 class Proc<string Name, list<SubtargetFeature> Features>
30   : Processor<Name, NoItineraries, Features>;
31
32 def : Proc<"generic", []>;
33
34 //===----------------------------------------------------------------------===//
35 // Register File Description
36 //===----------------------------------------------------------------------===//
37
38 include "PTXRegisterInfo.td"
39
40 //===----------------------------------------------------------------------===//
41 // Instruction Descriptions
42 //===----------------------------------------------------------------------===//
43
44 include "PTXInstrInfo.td"
45
46 def PTXInstrInfo : InstrInfo;
47
48 //===----------------------------------------------------------------------===//
49 // Target Declaration
50 //===----------------------------------------------------------------------===//
51
52 def PTX : Target {
53   let InstructionSet = PTXInstrInfo;
54 }