zpu: wip eke out some simple instructions for load/store/add
[llvm/zpu.git] / lib / Target / PTX / PTX.td
blob8b1a1b18da541339f8afb72c356cf1d71ba99a4b
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 //===----------------------------------------------------------------------===//
12 //===----------------------------------------------------------------------===//
13 // Target-independent interfaces
14 //===----------------------------------------------------------------------===//
16 include "llvm/Target/Target.td"
18 //===----------------------------------------------------------------------===//
19 // Subtarget Features.
20 //===----------------------------------------------------------------------===//
22 def FeatureSM20 : SubtargetFeature<"sm20", "is_sm20", "true",
23                                    "Enable sm_20 target architecture">;
25 //===----------------------------------------------------------------------===//
26 // PTX supported processors.
27 //===----------------------------------------------------------------------===//
29 class Proc<string Name, list<SubtargetFeature> Features>
30   : Processor<Name, NoItineraries, Features>;
32 def : Proc<"generic", []>;
34 //===----------------------------------------------------------------------===//
35 // Register File Description
36 //===----------------------------------------------------------------------===//
38 include "PTXRegisterInfo.td"
40 //===----------------------------------------------------------------------===//
41 // Instruction Descriptions
42 //===----------------------------------------------------------------------===//
44 include "PTXInstrInfo.td"
46 def PTXInstrInfo : InstrInfo;
48 //===----------------------------------------------------------------------===//
49 // Target Declaration
50 //===----------------------------------------------------------------------===//
52 def PTX : Target {
53   let InstructionSet = PTXInstrInfo;