1 //===- ARM.td - Describe the ARM Target Machine -----------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 //===----------------------------------------------------------------------===//
13 //===----------------------------------------------------------------------===//
14 // Target-independent interfaces which we are implementing
15 //===----------------------------------------------------------------------===//
17 include "llvm/Target/Target.td"
19 //===----------------------------------------------------------------------===//
20 // ARM Subtarget features.
23 def ArchV4T : SubtargetFeature<"v4t", "ARMArchVersion", "V4T",
25 def ArchV5T : SubtargetFeature<"v5t", "ARMArchVersion", "V5T",
27 def ArchV5TE : SubtargetFeature<"v5te", "ARMArchVersion", "V5TE",
28 "ARM v5TE, v5TEj, v5TExp">;
29 def ArchV6 : SubtargetFeature<"v6", "ARMArchVersion", "V6",
31 def FeatureVFP2 : SubtargetFeature<"vfp2", "HasVFP2", "true",
32 "Enable VFP2 instructions ">;
34 //===----------------------------------------------------------------------===//
35 // ARM Processors supported.
38 class Proc<string Name, list<SubtargetFeature> Features>
39 : Processor<Name, NoItineraries, Features>;
42 def : Proc<"generic", []>;
43 def : Proc<"arm8", []>;
44 def : Proc<"arm810", []>;
45 def : Proc<"strongarm", []>;
46 def : Proc<"strongarm110", []>;
47 def : Proc<"strongarm1100", []>;
48 def : Proc<"strongarm1110", []>;
51 def : Proc<"arm7tdmi", [ArchV4T]>;
52 def : Proc<"arm7tdmi-s", [ArchV4T]>;
53 def : Proc<"arm710t", [ArchV4T]>;
54 def : Proc<"arm720t", [ArchV4T]>;
55 def : Proc<"arm9", [ArchV4T]>;
56 def : Proc<"arm9tdmi", [ArchV4T]>;
57 def : Proc<"arm920", [ArchV4T]>;
58 def : Proc<"arm920t", [ArchV4T]>;
59 def : Proc<"arm922t", [ArchV4T]>;
60 def : Proc<"arm940t", [ArchV4T]>;
61 def : Proc<"ep9312", [ArchV4T]>;
64 def : Proc<"arm10tdmi", [ArchV5T]>;
65 def : Proc<"arm1020t", [ArchV5T]>;
68 def : Proc<"arm9e", [ArchV5TE]>;
69 def : Proc<"arm926ej-s", [ArchV5TE]>;
70 def : Proc<"arm946e-s", [ArchV5TE]>;
71 def : Proc<"arm966e-s", [ArchV5TE]>;
72 def : Proc<"arm968e-s", [ArchV5TE]>;
73 def : Proc<"arm10e", [ArchV5TE]>;
74 def : Proc<"arm1020e", [ArchV5TE]>;
75 def : Proc<"arm1022e", [ArchV5TE]>;
76 def : Proc<"xscale", [ArchV5TE]>;
77 def : Proc<"iwmmxt", [ArchV5TE]>;
80 def : Proc<"arm1136j-s", [ArchV6]>;
81 def : Proc<"arm1136jf-s", [ArchV6, FeatureVFP2]>;
82 def : Proc<"arm1176jz-s", [ArchV6]>;
83 def : Proc<"arm1176jzf-s", [ArchV6, FeatureVFP2]>;
84 def : Proc<"mpcorenovfp", [ArchV6]>;
85 def : Proc<"mpcore", [ArchV6, FeatureVFP2]>;
87 //===----------------------------------------------------------------------===//
88 // Register File Description
89 //===----------------------------------------------------------------------===//
91 include "ARMRegisterInfo.td"
93 include "ARMCallingConv.td"
95 //===----------------------------------------------------------------------===//
96 // Instruction Descriptions
97 //===----------------------------------------------------------------------===//
99 include "ARMInstrInfo.td"
101 def ARMInstrInfo : InstrInfo {
102 // Define how we want to layout our target-specific information field.
103 let TSFlagsFields = ["AddrModeBits",
108 let TSFlagsShifts = [0,
115 //===----------------------------------------------------------------------===//
116 // Declare the target which we are implementing
117 //===----------------------------------------------------------------------===//
120 // Pull in Instruction Info:
121 let InstructionSet = ARMInstrInfo;