Analog Devices Blackfin back-end.
[oota-llvm.git] / lib / Target / Blackfin / Blackfin.td
1 //===- Blackfin.td - Describe the Blackfin 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 // Blackfin Subtarget features.
21 //===----------------------------------------------------------------------===//
22
23 def FeatureSSYNC : SubtargetFeature<"ssync","ssyncWorkaround", "true",
24                                     "Work around SSYNC bugs">;
25
26 //===----------------------------------------------------------------------===//
27 // Register File, Calling Conv, Instruction Descriptions
28 //===----------------------------------------------------------------------===//
29
30 include "BlackfinRegisterInfo.td"
31 include "BlackfinCallingConv.td"
32 include "BlackfinInstrInfo.td"
33
34 def BlackfinInstrInfo : InstrInfo {}
35
36 //===----------------------------------------------------------------------===//
37 // Blackfin processors supported.
38 //===----------------------------------------------------------------------===//
39
40 class Proc<string Name, list<SubtargetFeature> Features>
41  : Processor<Name, NoItineraries, Features>;
42
43 def : Proc<"generic", [FeatureSSYNC]>;
44
45 //===----------------------------------------------------------------------===//
46 // Declare the target which we are implementing
47 //===----------------------------------------------------------------------===//
48
49 def Blackfin : Target {
50   // Pull in Instruction Info:
51   let InstructionSet = BlackfinInstrInfo;
52 }