| Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 1 | //=- AArch64.td - Describe the AArch64 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 | //===----------------------------------------------------------------------===// | 
| Pankaj Gode | a67fea4 | 2016-06-15 17:24:52 +0000 | [diff] [blame] | 14 | // Target-independent interfaces which we are implementing. | 
| Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 15 | //===----------------------------------------------------------------------===// | 
|  | 16 |  | 
|  | 17 | include "llvm/Target/Target.td" | 
|  | 18 |  | 
|  | 19 | //===----------------------------------------------------------------------===// | 
|  | 20 | // AArch64 Subtarget features. | 
|  | 21 | // | 
|  | 22 |  | 
|  | 23 | def FeatureFPARMv8 : SubtargetFeature<"fp-armv8", "HasFPARMv8", "true", | 
|  | 24 | "Enable ARMv8 FP">; | 
|  | 25 |  | 
|  | 26 | def FeatureNEON : SubtargetFeature<"neon", "HasNEON", "true", | 
|  | 27 | "Enable Advanced SIMD instructions", [FeatureFPARMv8]>; | 
|  | 28 |  | 
|  | 29 | def FeatureCrypto : SubtargetFeature<"crypto", "HasCrypto", "true", | 
|  | 30 | "Enable cryptographic instructions">; | 
|  | 31 |  | 
|  | 32 | def FeatureCRC : SubtargetFeature<"crc", "HasCRC", "true", | 
|  | 33 | "Enable ARMv8 CRC-32 checksum instructions">; | 
|  | 34 |  | 
| Sjoerd Meijer | d906bf1 | 2016-06-03 14:03:27 +0000 | [diff] [blame] | 35 | def FeatureRAS : SubtargetFeature<"ras", "HasRAS", "true", | 
|  | 36 | "Enable ARMv8 Reliability, Availability and Serviceability Extensions">; | 
|  | 37 |  | 
| Ahmed Bougacha | b0ff643 | 2015-09-01 16:23:45 +0000 | [diff] [blame] | 38 | def FeaturePerfMon : SubtargetFeature<"perfmon", "HasPerfMon", "true", | 
|  | 39 | "Enable ARMv8 PMUv3 Performance Monitors extension">; | 
|  | 40 |  | 
| Oliver Stannard | 7cc0c4e | 2015-11-26 15:23:32 +0000 | [diff] [blame] | 41 | def FeatureFullFP16 : SubtargetFeature<"fullfp16", "HasFullFP16", "true", | 
|  | 42 | "Full FP16", [FeatureFPARMv8]>; | 
|  | 43 |  | 
| Oliver Stannard | a34e470 | 2015-12-01 10:48:51 +0000 | [diff] [blame] | 44 | def FeatureSPE : SubtargetFeature<"spe", "HasSPE", "true", | 
|  | 45 | "Enable Statistical Profiling extension">; | 
|  | 46 |  | 
| Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 47 | /// Cyclone has register move instructions which are "free". | 
|  | 48 | def FeatureZCRegMove : SubtargetFeature<"zcm", "HasZeroCycleRegMove", "true", | 
|  | 49 | "Has zero-cycle register moves">; | 
|  | 50 |  | 
|  | 51 | /// Cyclone has instructions which zero registers for "free". | 
|  | 52 | def FeatureZCZeroing : SubtargetFeature<"zcz", "HasZeroCycleZeroing", "true", | 
|  | 53 | "Has zero-cycle zeroing instructions">; | 
|  | 54 |  | 
| Akira Hatanaka | f53b040 | 2015-07-29 14:17:26 +0000 | [diff] [blame] | 55 | def FeatureStrictAlign : SubtargetFeature<"strict-align", | 
|  | 56 | "StrictAlign", "true", | 
|  | 57 | "Disallow all unaligned memory " | 
|  | 58 | "access">; | 
|  | 59 |  | 
| Akira Hatanaka | 0d4c9ea | 2015-07-25 00:18:31 +0000 | [diff] [blame] | 60 | def FeatureReserveX18 : SubtargetFeature<"reserve-x18", "ReserveX18", "true", | 
|  | 61 | "Reserve X18, making it unavailable " | 
|  | 62 | "as a GPR">; | 
|  | 63 |  | 
| Matthias Braun | 651cff4 | 2016-06-02 18:03:53 +0000 | [diff] [blame] | 64 | def FeatureMergeNarrowLd : SubtargetFeature<"merge-narrow-ld", | 
|  | 65 | "MergeNarrowLoads", "true", | 
|  | 66 | "Merge narrow load instructions">; | 
|  | 67 |  | 
|  | 68 | def FeatureUseAA : SubtargetFeature<"use-aa", "UseAA", "true", | 
|  | 69 | "Use alias analysis during codegen">; | 
|  | 70 |  | 
|  | 71 | def FeatureBalanceFPOps : SubtargetFeature<"balance-fp-ops", "BalanceFPOps", | 
|  | 72 | "true", | 
|  | 73 | "balance mix of odd and even D-registers for fp multiply(-accumulate) ops">; | 
|  | 74 |  | 
|  | 75 | def FeaturePredictableSelectIsExpensive : SubtargetFeature< | 
|  | 76 | "predictable-select-expensive", "PredictableSelectIsExpensive", "true", | 
|  | 77 | "Prefer likely predicted branches over selects">; | 
|  | 78 |  | 
|  | 79 | def FeatureCustomCheapAsMoveHandling : SubtargetFeature<"custom-cheap-as-move", | 
|  | 80 | "CustomAsCheapAsMove", "true", | 
|  | 81 | "Use custom code for TargetInstrInfo::isAsCheapAsAMove()">; | 
|  | 82 |  | 
|  | 83 | def FeaturePostRAScheduler : SubtargetFeature<"use-postra-scheduler", | 
|  | 84 | "UsePostRAScheduler", "true", "Schedule again after register allocation">; | 
|  | 85 |  | 
|  | 86 | def FeatureSlowMisaligned128Store : SubtargetFeature<"slow-misaligned-128store", | 
|  | 87 | "Misaligned128StoreIsSlow", "true", "Misaligned 128 bit stores are slow">; | 
|  | 88 |  | 
|  | 89 | def FeatureAvoidQuadLdStPairs : SubtargetFeature<"no-quad-ldst-pairs", | 
|  | 90 | "AvoidQuadLdStPairs", "true", | 
|  | 91 | "Do not form quad load/store pair operations">; | 
|  | 92 |  | 
|  | 93 | def FeatureAlternateSExtLoadCVTF32Pattern : SubtargetFeature< | 
|  | 94 | "alternate-sextload-cvt-f32-pattern", "UseAlternateSExtLoadCVTF32Pattern", | 
|  | 95 | "true", "Use alternative pattern for sextload convert to f32">; | 
|  | 96 |  | 
|  | 97 | def FeatureMacroOpFusion : SubtargetFeature< | 
|  | 98 | "macroop-fusion", "HasMacroOpFusion", "true", | 
|  | 99 | "CPU supports macro op fusion">; | 
|  | 100 |  | 
|  | 101 | def FeatureDisableLatencySchedHeuristic : SubtargetFeature< | 
|  | 102 | "disable-latency-sched-heuristic", "DisableLatencySchedHeuristic", "true", | 
|  | 103 | "Disable latency scheduling heuristic">; | 
|  | 104 |  | 
|  | 105 | def FeatureUseRSqrt : SubtargetFeature< | 
|  | 106 | "use-reverse-square-root", "UseRSqrt", "true", "Use reverse square root">; | 
|  | 107 |  | 
| Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 108 | //===----------------------------------------------------------------------===// | 
| Vladimir Sukharev | 439328e | 2015-04-01 14:49:29 +0000 | [diff] [blame] | 109 | // Architectures. | 
|  | 110 | // | 
|  | 111 |  | 
|  | 112 | def HasV8_1aOps : SubtargetFeature<"v8.1a", "HasV8_1aOps", "true", | 
|  | 113 | "Support ARM v8.1a instructions", [FeatureCRC]>; | 
|  | 114 |  | 
| Oliver Stannard | 7cc0c4e | 2015-11-26 15:23:32 +0000 | [diff] [blame] | 115 | def HasV8_2aOps : SubtargetFeature<"v8.2a", "HasV8_2aOps", "true", | 
| Sjoerd Meijer | d906bf1 | 2016-06-03 14:03:27 +0000 | [diff] [blame] | 116 | "Support ARM v8.2a instructions", [HasV8_1aOps, FeatureRAS]>; | 
| Oliver Stannard | 7cc0c4e | 2015-11-26 15:23:32 +0000 | [diff] [blame] | 117 |  | 
| Vladimir Sukharev | 439328e | 2015-04-01 14:49:29 +0000 | [diff] [blame] | 118 | //===----------------------------------------------------------------------===// | 
| Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 119 | // Register File Description | 
|  | 120 | //===----------------------------------------------------------------------===// | 
|  | 121 |  | 
|  | 122 | include "AArch64RegisterInfo.td" | 
|  | 123 | include "AArch64CallingConvention.td" | 
|  | 124 |  | 
|  | 125 | //===----------------------------------------------------------------------===// | 
|  | 126 | // Instruction Descriptions | 
|  | 127 | //===----------------------------------------------------------------------===// | 
|  | 128 |  | 
|  | 129 | include "AArch64Schedule.td" | 
|  | 130 | include "AArch64InstrInfo.td" | 
|  | 131 |  | 
|  | 132 | def AArch64InstrInfo : InstrInfo; | 
|  | 133 |  | 
|  | 134 | //===----------------------------------------------------------------------===// | 
|  | 135 | // AArch64 Processors supported. | 
|  | 136 | // | 
|  | 137 | include "AArch64SchedA53.td" | 
| Chad Rosier | 2205d4e | 2014-06-11 21:06:56 +0000 | [diff] [blame] | 138 | include "AArch64SchedA57.td" | 
| Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 139 | include "AArch64SchedCyclone.td" | 
| Evandro Menezes | d761ca2 | 2016-02-06 00:01:41 +0000 | [diff] [blame] | 140 | include "AArch64SchedM1.td" | 
| Chad Rosier | cd2be7f | 2016-02-12 15:51:51 +0000 | [diff] [blame] | 141 | include "AArch64SchedKryo.td" | 
| Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 142 |  | 
| Christof Douma | 8b5dc2c | 2015-12-02 11:53:44 +0000 | [diff] [blame] | 143 | def ProcA35     : SubtargetFeature<"a35", "ARMProcFamily", "CortexA35", | 
| Matthias Braun | 651cff4 | 2016-06-02 18:03:53 +0000 | [diff] [blame] | 144 | "Cortex-A35 ARM processors", [ | 
| Christof Douma | 8b5dc2c | 2015-12-02 11:53:44 +0000 | [diff] [blame] | 145 | FeatureCRC, | 
| Matthias Braun | 651cff4 | 2016-06-02 18:03:53 +0000 | [diff] [blame] | 146 | FeatureCrypto, | 
|  | 147 | FeatureFPARMv8, | 
|  | 148 | FeatureNEON, | 
|  | 149 | FeaturePerfMon | 
|  | 150 | ]>; | 
| Christof Douma | 8b5dc2c | 2015-12-02 11:53:44 +0000 | [diff] [blame] | 151 |  | 
| Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 152 | def ProcA53     : SubtargetFeature<"a53", "ARMProcFamily", "CortexA53", | 
| Matthias Braun | 651cff4 | 2016-06-02 18:03:53 +0000 | [diff] [blame] | 153 | "Cortex-A53 ARM processors", [ | 
|  | 154 | FeatureBalanceFPOps, | 
| Ahmed Bougacha | b0ff643 | 2015-09-01 16:23:45 +0000 | [diff] [blame] | 155 | FeatureCRC, | 
| Matthias Braun | 651cff4 | 2016-06-02 18:03:53 +0000 | [diff] [blame] | 156 | FeatureCrypto, | 
|  | 157 | FeatureCustomCheapAsMoveHandling, | 
|  | 158 | FeatureFPARMv8, | 
|  | 159 | FeatureNEON, | 
|  | 160 | FeaturePerfMon, | 
|  | 161 | FeaturePostRAScheduler, | 
|  | 162 | FeatureUseAA | 
|  | 163 | ]>; | 
| Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 164 |  | 
|  | 165 | def ProcA57     : SubtargetFeature<"a57", "ARMProcFamily", "CortexA57", | 
| Matthias Braun | 651cff4 | 2016-06-02 18:03:53 +0000 | [diff] [blame] | 166 | "Cortex-A57 ARM processors", [ | 
|  | 167 | FeatureBalanceFPOps, | 
| Ahmed Bougacha | b0ff643 | 2015-09-01 16:23:45 +0000 | [diff] [blame] | 168 | FeatureCRC, | 
| Matthias Braun | 651cff4 | 2016-06-02 18:03:53 +0000 | [diff] [blame] | 169 | FeatureCrypto, | 
|  | 170 | FeatureCustomCheapAsMoveHandling, | 
|  | 171 | FeatureFPARMv8, | 
|  | 172 | FeatureMergeNarrowLd, | 
|  | 173 | FeatureNEON, | 
|  | 174 | FeaturePerfMon, | 
|  | 175 | FeaturePostRAScheduler, | 
|  | 176 | FeaturePredictableSelectIsExpensive | 
|  | 177 | ]>; | 
| Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 178 |  | 
| Silviu Baranga | aee40fc | 2016-06-21 15:53:54 +0000 | [diff] [blame^] | 179 | def ProcA72     : SubtargetFeature<"a72", "ARMProcFamily", "CortexA72", | 
|  | 180 | "Cortex-A72 ARM processors", [ | 
|  | 181 | FeatureCRC, | 
|  | 182 | FeatureCrypto, | 
|  | 183 | FeatureFPARMv8, | 
|  | 184 | FeatureNEON, | 
|  | 185 | FeaturePerfMon | 
|  | 186 | ]>; | 
|  | 187 |  | 
|  | 188 | def ProcA73     : SubtargetFeature<"a73", "ARMProcFamily", "CortexA73", | 
|  | 189 | "Cortex-A73 ARM processors", [ | 
|  | 190 | FeatureCRC, | 
|  | 191 | FeatureCrypto, | 
|  | 192 | FeatureFPARMv8, | 
|  | 193 | FeatureNEON, | 
|  | 194 | FeaturePerfMon | 
|  | 195 | ]>; | 
|  | 196 |  | 
| Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 197 | def ProcCyclone : SubtargetFeature<"cyclone", "ARMProcFamily", "Cyclone", | 
| Matthias Braun | 651cff4 | 2016-06-02 18:03:53 +0000 | [diff] [blame] | 198 | "Cyclone", [ | 
|  | 199 | FeatureAlternateSExtLoadCVTF32Pattern, | 
| Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 200 | FeatureCrypto, | 
| Matthias Braun | 651cff4 | 2016-06-02 18:03:53 +0000 | [diff] [blame] | 201 | FeatureDisableLatencySchedHeuristic, | 
|  | 202 | FeatureFPARMv8, | 
|  | 203 | FeatureMacroOpFusion, | 
|  | 204 | FeatureNEON, | 
| Ahmed Bougacha | b0ff643 | 2015-09-01 16:23:45 +0000 | [diff] [blame] | 205 | FeaturePerfMon, | 
| Matthias Braun | 651cff4 | 2016-06-02 18:03:53 +0000 | [diff] [blame] | 206 | FeatureSlowMisaligned128Store, | 
|  | 207 | FeatureZCRegMove, | 
|  | 208 | FeatureZCZeroing | 
|  | 209 | ]>; | 
| Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 210 |  | 
| MinSeong Kim | a7385eb | 2016-01-05 12:51:59 +0000 | [diff] [blame] | 211 | def ProcExynosM1 : SubtargetFeature<"exynosm1", "ARMProcFamily", "ExynosM1", | 
| Matthias Braun | 651cff4 | 2016-06-02 18:03:53 +0000 | [diff] [blame] | 212 | "Samsung Exynos-M1 processors", [ | 
|  | 213 | FeatureAvoidQuadLdStPairs, | 
| MinSeong Kim | a7385eb | 2016-01-05 12:51:59 +0000 | [diff] [blame] | 214 | FeatureCRC, | 
| Matthias Braun | 651cff4 | 2016-06-02 18:03:53 +0000 | [diff] [blame] | 215 | FeatureCrypto, | 
|  | 216 | FeatureCustomCheapAsMoveHandling, | 
|  | 217 | FeatureFPARMv8, | 
|  | 218 | FeatureNEON, | 
|  | 219 | FeaturePerfMon, | 
|  | 220 | FeatureUseRSqrt | 
|  | 221 | ]>; | 
| MinSeong Kim | a7385eb | 2016-01-05 12:51:59 +0000 | [diff] [blame] | 222 |  | 
| Chad Rosier | cd2be7f | 2016-02-12 15:51:51 +0000 | [diff] [blame] | 223 | def ProcKryo    : SubtargetFeature<"kryo", "ARMProcFamily", "Kryo", | 
| Matthias Braun | 651cff4 | 2016-06-02 18:03:53 +0000 | [diff] [blame] | 224 | "Qualcomm Kryo processors", [ | 
| Chad Rosier | cd2be7f | 2016-02-12 15:51:51 +0000 | [diff] [blame] | 225 | FeatureCRC, | 
| Matthias Braun | 651cff4 | 2016-06-02 18:03:53 +0000 | [diff] [blame] | 226 | FeatureCrypto, | 
|  | 227 | FeatureCustomCheapAsMoveHandling, | 
|  | 228 | FeatureFPARMv8, | 
|  | 229 | FeatureMergeNarrowLd, | 
|  | 230 | FeatureNEON, | 
|  | 231 | FeaturePerfMon, | 
|  | 232 | FeaturePostRAScheduler, | 
|  | 233 | FeaturePredictableSelectIsExpensive | 
|  | 234 | ]>; | 
| Chad Rosier | cd2be7f | 2016-02-12 15:51:51 +0000 | [diff] [blame] | 235 |  | 
| Pankaj Gode | 0aab2e3 | 2016-06-20 11:13:31 +0000 | [diff] [blame] | 236 | def ProcVulcan  : SubtargetFeature<"vulcan", "ARMProcFamily", "Vulcan", | 
|  | 237 | "Broadcom Vulcan processors", [ | 
|  | 238 | FeatureFPARMv8, | 
|  | 239 | FeatureNEON, | 
|  | 240 | FeatureCrypto, | 
|  | 241 | FeatureCRC, | 
|  | 242 | HasV8_1aOps]>; | 
|  | 243 |  | 
| Matthias Braun | 651cff4 | 2016-06-02 18:03:53 +0000 | [diff] [blame] | 244 | def : ProcessorModel<"generic", NoSchedModel, [ | 
|  | 245 | FeatureCRC, | 
|  | 246 | FeatureFPARMv8, | 
|  | 247 | FeatureNEON, | 
|  | 248 | FeaturePerfMon, | 
|  | 249 | FeaturePostRAScheduler | 
|  | 250 | ]>; | 
| Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 251 |  | 
| Christof Douma | 8b5dc2c | 2015-12-02 11:53:44 +0000 | [diff] [blame] | 252 | // FIXME: Cortex-A35 is currently modelled as a Cortex-A53 | 
|  | 253 | def : ProcessorModel<"cortex-a35", CortexA53Model, [ProcA35]>; | 
| Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 254 | def : ProcessorModel<"cortex-a53", CortexA53Model, [ProcA53]>; | 
| Chad Rosier | 2205d4e | 2014-06-11 21:06:56 +0000 | [diff] [blame] | 255 | def : ProcessorModel<"cortex-a57", CortexA57Model, [ProcA57]>; | 
| Sjoerd Meijer | 0b7bb16 | 2016-06-02 10:48:52 +0000 | [diff] [blame] | 256 | // FIXME: Cortex-A72 and Cortex-A73 are currently modelled as an Cortex-A57. | 
| Silviu Baranga | aee40fc | 2016-06-21 15:53:54 +0000 | [diff] [blame^] | 257 | def : ProcessorModel<"cortex-a72", CortexA57Model, [ProcA72]>; | 
|  | 258 | def : ProcessorModel<"cortex-a73", CortexA57Model, [ProcA73]>; | 
| Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 259 | def : ProcessorModel<"cyclone", CycloneModel, [ProcCyclone]>; | 
| Evandro Menezes | d761ca2 | 2016-02-06 00:01:41 +0000 | [diff] [blame] | 260 | def : ProcessorModel<"exynos-m1", ExynosM1Model, [ProcExynosM1]>; | 
| Chad Rosier | cd2be7f | 2016-02-12 15:51:51 +0000 | [diff] [blame] | 261 | def : ProcessorModel<"kryo", KryoModel, [ProcKryo]>; | 
| Pankaj Gode | 0aab2e3 | 2016-06-20 11:13:31 +0000 | [diff] [blame] | 262 | def : ProcessorModel<"vulcan", NoSchedModel, [ProcVulcan]>; | 
| Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 263 |  | 
|  | 264 | //===----------------------------------------------------------------------===// | 
|  | 265 | // Assembly parser | 
|  | 266 | //===----------------------------------------------------------------------===// | 
|  | 267 |  | 
|  | 268 | def GenericAsmParserVariant : AsmParserVariant { | 
|  | 269 | int Variant = 0; | 
|  | 270 | string Name = "generic"; | 
| Colin LeMahieu | 8a0453e | 2015-11-09 00:31:07 +0000 | [diff] [blame] | 271 | string BreakCharacters = "."; | 
| Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 272 | } | 
|  | 273 |  | 
|  | 274 | def AppleAsmParserVariant : AsmParserVariant { | 
|  | 275 | int Variant = 1; | 
|  | 276 | string Name = "apple-neon"; | 
| Colin LeMahieu | 8a0453e | 2015-11-09 00:31:07 +0000 | [diff] [blame] | 277 | string BreakCharacters = "."; | 
| Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 278 | } | 
|  | 279 |  | 
|  | 280 | //===----------------------------------------------------------------------===// | 
|  | 281 | // Assembly printer | 
|  | 282 | //===----------------------------------------------------------------------===// | 
|  | 283 | // AArch64 Uses the MC printer for asm output, so make sure the TableGen | 
|  | 284 | // AsmWriter bits get associated with the correct class. | 
|  | 285 | def GenericAsmWriter : AsmWriter { | 
|  | 286 | string AsmWriterClassName  = "InstPrinter"; | 
| Akira Hatanaka | b46d023 | 2015-03-27 20:36:02 +0000 | [diff] [blame] | 287 | int PassSubtarget = 1; | 
| Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 288 | int Variant = 0; | 
|  | 289 | bit isMCAsmWriter = 1; | 
|  | 290 | } | 
|  | 291 |  | 
|  | 292 | def AppleAsmWriter : AsmWriter { | 
|  | 293 | let AsmWriterClassName = "AppleInstPrinter"; | 
| Akira Hatanaka | b46d023 | 2015-03-27 20:36:02 +0000 | [diff] [blame] | 294 | int PassSubtarget = 1; | 
| Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 295 | int Variant = 1; | 
|  | 296 | int isMCAsmWriter = 1; | 
|  | 297 | } | 
|  | 298 |  | 
|  | 299 | //===----------------------------------------------------------------------===// | 
|  | 300 | // Target Declaration | 
|  | 301 | //===----------------------------------------------------------------------===// | 
|  | 302 |  | 
|  | 303 | def AArch64 : Target { | 
|  | 304 | let InstructionSet = AArch64InstrInfo; | 
|  | 305 | let AssemblyParserVariants = [GenericAsmParserVariant, AppleAsmParserVariant]; | 
|  | 306 | let AssemblyWriters = [GenericAsmWriter, AppleAsmWriter]; | 
|  | 307 | } |