ARM.td 86 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538
  1. //===-- ARM.td - Describe the ARM Target Machine -----------*- tablegen -*-===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. //
  9. //
  10. //===----------------------------------------------------------------------===//
  11. //===----------------------------------------------------------------------===//
  12. // Target-independent interfaces which we are implementing
  13. //===----------------------------------------------------------------------===//
  14. include "llvm/Target/Target.td"
  15. //===----------------------------------------------------------------------===//
  16. // ARM Subtarget state.
  17. //
  18. def ModeThumb : SubtargetFeature<"thumb-mode", "InThumbMode",
  19. "true", "Thumb mode">;
  20. def ModeSoftFloat : SubtargetFeature<"soft-float","UseSoftFloat",
  21. "true", "Use software floating "
  22. "point features.">;
  23. //===----------------------------------------------------------------------===//
  24. // ARM Subtarget features.
  25. //
  26. // Floating Point, HW Division and Neon Support
  27. // FP loads/stores/moves, shared between VFP and MVE (even in the integer-only
  28. // version).
  29. def FeatureFPRegs : SubtargetFeature<"fpregs", "HasFPRegs", "true",
  30. "Enable FP registers">;
  31. // 16-bit FP loads/stores/moves, shared between VFP (with the v8.2A FP16
  32. // extension) and MVE (even in the integer-only version).
  33. def FeatureFPRegs16 : SubtargetFeature<"fpregs16", "HasFPRegs16", "true",
  34. "Enable 16-bit FP registers",
  35. [FeatureFPRegs]>;
  36. def FeatureFPRegs64 : SubtargetFeature<"fpregs64", "HasFPRegs64", "true",
  37. "Enable 64-bit FP registers",
  38. [FeatureFPRegs]>;
  39. def FeatureFP64 : SubtargetFeature<"fp64", "HasFP64", "true",
  40. "Floating point unit supports "
  41. "double precision",
  42. [FeatureFPRegs64]>;
  43. def FeatureD32 : SubtargetFeature<"d32", "HasD32", "true",
  44. "Extend FP to 32 double registers">;
  45. multiclass VFPver<string name, string query, string description,
  46. list<SubtargetFeature> prev,
  47. list<SubtargetFeature> otherimplies,
  48. list<SubtargetFeature> vfp2prev = []> {
  49. def _D16_SP: SubtargetFeature<
  50. name#"d16sp", query#"D16SP", "true",
  51. description#" with only 16 d-registers and no double precision",
  52. !foreach(v, prev, !cast<SubtargetFeature>(v # "_D16_SP")) #
  53. !foreach(v, vfp2prev, !cast<SubtargetFeature>(v # "_SP")) #
  54. otherimplies>;
  55. def _SP: SubtargetFeature<
  56. name#"sp", query#"SP", "true",
  57. description#" with no double precision",
  58. !foreach(v, prev, !cast<SubtargetFeature>(v # "_SP")) #
  59. otherimplies # [FeatureD32, !cast<SubtargetFeature>(NAME # "_D16_SP")]>;
  60. def _D16: SubtargetFeature<
  61. name#"d16", query#"D16", "true",
  62. description#" with only 16 d-registers",
  63. !foreach(v, prev, !cast<SubtargetFeature>(v # "_D16")) #
  64. vfp2prev #
  65. otherimplies # [FeatureFP64, !cast<SubtargetFeature>(NAME # "_D16_SP")]>;
  66. def "": SubtargetFeature<
  67. name, query, "true", description,
  68. prev # otherimplies # [
  69. !cast<SubtargetFeature>(NAME # "_D16"),
  70. !cast<SubtargetFeature>(NAME # "_SP")]>;
  71. }
  72. def FeatureVFP2_SP : SubtargetFeature<"vfp2sp", "HasVFPv2SP", "true",
  73. "Enable VFP2 instructions with "
  74. "no double precision",
  75. [FeatureFPRegs]>;
  76. def FeatureVFP2 : SubtargetFeature<"vfp2", "HasVFPv2", "true",
  77. "Enable VFP2 instructions",
  78. [FeatureFP64, FeatureVFP2_SP]>;
  79. defm FeatureVFP3: VFPver<"vfp3", "HasVFPv3", "Enable VFP3 instructions",
  80. [], [], [FeatureVFP2]>;
  81. def FeatureNEON : SubtargetFeature<"neon", "HasNEON", "true",
  82. "Enable NEON instructions",
  83. [FeatureVFP3]>;
  84. def FeatureFP16 : SubtargetFeature<"fp16", "HasFP16", "true",
  85. "Enable half-precision "
  86. "floating point">;
  87. defm FeatureVFP4: VFPver<"vfp4", "HasVFPv4", "Enable VFP4 instructions",
  88. [FeatureVFP3], [FeatureFP16]>;
  89. defm FeatureFPARMv8: VFPver<"fp-armv8", "HasFPARMv8", "Enable ARMv8 FP",
  90. [FeatureVFP4], []>;
  91. def FeatureFullFP16 : SubtargetFeature<"fullfp16", "HasFullFP16", "true",
  92. "Enable full half-precision "
  93. "floating point",
  94. [FeatureFPARMv8_D16_SP, FeatureFPRegs16]>;
  95. def FeatureFP16FML : SubtargetFeature<"fp16fml", "HasFP16FML", "true",
  96. "Enable full half-precision "
  97. "floating point fml instructions",
  98. [FeatureFullFP16]>;
  99. def FeatureHWDivThumb : SubtargetFeature<"hwdiv",
  100. "HasHardwareDivideInThumb", "true",
  101. "Enable divide instructions in Thumb">;
  102. def FeatureHWDivARM : SubtargetFeature<"hwdiv-arm",
  103. "HasHardwareDivideInARM", "true",
  104. "Enable divide instructions in ARM mode">;
  105. // Atomic Support
  106. def FeatureDB : SubtargetFeature<"db", "HasDataBarrier", "true",
  107. "Has data barrier (dmb/dsb) instructions">;
  108. def FeatureV7Clrex : SubtargetFeature<"v7clrex", "HasV7Clrex", "true",
  109. "Has v7 clrex instruction">;
  110. def FeatureDFB : SubtargetFeature<"dfb", "HasFullDataBarrier", "true",
  111. "Has full data barrier (dfb) instruction">;
  112. def FeatureAcquireRelease : SubtargetFeature<"acquire-release",
  113. "HasAcquireRelease", "true",
  114. "Has v8 acquire/release (lda/ldaex "
  115. " etc) instructions">;
  116. def FeatureSlowFPBrcc : SubtargetFeature<"slow-fp-brcc", "SlowFPBrcc", "true",
  117. "FP compare + branch is slow">;
  118. def FeaturePerfMon : SubtargetFeature<"perfmon", "HasPerfMon", "true",
  119. "Enable support for Performance "
  120. "Monitor extensions">;
  121. // TrustZone Security Extensions
  122. def FeatureTrustZone : SubtargetFeature<"trustzone", "HasTrustZone", "true",
  123. "Enable support for TrustZone "
  124. "security extensions">;
  125. def Feature8MSecExt : SubtargetFeature<"8msecext", "Has8MSecExt", "true",
  126. "Enable support for ARMv8-M "
  127. "Security Extensions">;
  128. def FeatureSHA2 : SubtargetFeature<"sha2", "HasSHA2", "true",
  129. "Enable SHA1 and SHA256 support", [FeatureNEON]>;
  130. def FeatureAES : SubtargetFeature<"aes", "HasAES", "true",
  131. "Enable AES support", [FeatureNEON]>;
  132. def FeatureCrypto : SubtargetFeature<"crypto", "HasCrypto", "true",
  133. "Enable support for "
  134. "Cryptography extensions",
  135. [FeatureNEON, FeatureSHA2, FeatureAES]>;
  136. def FeatureCRC : SubtargetFeature<"crc", "HasCRC", "true",
  137. "Enable support for CRC instructions">;
  138. def FeatureDotProd : SubtargetFeature<"dotprod", "HasDotProd", "true",
  139. "Enable support for dot product instructions",
  140. [FeatureNEON]>;
  141. // Not to be confused with FeatureHasRetAddrStack (return address stack)
  142. def FeatureRAS : SubtargetFeature<"ras", "HasRAS", "true",
  143. "Enable Reliability, Availability "
  144. "and Serviceability extensions">;
  145. // Fast computation of non-negative address offsets
  146. def FeatureFPAO : SubtargetFeature<"fpao", "HasFPAO", "true",
  147. "Enable fast computation of "
  148. "positive address offsets">;
  149. // Fast execution of AES crypto operations
  150. def FeatureFuseAES : SubtargetFeature<"fuse-aes", "HasFuseAES", "true",
  151. "CPU fuses AES crypto operations">;
  152. // Fast execution of bottom and top halves of literal generation
  153. def FeatureFuseLiterals : SubtargetFeature<"fuse-literals", "HasFuseLiterals", "true",
  154. "CPU fuses literal generation operations">;
  155. // The way of reading thread pointer
  156. def FeatureReadTp : SubtargetFeature<"read-tp-hard", "ReadTPHard", "true",
  157. "Reading thread pointer from register">;
  158. // Cyclone can zero VFP registers in 0 cycles.
  159. def FeatureZCZeroing : SubtargetFeature<"zcz", "HasZeroCycleZeroing", "true",
  160. "Has zero-cycle zeroing instructions">;
  161. // Whether it is profitable to unpredicate certain instructions during if-conversion
  162. def FeatureProfUnpredicate : SubtargetFeature<"prof-unpr",
  163. "IsProfitableToUnpredicate", "true",
  164. "Is profitable to unpredicate">;
  165. // Some targets (e.g. Swift) have microcoded VGETLNi32.
  166. def FeatureSlowVGETLNi32 : SubtargetFeature<"slow-vgetlni32",
  167. "HasSlowVGETLNi32", "true",
  168. "Has slow VGETLNi32 - prefer VMOV">;
  169. // Some targets (e.g. Swift) have microcoded VDUP32.
  170. def FeatureSlowVDUP32 : SubtargetFeature<"slow-vdup32", "HasSlowVDUP32",
  171. "true",
  172. "Has slow VDUP32 - prefer VMOV">;
  173. // Some targets (e.g. Cortex-A9) prefer VMOVSR to VMOVDRR even when using NEON
  174. // for scalar FP, as this allows more effective execution domain optimization.
  175. def FeaturePreferVMOVSR : SubtargetFeature<"prefer-vmovsr", "PreferVMOVSR",
  176. "true", "Prefer VMOVSR">;
  177. // Swift has ISHST barriers compatible with Atomic Release semantics but weaker
  178. // than ISH
  179. def FeaturePrefISHSTBarrier : SubtargetFeature<"prefer-ishst", "PreferISHST",
  180. "true", "Prefer ISHST barriers">;
  181. // Some targets (e.g. Cortex-A9) have muxed AGU and NEON/FPU.
  182. def FeatureMuxedUnits : SubtargetFeature<"muxed-units", "HasMuxedUnits",
  183. "true",
  184. "Has muxed AGU and NEON/FPU">;
  185. // Whether VLDM/VSTM starting with odd register number need more microops
  186. // than single VLDRS
  187. def FeatureSlowOddRegister : SubtargetFeature<"slow-odd-reg", "SlowOddRegister",
  188. "true", "VLDM/VSTM starting "
  189. "with an odd register is slow">;
  190. // Some targets have a renaming dependency when loading into D subregisters.
  191. def FeatureSlowLoadDSubreg : SubtargetFeature<"slow-load-D-subreg",
  192. "SlowLoadDSubregister", "true",
  193. "Loading into D subregs is slow">;
  194. def FeatureUseWideStrideVFP : SubtargetFeature<"wide-stride-vfp",
  195. "UseWideStrideVFP", "true",
  196. "Use a wide stride when allocating VFP registers">;
  197. // Some targets (e.g. Cortex-A15) never want VMOVS to be widened to VMOVD.
  198. def FeatureDontWidenVMOVS : SubtargetFeature<"dont-widen-vmovs",
  199. "DontWidenVMOVS", "true",
  200. "Don't widen VMOVS to VMOVD">;
  201. // Some targets (e.g. Cortex-A15) prefer to avoid mixing operations on different
  202. // VFP register widths.
  203. def FeatureSplatVFPToNeon : SubtargetFeature<"splat-vfp-neon",
  204. "SplatVFPToNeon", "true",
  205. "Splat register from VFP to NEON",
  206. [FeatureDontWidenVMOVS]>;
  207. // Whether or not it is profitable to expand VFP/NEON MLA/MLS instructions.
  208. def FeatureExpandMLx : SubtargetFeature<"expand-fp-mlx",
  209. "ExpandMLx", "true",
  210. "Expand VFP/NEON MLA/MLS instructions">;
  211. // Some targets have special RAW hazards for VFP/NEON VMLA/VMLS.
  212. def FeatureHasVMLxHazards : SubtargetFeature<"vmlx-hazards", "HasVMLxHazards",
  213. "true", "Has VMLx hazards">;
  214. // Some targets (e.g. Cortex-A9) want to convert VMOVRS, VMOVSR and VMOVS from
  215. // VFP to NEON, as an execution domain optimization.
  216. def FeatureNEONForFPMovs : SubtargetFeature<"neon-fpmovs",
  217. "UseNEONForFPMovs", "true",
  218. "Convert VMOVSR, VMOVRS, "
  219. "VMOVS to NEON">;
  220. // Some processors benefit from using NEON instructions for scalar
  221. // single-precision FP operations. This affects instruction selection and should
  222. // only be enabled if the handling of denormals is not important.
  223. def FeatureNEONForFP : SubtargetFeature<"neonfp",
  224. "UseNEONForSinglePrecisionFP",
  225. "true",
  226. "Use NEON for single precision FP">;
  227. // On some processors, VLDn instructions that access unaligned data take one
  228. // extra cycle. Take that into account when computing operand latencies.
  229. def FeatureCheckVLDnAlign : SubtargetFeature<"vldn-align", "CheckVLDnAlign",
  230. "true",
  231. "Check for VLDn unaligned access">;
  232. // Some processors have a nonpipelined VFP coprocessor.
  233. def FeatureNonpipelinedVFP : SubtargetFeature<"nonpipelined-vfp",
  234. "NonpipelinedVFP", "true",
  235. "VFP instructions are not pipelined">;
  236. // Some processors have FP multiply-accumulate instructions that don't
  237. // play nicely with other VFP / NEON instructions, and it's generally better
  238. // to just not use them.
  239. def FeatureHasSlowFPVMLx : SubtargetFeature<"slowfpvmlx", "SlowFPVMLx", "true",
  240. "Disable VFP / NEON MAC instructions">;
  241. // VFPv4 added VFMA instructions that can similar be fast or slow.
  242. def FeatureHasSlowFPVFMx : SubtargetFeature<"slowfpvfmx", "SlowFPVFMx", "true",
  243. "Disable VFP / NEON FMA instructions">;
  244. // Cortex-A8 / A9 Advanced SIMD has multiplier accumulator forwarding.
  245. def FeatureVMLxForwarding : SubtargetFeature<"vmlx-forwarding",
  246. "HasVMLxForwarding", "true",
  247. "Has multiplier accumulator forwarding">;
  248. // Disable 32-bit to 16-bit narrowing for experimentation.
  249. def FeaturePref32BitThumb : SubtargetFeature<"32bit", "Pref32BitThumb", "true",
  250. "Prefer 32-bit Thumb instrs">;
  251. def FeaturePrefLoopAlign32 : SubtargetFeature<"loop-align", "PrefLoopLogAlignment","2",
  252. "Prefer 32-bit alignment for loops">;
  253. def FeatureMVEVectorCostFactor1 : SubtargetFeature<"mve1beat", "MVEVectorCostFactor", "1",
  254. "Model MVE instructions as a 1 beat per tick architecture">;
  255. def FeatureMVEVectorCostFactor2 : SubtargetFeature<"mve2beat", "MVEVectorCostFactor", "2",
  256. "Model MVE instructions as a 2 beats per tick architecture">;
  257. def FeatureMVEVectorCostFactor4 : SubtargetFeature<"mve4beat", "MVEVectorCostFactor", "4",
  258. "Model MVE instructions as a 4 beats per tick architecture">;
  259. /// Some instructions update CPSR partially, which can add false dependency for
  260. /// out-of-order implementation, e.g. Cortex-A9, unless each individual bit is
  261. /// mapped to a separate physical register. Avoid partial CPSR update for these
  262. /// processors.
  263. def FeatureAvoidPartialCPSR : SubtargetFeature<"avoid-partial-cpsr",
  264. "AvoidCPSRPartialUpdate", "true",
  265. "Avoid CPSR partial update for OOO execution">;
  266. /// Disable +1 predication cost for instructions updating CPSR.
  267. /// Enabled for Cortex-A57.
  268. def FeatureCheapPredicableCPSR : SubtargetFeature<"cheap-predicable-cpsr",
  269. "CheapPredicableCPSRDef",
  270. "true",
  271. "Disable +1 predication cost for instructions updating CPSR">;
  272. def FeatureAvoidMOVsShOp : SubtargetFeature<"avoid-movs-shop",
  273. "AvoidMOVsShifterOperand", "true",
  274. "Avoid movs instructions with "
  275. "shifter operand">;
  276. // Some processors perform return stack prediction. CodeGen should avoid issue
  277. // "normal" call instructions to callees which do not return.
  278. def FeatureHasRetAddrStack : SubtargetFeature<"ret-addr-stack",
  279. "HasRetAddrStack", "true",
  280. "Has return address stack">;
  281. // Some processors have no branch predictor, which changes the expected cost of
  282. // taking a branch which affects the choice of whether to use predicated
  283. // instructions.
  284. def FeatureHasNoBranchPredictor : SubtargetFeature<"no-branch-predictor",
  285. "HasBranchPredictor", "false",
  286. "Has no branch predictor">;
  287. /// DSP extension.
  288. def FeatureDSP : SubtargetFeature<"dsp", "HasDSP", "true",
  289. "Supports DSP instructions in "
  290. "ARM and/or Thumb2">;
  291. // Multiprocessing extension.
  292. def FeatureMP : SubtargetFeature<"mp", "HasMPExtension", "true",
  293. "Supports Multiprocessing extension">;
  294. // Virtualization extension - requires HW divide (ARMv7-AR ARMARM - 4.4.8).
  295. def FeatureVirtualization : SubtargetFeature<"virtualization",
  296. "HasVirtualization", "true",
  297. "Supports Virtualization extension",
  298. [FeatureHWDivThumb, FeatureHWDivARM]>;
  299. // Special TRAP encoding for NaCl, which looks like a TRAP in Thumb too.
  300. // See ARMInstrInfo.td for details.
  301. def FeatureNaClTrap : SubtargetFeature<"nacl-trap", "UseNaClTrap", "true",
  302. "NaCl trap">;
  303. def FeatureStrictAlign : SubtargetFeature<"strict-align",
  304. "StrictAlign", "true",
  305. "Disallow all unaligned memory "
  306. "access">;
  307. def FeatureLongCalls : SubtargetFeature<"long-calls", "GenLongCalls", "true",
  308. "Generate calls via indirect call "
  309. "instructions">;
  310. def FeatureExecuteOnly : SubtargetFeature<"execute-only",
  311. "GenExecuteOnly", "true",
  312. "Enable the generation of "
  313. "execute only code.">;
  314. def FeatureReserveR9 : SubtargetFeature<"reserve-r9", "ReserveR9", "true",
  315. "Reserve R9, making it unavailable"
  316. " as GPR">;
  317. def FeatureNoMovt : SubtargetFeature<"no-movt", "NoMovt", "true",
  318. "Don't use movt/movw pairs for "
  319. "32-bit imms">;
  320. def FeatureNoNegativeImmediates
  321. : SubtargetFeature<"no-neg-immediates",
  322. "NegativeImmediates", "false",
  323. "Convert immediates and instructions "
  324. "to their negated or complemented "
  325. "equivalent when the immediate does "
  326. "not fit in the encoding.">;
  327. // Use the MachineScheduler for instruction scheduling for the subtarget.
  328. def FeatureUseMISched: SubtargetFeature<"use-misched", "UseMISched", "true",
  329. "Use the MachineScheduler">;
  330. def FeatureNoPostRASched : SubtargetFeature<"disable-postra-scheduler",
  331. "DisablePostRAScheduler", "true",
  332. "Don't schedule again after register allocation">;
  333. // Armv8.5-A extensions
  334. def FeatureSB : SubtargetFeature<"sb", "HasSB", "true",
  335. "Enable v8.5a Speculation Barrier" >;
  336. // Armv8.6-A extensions
  337. def FeatureBF16 : SubtargetFeature<"bf16", "HasBF16", "true",
  338. "Enable support for BFloat16 instructions", [FeatureNEON]>;
  339. def FeatureMatMulInt8 : SubtargetFeature<"i8mm", "HasMatMulInt8",
  340. "true", "Enable Matrix Multiply Int8 Extension", [FeatureNEON]>;
  341. // Armv8.1-M extensions
  342. def FeatureLOB : SubtargetFeature<"lob", "HasLOB", "true",
  343. "Enable Low Overhead Branch "
  344. "extensions">;
  345. def FeatureFixCMSE_CVE_2021_35465 : SubtargetFeature<"fix-cmse-cve-2021-35465",
  346. "FixCMSE_CVE_2021_35465", "true",
  347. "Mitigate against the cve-2021-35465 "
  348. "security vulnurability">;
  349. def FeaturePACBTI : SubtargetFeature<"pacbti", "HasPACBTI", "true",
  350. "Enable Pointer Authentication and Branch "
  351. "Target Identification">;
  352. def FeatureNoBTIAtReturnTwice : SubtargetFeature<"no-bti-at-return-twice",
  353. "NoBTIAtReturnTwice", "true",
  354. "Don't place a BTI instruction "
  355. "after a return-twice">;
  356. //===----------------------------------------------------------------------===//
  357. // ARM architecture class
  358. //
  359. // A-series ISA
  360. def FeatureAClass : SubtargetFeature<"aclass", "ARMProcClass", "AClass",
  361. "Is application profile ('A' series)">;
  362. // R-series ISA
  363. def FeatureRClass : SubtargetFeature<"rclass", "ARMProcClass", "RClass",
  364. "Is realtime profile ('R' series)">;
  365. // M-series ISA
  366. def FeatureMClass : SubtargetFeature<"mclass", "ARMProcClass", "MClass",
  367. "Is microcontroller profile ('M' series)">;
  368. def FeatureThumb2 : SubtargetFeature<"thumb2", "HasThumb2", "true",
  369. "Enable Thumb2 instructions">;
  370. def FeatureNoARM : SubtargetFeature<"noarm", "NoARM", "true",
  371. "Does not support ARM mode execution">;
  372. //===----------------------------------------------------------------------===//
  373. // ARM ISAa.
  374. //
  375. def HasV4TOps : SubtargetFeature<"v4t", "HasV4TOps", "true",
  376. "Support ARM v4T instructions">;
  377. def HasV5TOps : SubtargetFeature<"v5t", "HasV5TOps", "true",
  378. "Support ARM v5T instructions",
  379. [HasV4TOps]>;
  380. def HasV5TEOps : SubtargetFeature<"v5te", "HasV5TEOps", "true",
  381. "Support ARM v5TE, v5TEj, and "
  382. "v5TExp instructions",
  383. [HasV5TOps]>;
  384. def HasV6Ops : SubtargetFeature<"v6", "HasV6Ops", "true",
  385. "Support ARM v6 instructions",
  386. [HasV5TEOps]>;
  387. def HasV6MOps : SubtargetFeature<"v6m", "HasV6MOps", "true",
  388. "Support ARM v6M instructions",
  389. [HasV6Ops]>;
  390. def HasV8MBaselineOps : SubtargetFeature<"v8m", "HasV8MBaselineOps", "true",
  391. "Support ARM v8M Baseline instructions",
  392. [HasV6MOps]>;
  393. def HasV6KOps : SubtargetFeature<"v6k", "HasV6KOps", "true",
  394. "Support ARM v6k instructions",
  395. [HasV6Ops]>;
  396. def HasV6T2Ops : SubtargetFeature<"v6t2", "HasV6T2Ops", "true",
  397. "Support ARM v6t2 instructions",
  398. [HasV8MBaselineOps, HasV6KOps, FeatureThumb2]>;
  399. def HasV7Ops : SubtargetFeature<"v7", "HasV7Ops", "true",
  400. "Support ARM v7 instructions",
  401. [HasV6T2Ops, FeatureV7Clrex]>;
  402. def HasV8MMainlineOps :
  403. SubtargetFeature<"v8m.main", "HasV8MMainlineOps", "true",
  404. "Support ARM v8M Mainline instructions",
  405. [HasV7Ops]>;
  406. def HasV8Ops : SubtargetFeature<"v8", "HasV8Ops", "true",
  407. "Support ARM v8 instructions",
  408. [HasV7Ops, FeaturePerfMon, FeatureAcquireRelease]>;
  409. def HasV8_1aOps : SubtargetFeature<"v8.1a", "HasV8_1aOps", "true",
  410. "Support ARM v8.1a instructions",
  411. [HasV8Ops]>;
  412. def HasV8_2aOps : SubtargetFeature<"v8.2a", "HasV8_2aOps", "true",
  413. "Support ARM v8.2a instructions",
  414. [HasV8_1aOps]>;
  415. def HasV8_3aOps : SubtargetFeature<"v8.3a", "HasV8_3aOps", "true",
  416. "Support ARM v8.3a instructions",
  417. [HasV8_2aOps]>;
  418. def HasV8_4aOps : SubtargetFeature<"v8.4a", "HasV8_4aOps", "true",
  419. "Support ARM v8.4a instructions",
  420. [HasV8_3aOps, FeatureDotProd]>;
  421. def HasV8_5aOps : SubtargetFeature<"v8.5a", "HasV8_5aOps", "true",
  422. "Support ARM v8.5a instructions",
  423. [HasV8_4aOps, FeatureSB]>;
  424. def HasV8_6aOps : SubtargetFeature<"v8.6a", "HasV8_6aOps", "true",
  425. "Support ARM v8.6a instructions",
  426. [HasV8_5aOps, FeatureBF16,
  427. FeatureMatMulInt8]>;
  428. def HasV8_7aOps : SubtargetFeature<"v8.7a", "HasV8_7aOps", "true",
  429. "Support ARM v8.7a instructions",
  430. [HasV8_6aOps]>;
  431. def HasV8_8aOps : SubtargetFeature<"v8.8a", "HasV8_8aOps", "true",
  432. "Support ARM v8.8a instructions",
  433. [HasV8_7aOps]>;
  434. def HasV9_0aOps : SubtargetFeature<"v9a", "HasV9_0aOps", "true",
  435. "Support ARM v9a instructions",
  436. [HasV8_5aOps]>;
  437. def HasV9_1aOps : SubtargetFeature<"v9.1a", "HasV9_1aOps", "true",
  438. "Support ARM v9.1a instructions",
  439. [HasV8_6aOps, HasV9_0aOps]>;
  440. def HasV9_2aOps : SubtargetFeature<"v9.2a", "HasV9_2aOps", "true",
  441. "Support ARM v9.2a instructions",
  442. [HasV8_7aOps, HasV9_1aOps]>;
  443. def HasV9_3aOps : SubtargetFeature<"v9.3a", "HasV9_3aOps", "true",
  444. "Support ARM v9.3a instructions",
  445. [HasV8_8aOps, HasV9_2aOps]>;
  446. def HasV8_1MMainlineOps : SubtargetFeature<
  447. "v8.1m.main", "HasV8_1MMainlineOps", "true",
  448. "Support ARM v8-1M Mainline instructions",
  449. [HasV8MMainlineOps]>;
  450. def HasMVEIntegerOps : SubtargetFeature<
  451. "mve", "HasMVEIntegerOps", "true",
  452. "Support M-Class Vector Extension with integer ops",
  453. [HasV8_1MMainlineOps, FeatureDSP, FeatureFPRegs16, FeatureFPRegs64]>;
  454. def HasMVEFloatOps : SubtargetFeature<
  455. "mve.fp", "HasMVEFloatOps", "true",
  456. "Support M-Class Vector Extension with integer and floating ops",
  457. [HasMVEIntegerOps, FeatureFPARMv8_D16_SP, FeatureFullFP16]>;
  458. def HasCDEOps : SubtargetFeature<"cde", "HasCDEOps", "true",
  459. "Support CDE instructions",
  460. [HasV8MMainlineOps]>;
  461. foreach i = {0-7} in
  462. def FeatureCoprocCDE#i : SubtargetFeature<"cdecp"#i,
  463. "CoprocCDE["#i#"]", "true",
  464. "Coprocessor "#i#" ISA is CDEv1",
  465. [HasCDEOps]>;
  466. //===----------------------------------------------------------------------===//
  467. // Control codegen mitigation against Straight Line Speculation vulnerability.
  468. //===----------------------------------------------------------------------===//
  469. def FeatureHardenSlsRetBr : SubtargetFeature<"harden-sls-retbr",
  470. "HardenSlsRetBr", "true",
  471. "Harden against straight line speculation across RETurn and BranchRegister "
  472. "instructions">;
  473. def FeatureHardenSlsBlr : SubtargetFeature<"harden-sls-blr",
  474. "HardenSlsBlr", "true",
  475. "Harden against straight line speculation across indirect calls">;
  476. def FeatureHardenSlsNoComdat : SubtargetFeature<"harden-sls-nocomdat",
  477. "HardenSlsNoComdat", "true",
  478. "Generate thunk code for SLS mitigation in the normal text section">;
  479. //===----------------------------------------------------------------------===//
  480. // ARM Processor subtarget features.
  481. //
  482. def ProcA5 : SubtargetFeature<"a5", "ARMProcFamily", "CortexA5",
  483. "Cortex-A5 ARM processors", []>;
  484. def ProcA7 : SubtargetFeature<"a7", "ARMProcFamily", "CortexA7",
  485. "Cortex-A7 ARM processors", []>;
  486. def ProcA8 : SubtargetFeature<"a8", "ARMProcFamily", "CortexA8",
  487. "Cortex-A8 ARM processors", []>;
  488. def ProcA9 : SubtargetFeature<"a9", "ARMProcFamily", "CortexA9",
  489. "Cortex-A9 ARM processors", []>;
  490. def ProcA12 : SubtargetFeature<"a12", "ARMProcFamily", "CortexA12",
  491. "Cortex-A12 ARM processors", []>;
  492. def ProcA15 : SubtargetFeature<"a15", "ARMProcFamily", "CortexA15",
  493. "Cortex-A15 ARM processors", []>;
  494. def ProcA17 : SubtargetFeature<"a17", "ARMProcFamily", "CortexA17",
  495. "Cortex-A17 ARM processors", []>;
  496. def ProcA32 : SubtargetFeature<"a32", "ARMProcFamily", "CortexA32",
  497. "Cortex-A32 ARM processors", []>;
  498. def ProcA35 : SubtargetFeature<"a35", "ARMProcFamily", "CortexA35",
  499. "Cortex-A35 ARM processors", []>;
  500. def ProcA53 : SubtargetFeature<"a53", "ARMProcFamily", "CortexA53",
  501. "Cortex-A53 ARM processors", []>;
  502. def ProcA55 : SubtargetFeature<"a55", "ARMProcFamily", "CortexA55",
  503. "Cortex-A55 ARM processors", []>;
  504. def ProcA57 : SubtargetFeature<"a57", "ARMProcFamily", "CortexA57",
  505. "Cortex-A57 ARM processors", []>;
  506. def ProcA72 : SubtargetFeature<"a72", "ARMProcFamily", "CortexA72",
  507. "Cortex-A72 ARM processors", []>;
  508. def ProcA73 : SubtargetFeature<"a73", "ARMProcFamily", "CortexA73",
  509. "Cortex-A73 ARM processors", []>;
  510. def ProcA75 : SubtargetFeature<"a75", "ARMProcFamily", "CortexA75",
  511. "Cortex-A75 ARM processors", []>;
  512. def ProcA76 : SubtargetFeature<"a76", "ARMProcFamily", "CortexA76",
  513. "Cortex-A76 ARM processors", []>;
  514. def ProcA77 : SubtargetFeature<"a77", "ARMProcFamily", "CortexA77",
  515. "Cortex-A77 ARM processors", []>;
  516. def ProcA78 : SubtargetFeature<"cortex-a78", "ARMProcFamily", "CortexA78",
  517. "Cortex-A78 ARM processors", []>;
  518. def ProcA78C : SubtargetFeature<"a78c", "ARMProcFamily", "CortexA78C",
  519. "Cortex-A78C ARM processors", []>;
  520. def ProcA710 : SubtargetFeature<"cortex-a710", "ARMProcFamily",
  521. "CortexA710", "Cortex-A710 ARM processors", []>;
  522. def ProcX1 : SubtargetFeature<"cortex-x1", "ARMProcFamily", "CortexX1",
  523. "Cortex-X1 ARM processors", []>;
  524. def ProcX1C : SubtargetFeature<"cortex-x1c", "ARMProcFamily", "CortexX1C",
  525. "Cortex-X1C ARM processors", []>;
  526. def ProcV1 : SubtargetFeature<"neoverse-v1", "ARMProcFamily",
  527. "NeoverseV1", "Neoverse-V1 ARM processors", []>;
  528. def ProcKrait : SubtargetFeature<"krait", "ARMProcFamily", "Krait",
  529. "Qualcomm Krait processors", []>;
  530. def ProcKryo : SubtargetFeature<"kryo", "ARMProcFamily", "Kryo",
  531. "Qualcomm Kryo processors", []>;
  532. def ProcSwift : SubtargetFeature<"swift", "ARMProcFamily", "Swift",
  533. "Swift ARM processors", []>;
  534. def ProcExynos : SubtargetFeature<"exynos", "ARMProcFamily", "Exynos",
  535. "Samsung Exynos processors",
  536. [FeatureZCZeroing,
  537. FeatureUseWideStrideVFP,
  538. FeatureSplatVFPToNeon,
  539. FeatureSlowVGETLNi32,
  540. FeatureSlowVDUP32,
  541. FeatureSlowFPBrcc,
  542. FeatureProfUnpredicate,
  543. FeatureHWDivThumb,
  544. FeatureHWDivARM,
  545. FeatureHasSlowFPVMLx,
  546. FeatureHasSlowFPVFMx,
  547. FeatureHasRetAddrStack,
  548. FeatureFuseLiterals,
  549. FeatureFuseAES,
  550. FeatureExpandMLx,
  551. FeatureCrypto,
  552. FeatureCRC]>;
  553. def ProcR4 : SubtargetFeature<"r4", "ARMProcFamily", "CortexR4",
  554. "Cortex-R4 ARM processors", []>;
  555. def ProcR5 : SubtargetFeature<"r5", "ARMProcFamily", "CortexR5",
  556. "Cortex-R5 ARM processors", []>;
  557. def ProcR7 : SubtargetFeature<"r7", "ARMProcFamily", "CortexR7",
  558. "Cortex-R7 ARM processors", []>;
  559. def ProcR52 : SubtargetFeature<"r52", "ARMProcFamily", "CortexR52",
  560. "Cortex-R52 ARM processors", []>;
  561. def ProcM3 : SubtargetFeature<"m3", "ARMProcFamily", "CortexM3",
  562. "Cortex-M3 ARM processors", []>;
  563. def ProcM7 : SubtargetFeature<"m7", "ARMProcFamily", "CortexM7",
  564. "Cortex-M7 ARM processors", []>;
  565. //===----------------------------------------------------------------------===//
  566. // ARM Helper classes.
  567. //
  568. class Architecture<string fname, string aname, list<SubtargetFeature> features>
  569. : SubtargetFeature<fname, "ARMArch", aname,
  570. !strconcat(aname, " architecture"), features>;
  571. class ProcNoItin<string Name, list<SubtargetFeature> Features>
  572. : Processor<Name, NoItineraries, Features>;
  573. //===----------------------------------------------------------------------===//
  574. // ARM architectures
  575. //
  576. def ARMv2 : Architecture<"armv2", "ARMv2", []>;
  577. def ARMv2a : Architecture<"armv2a", "ARMv2a", []>;
  578. def ARMv3 : Architecture<"armv3", "ARMv3", []>;
  579. def ARMv3m : Architecture<"armv3m", "ARMv3m", []>;
  580. def ARMv4 : Architecture<"armv4", "ARMv4", []>;
  581. def ARMv4t : Architecture<"armv4t", "ARMv4t", [HasV4TOps]>;
  582. def ARMv5t : Architecture<"armv5t", "ARMv5t", [HasV5TOps]>;
  583. def ARMv5te : Architecture<"armv5te", "ARMv5te", [HasV5TEOps]>;
  584. def ARMv5tej : Architecture<"armv5tej", "ARMv5tej", [HasV5TEOps]>;
  585. def ARMv6 : Architecture<"armv6", "ARMv6", [HasV6Ops,
  586. FeatureDSP]>;
  587. def ARMv6t2 : Architecture<"armv6t2", "ARMv6t2", [HasV6T2Ops,
  588. FeatureDSP]>;
  589. def ARMv6k : Architecture<"armv6k", "ARMv6k", [HasV6KOps]>;
  590. def ARMv6kz : Architecture<"armv6kz", "ARMv6kz", [HasV6KOps,
  591. FeatureTrustZone]>;
  592. def ARMv6m : Architecture<"armv6-m", "ARMv6m", [HasV6MOps,
  593. FeatureNoARM,
  594. ModeThumb,
  595. FeatureDB,
  596. FeatureMClass,
  597. FeatureStrictAlign]>;
  598. def ARMv6sm : Architecture<"armv6s-m", "ARMv6sm", [HasV6MOps,
  599. FeatureNoARM,
  600. ModeThumb,
  601. FeatureDB,
  602. FeatureMClass,
  603. FeatureStrictAlign]>;
  604. def ARMv7a : Architecture<"armv7-a", "ARMv7a", [HasV7Ops,
  605. FeatureNEON,
  606. FeatureDB,
  607. FeatureDSP,
  608. FeatureAClass,
  609. FeaturePerfMon]>;
  610. def ARMv7ve : Architecture<"armv7ve", "ARMv7ve", [HasV7Ops,
  611. FeatureNEON,
  612. FeatureDB,
  613. FeatureDSP,
  614. FeatureTrustZone,
  615. FeatureMP,
  616. FeatureVirtualization,
  617. FeatureAClass,
  618. FeaturePerfMon]>;
  619. def ARMv7r : Architecture<"armv7-r", "ARMv7r", [HasV7Ops,
  620. FeatureDB,
  621. FeatureDSP,
  622. FeatureHWDivThumb,
  623. FeatureRClass,
  624. FeaturePerfMon]>;
  625. def ARMv7m : Architecture<"armv7-m", "ARMv7m", [HasV7Ops,
  626. FeatureThumb2,
  627. FeatureNoARM,
  628. ModeThumb,
  629. FeatureDB,
  630. FeatureHWDivThumb,
  631. FeatureMClass]>;
  632. def ARMv7em : Architecture<"armv7e-m", "ARMv7em", [HasV7Ops,
  633. FeatureThumb2,
  634. FeatureNoARM,
  635. ModeThumb,
  636. FeatureDB,
  637. FeatureHWDivThumb,
  638. FeatureMClass,
  639. FeatureDSP]>;
  640. def ARMv8a : Architecture<"armv8-a", "ARMv8a", [HasV8Ops,
  641. FeatureAClass,
  642. FeatureDB,
  643. FeatureFPARMv8,
  644. FeatureNEON,
  645. FeatureDSP,
  646. FeatureTrustZone,
  647. FeatureMP,
  648. FeatureVirtualization,
  649. FeatureCrypto,
  650. FeatureCRC]>;
  651. def ARMv81a : Architecture<"armv8.1-a", "ARMv81a", [HasV8_1aOps,
  652. FeatureAClass,
  653. FeatureDB,
  654. FeatureFPARMv8,
  655. FeatureNEON,
  656. FeatureDSP,
  657. FeatureTrustZone,
  658. FeatureMP,
  659. FeatureVirtualization,
  660. FeatureCrypto,
  661. FeatureCRC]>;
  662. def ARMv82a : Architecture<"armv8.2-a", "ARMv82a", [HasV8_2aOps,
  663. FeatureAClass,
  664. FeatureDB,
  665. FeatureFPARMv8,
  666. FeatureNEON,
  667. FeatureDSP,
  668. FeatureTrustZone,
  669. FeatureMP,
  670. FeatureVirtualization,
  671. FeatureCrypto,
  672. FeatureCRC,
  673. FeatureRAS]>;
  674. def ARMv83a : Architecture<"armv8.3-a", "ARMv83a", [HasV8_3aOps,
  675. FeatureAClass,
  676. FeatureDB,
  677. FeatureFPARMv8,
  678. FeatureNEON,
  679. FeatureDSP,
  680. FeatureTrustZone,
  681. FeatureMP,
  682. FeatureVirtualization,
  683. FeatureCrypto,
  684. FeatureCRC,
  685. FeatureRAS]>;
  686. def ARMv84a : Architecture<"armv8.4-a", "ARMv84a", [HasV8_4aOps,
  687. FeatureAClass,
  688. FeatureDB,
  689. FeatureFPARMv8,
  690. FeatureNEON,
  691. FeatureDSP,
  692. FeatureTrustZone,
  693. FeatureMP,
  694. FeatureVirtualization,
  695. FeatureCrypto,
  696. FeatureCRC,
  697. FeatureRAS,
  698. FeatureDotProd]>;
  699. def ARMv85a : Architecture<"armv8.5-a", "ARMv85a", [HasV8_5aOps,
  700. FeatureAClass,
  701. FeatureDB,
  702. FeatureFPARMv8,
  703. FeatureNEON,
  704. FeatureDSP,
  705. FeatureTrustZone,
  706. FeatureMP,
  707. FeatureVirtualization,
  708. FeatureCrypto,
  709. FeatureCRC,
  710. FeatureRAS,
  711. FeatureDotProd]>;
  712. def ARMv86a : Architecture<"armv8.6-a", "ARMv86a", [HasV8_6aOps,
  713. FeatureAClass,
  714. FeatureDB,
  715. FeatureFPARMv8,
  716. FeatureNEON,
  717. FeatureDSP,
  718. FeatureTrustZone,
  719. FeatureMP,
  720. FeatureVirtualization,
  721. FeatureCrypto,
  722. FeatureCRC,
  723. FeatureRAS,
  724. FeatureDotProd]>;
  725. def ARMv87a : Architecture<"armv8.7-a", "ARMv87a", [HasV8_7aOps,
  726. FeatureAClass,
  727. FeatureDB,
  728. FeatureFPARMv8,
  729. FeatureNEON,
  730. FeatureDSP,
  731. FeatureTrustZone,
  732. FeatureMP,
  733. FeatureVirtualization,
  734. FeatureCrypto,
  735. FeatureCRC,
  736. FeatureRAS,
  737. FeatureDotProd]>;
  738. def ARMv88a : Architecture<"armv8.8-a", "ARMv88a", [HasV8_8aOps,
  739. FeatureAClass,
  740. FeatureDB,
  741. FeatureFPARMv8,
  742. FeatureNEON,
  743. FeatureDSP,
  744. FeatureTrustZone,
  745. FeatureMP,
  746. FeatureVirtualization,
  747. FeatureCrypto,
  748. FeatureCRC,
  749. FeatureRAS,
  750. FeatureDotProd]>;
  751. def ARMv9a : Architecture<"armv9-a", "ARMv9a", [HasV9_0aOps,
  752. FeatureAClass,
  753. FeatureDB,
  754. FeatureFPARMv8,
  755. FeatureNEON,
  756. FeatureDSP,
  757. FeatureTrustZone,
  758. FeatureMP,
  759. FeatureVirtualization,
  760. FeatureCRC,
  761. FeatureRAS,
  762. FeatureDotProd]>;
  763. def ARMv91a : Architecture<"armv9.1-a", "ARMv91a", [HasV9_1aOps,
  764. FeatureAClass,
  765. FeatureDB,
  766. FeatureFPARMv8,
  767. FeatureNEON,
  768. FeatureDSP,
  769. FeatureTrustZone,
  770. FeatureMP,
  771. FeatureVirtualization,
  772. FeatureCRC,
  773. FeatureRAS,
  774. FeatureDotProd]>;
  775. def ARMv92a : Architecture<"armv9.2-a", "ARMv92a", [HasV9_2aOps,
  776. FeatureAClass,
  777. FeatureDB,
  778. FeatureFPARMv8,
  779. FeatureNEON,
  780. FeatureDSP,
  781. FeatureTrustZone,
  782. FeatureMP,
  783. FeatureVirtualization,
  784. FeatureCRC,
  785. FeatureRAS,
  786. FeatureDotProd]>;
  787. def ARMv93a : Architecture<"armv9.3-a", "ARMv93a", [HasV9_3aOps,
  788. FeatureAClass,
  789. FeatureDB,
  790. FeatureFPARMv8,
  791. FeatureNEON,
  792. FeatureDSP,
  793. FeatureTrustZone,
  794. FeatureMP,
  795. FeatureVirtualization,
  796. FeatureCrypto,
  797. FeatureCRC,
  798. FeatureRAS,
  799. FeatureDotProd]>;
  800. def ARMv8r : Architecture<"armv8-r", "ARMv8r", [HasV8Ops,
  801. FeatureRClass,
  802. FeatureDB,
  803. FeatureDFB,
  804. FeatureDSP,
  805. FeatureCRC,
  806. FeatureMP,
  807. FeatureVirtualization,
  808. FeatureFPARMv8,
  809. FeatureNEON]>;
  810. def ARMv8mBaseline : Architecture<"armv8-m.base", "ARMv8mBaseline",
  811. [HasV8MBaselineOps,
  812. FeatureNoARM,
  813. ModeThumb,
  814. FeatureDB,
  815. FeatureHWDivThumb,
  816. FeatureV7Clrex,
  817. Feature8MSecExt,
  818. FeatureAcquireRelease,
  819. FeatureMClass,
  820. FeatureStrictAlign]>;
  821. def ARMv8mMainline : Architecture<"armv8-m.main", "ARMv8mMainline",
  822. [HasV8MMainlineOps,
  823. FeatureNoARM,
  824. ModeThumb,
  825. FeatureDB,
  826. FeatureHWDivThumb,
  827. Feature8MSecExt,
  828. FeatureAcquireRelease,
  829. FeatureMClass]>;
  830. def ARMv81mMainline : Architecture<"armv8.1-m.main", "ARMv81mMainline",
  831. [HasV8_1MMainlineOps,
  832. FeatureNoARM,
  833. ModeThumb,
  834. FeatureDB,
  835. FeatureHWDivThumb,
  836. Feature8MSecExt,
  837. FeatureAcquireRelease,
  838. FeatureMClass,
  839. FeatureRAS,
  840. FeatureLOB]>;
  841. // Aliases
  842. def IWMMXT : Architecture<"iwmmxt", "ARMv5te", [ARMv5te]>;
  843. def IWMMXT2 : Architecture<"iwmmxt2", "ARMv5te", [ARMv5te]>;
  844. def XScale : Architecture<"xscale", "ARMv5te", [ARMv5te]>;
  845. def ARMv6j : Architecture<"armv6j", "ARMv7a", [ARMv6]>;
  846. def ARMv7k : Architecture<"armv7k", "ARMv7a", [ARMv7a]>;
  847. def ARMv7s : Architecture<"armv7s", "ARMv7a", [ARMv7a]>;
  848. //===----------------------------------------------------------------------===//
  849. // Register File Description
  850. //===----------------------------------------------------------------------===//
  851. include "ARMRegisterInfo.td"
  852. include "ARMRegisterBanks.td"
  853. include "ARMCallingConv.td"
  854. //===----------------------------------------------------------------------===//
  855. // ARM schedules.
  856. //===----------------------------------------------------------------------===//
  857. //
  858. include "ARMPredicates.td"
  859. include "ARMSchedule.td"
  860. //===----------------------------------------------------------------------===//
  861. // Instruction Descriptions
  862. //===----------------------------------------------------------------------===//
  863. include "ARMInstrInfo.td"
  864. def ARMInstrInfo : InstrInfo;
  865. //===----------------------------------------------------------------------===//
  866. // ARM schedules
  867. //
  868. include "ARMScheduleV6.td"
  869. include "ARMScheduleA8.td"
  870. include "ARMScheduleA9.td"
  871. include "ARMScheduleSwift.td"
  872. include "ARMScheduleR52.td"
  873. include "ARMScheduleA57.td"
  874. include "ARMScheduleM4.td"
  875. include "ARMScheduleM7.td"
  876. //===----------------------------------------------------------------------===//
  877. // ARM processors
  878. //
  879. // Dummy CPU, used to target architectures
  880. def : ProcessorModel<"generic", CortexA8Model, []>;
  881. // FIXME: Several processors below are not using their own scheduler
  882. // model, but one of similar/previous processor. These should be fixed.
  883. def : ProcNoItin<"arm8", [ARMv4]>;
  884. def : ProcNoItin<"arm810", [ARMv4]>;
  885. def : ProcNoItin<"strongarm", [ARMv4]>;
  886. def : ProcNoItin<"strongarm110", [ARMv4]>;
  887. def : ProcNoItin<"strongarm1100", [ARMv4]>;
  888. def : ProcNoItin<"strongarm1110", [ARMv4]>;
  889. def : ProcNoItin<"arm7tdmi", [ARMv4t]>;
  890. def : ProcNoItin<"arm7tdmi-s", [ARMv4t]>;
  891. def : ProcNoItin<"arm710t", [ARMv4t]>;
  892. def : ProcNoItin<"arm720t", [ARMv4t]>;
  893. def : ProcNoItin<"arm9", [ARMv4t]>;
  894. def : ProcNoItin<"arm9tdmi", [ARMv4t]>;
  895. def : ProcNoItin<"arm920", [ARMv4t]>;
  896. def : ProcNoItin<"arm920t", [ARMv4t]>;
  897. def : ProcNoItin<"arm922t", [ARMv4t]>;
  898. def : ProcNoItin<"arm940t", [ARMv4t]>;
  899. def : ProcNoItin<"ep9312", [ARMv4t]>;
  900. def : ProcNoItin<"arm10tdmi", [ARMv5t]>;
  901. def : ProcNoItin<"arm1020t", [ARMv5t]>;
  902. def : ProcNoItin<"arm9e", [ARMv5te]>;
  903. def : ProcNoItin<"arm926ej-s", [ARMv5te]>;
  904. def : ProcNoItin<"arm946e-s", [ARMv5te]>;
  905. def : ProcNoItin<"arm966e-s", [ARMv5te]>;
  906. def : ProcNoItin<"arm968e-s", [ARMv5te]>;
  907. def : ProcNoItin<"arm10e", [ARMv5te]>;
  908. def : ProcNoItin<"arm1020e", [ARMv5te]>;
  909. def : ProcNoItin<"arm1022e", [ARMv5te]>;
  910. def : ProcNoItin<"xscale", [ARMv5te]>;
  911. def : ProcNoItin<"iwmmxt", [ARMv5te]>;
  912. def : Processor<"arm1136j-s", ARMV6Itineraries, [ARMv6]>;
  913. def : Processor<"arm1136jf-s", ARMV6Itineraries, [ARMv6,
  914. FeatureVFP2,
  915. FeatureHasSlowFPVMLx]>;
  916. def : Processor<"cortex-m0", ARMV6Itineraries, [ARMv6m,
  917. FeatureHasNoBranchPredictor]>;
  918. def : Processor<"cortex-m0plus", ARMV6Itineraries, [ARMv6m,
  919. FeatureHasNoBranchPredictor]>;
  920. def : Processor<"cortex-m1", ARMV6Itineraries, [ARMv6m,
  921. FeatureHasNoBranchPredictor]>;
  922. def : Processor<"sc000", ARMV6Itineraries, [ARMv6m,
  923. FeatureHasNoBranchPredictor]>;
  924. def : Processor<"arm1176jz-s", ARMV6Itineraries, [ARMv6kz]>;
  925. def : Processor<"arm1176jzf-s", ARMV6Itineraries, [ARMv6kz,
  926. FeatureVFP2,
  927. FeatureHasSlowFPVMLx]>;
  928. def : Processor<"mpcorenovfp", ARMV6Itineraries, [ARMv6k]>;
  929. def : Processor<"mpcore", ARMV6Itineraries, [ARMv6k,
  930. FeatureVFP2,
  931. FeatureHasSlowFPVMLx]>;
  932. def : Processor<"arm1156t2-s", ARMV6Itineraries, [ARMv6t2]>;
  933. def : Processor<"arm1156t2f-s", ARMV6Itineraries, [ARMv6t2,
  934. FeatureVFP2,
  935. FeatureHasSlowFPVMLx]>;
  936. def : ProcessorModel<"cortex-a5", CortexA8Model, [ARMv7a, ProcA5,
  937. FeatureHasRetAddrStack,
  938. FeatureTrustZone,
  939. FeatureSlowFPBrcc,
  940. FeatureHasSlowFPVMLx,
  941. FeatureHasSlowFPVFMx,
  942. FeatureVMLxForwarding,
  943. FeatureMP,
  944. FeatureVFP4]>;
  945. def : ProcessorModel<"cortex-a7", CortexA8Model, [ARMv7a, ProcA7,
  946. FeatureHasRetAddrStack,
  947. FeatureTrustZone,
  948. FeatureSlowFPBrcc,
  949. FeatureHasVMLxHazards,
  950. FeatureHasSlowFPVMLx,
  951. FeatureHasSlowFPVFMx,
  952. FeatureVMLxForwarding,
  953. FeatureMP,
  954. FeatureVFP4,
  955. FeatureVirtualization]>;
  956. def : ProcessorModel<"cortex-a8", CortexA8Model, [ARMv7a, ProcA8,
  957. FeatureHasRetAddrStack,
  958. FeatureNonpipelinedVFP,
  959. FeatureTrustZone,
  960. FeatureSlowFPBrcc,
  961. FeatureHasVMLxHazards,
  962. FeatureHasSlowFPVMLx,
  963. FeatureHasSlowFPVFMx,
  964. FeatureVMLxForwarding]>;
  965. def : ProcessorModel<"cortex-a9", CortexA9Model, [ARMv7a, ProcA9,
  966. FeatureHasRetAddrStack,
  967. FeatureTrustZone,
  968. FeatureHasVMLxHazards,
  969. FeatureVMLxForwarding,
  970. FeatureFP16,
  971. FeatureAvoidPartialCPSR,
  972. FeatureExpandMLx,
  973. FeaturePreferVMOVSR,
  974. FeatureMuxedUnits,
  975. FeatureNEONForFPMovs,
  976. FeatureCheckVLDnAlign,
  977. FeatureMP]>;
  978. def : ProcessorModel<"cortex-a12", CortexA9Model, [ARMv7a, ProcA12,
  979. FeatureHasRetAddrStack,
  980. FeatureTrustZone,
  981. FeatureVMLxForwarding,
  982. FeatureVFP4,
  983. FeatureAvoidPartialCPSR,
  984. FeatureVirtualization,
  985. FeatureMP]>;
  986. def : ProcessorModel<"cortex-a15", CortexA9Model, [ARMv7a, ProcA15,
  987. FeatureDontWidenVMOVS,
  988. FeatureSplatVFPToNeon,
  989. FeatureHasRetAddrStack,
  990. FeatureMuxedUnits,
  991. FeatureTrustZone,
  992. FeatureVFP4,
  993. FeatureMP,
  994. FeatureCheckVLDnAlign,
  995. FeatureAvoidPartialCPSR,
  996. FeatureVirtualization]>;
  997. def : ProcessorModel<"cortex-a17", CortexA9Model, [ARMv7a, ProcA17,
  998. FeatureHasRetAddrStack,
  999. FeatureTrustZone,
  1000. FeatureMP,
  1001. FeatureVMLxForwarding,
  1002. FeatureVFP4,
  1003. FeatureAvoidPartialCPSR,
  1004. FeatureVirtualization]>;
  1005. // FIXME: krait has currently the same features as A9 plus VFP4 and HWDiv
  1006. def : ProcessorModel<"krait", CortexA9Model, [ARMv7a, ProcKrait,
  1007. FeatureHasRetAddrStack,
  1008. FeatureMuxedUnits,
  1009. FeatureCheckVLDnAlign,
  1010. FeatureVMLxForwarding,
  1011. FeatureFP16,
  1012. FeatureAvoidPartialCPSR,
  1013. FeatureVFP4,
  1014. FeatureHWDivThumb,
  1015. FeatureHWDivARM]>;
  1016. def : ProcessorModel<"swift", SwiftModel, [ARMv7a, ProcSwift,
  1017. FeatureHasRetAddrStack,
  1018. FeatureNEONForFP,
  1019. FeatureVFP4,
  1020. FeatureUseWideStrideVFP,
  1021. FeatureMP,
  1022. FeatureHWDivThumb,
  1023. FeatureHWDivARM,
  1024. FeatureAvoidPartialCPSR,
  1025. FeatureAvoidMOVsShOp,
  1026. FeatureHasSlowFPVMLx,
  1027. FeatureHasSlowFPVFMx,
  1028. FeatureHasVMLxHazards,
  1029. FeatureProfUnpredicate,
  1030. FeaturePrefISHSTBarrier,
  1031. FeatureSlowOddRegister,
  1032. FeatureSlowLoadDSubreg,
  1033. FeatureSlowVGETLNi32,
  1034. FeatureSlowVDUP32,
  1035. FeatureUseMISched,
  1036. FeatureNoPostRASched]>;
  1037. def : ProcessorModel<"cortex-r4", CortexA8Model, [ARMv7r, ProcR4,
  1038. FeatureHasRetAddrStack,
  1039. FeatureAvoidPartialCPSR]>;
  1040. def : ProcessorModel<"cortex-r4f", CortexA8Model, [ARMv7r, ProcR4,
  1041. FeatureHasRetAddrStack,
  1042. FeatureSlowFPBrcc,
  1043. FeatureHasSlowFPVMLx,
  1044. FeatureHasSlowFPVFMx,
  1045. FeatureVFP3_D16,
  1046. FeatureAvoidPartialCPSR]>;
  1047. def : ProcessorModel<"cortex-r5", CortexA8Model, [ARMv7r, ProcR5,
  1048. FeatureHasRetAddrStack,
  1049. FeatureVFP3_D16,
  1050. FeatureSlowFPBrcc,
  1051. FeatureHWDivARM,
  1052. FeatureHasSlowFPVMLx,
  1053. FeatureHasSlowFPVFMx,
  1054. FeatureAvoidPartialCPSR]>;
  1055. def : ProcessorModel<"cortex-r7", CortexA8Model, [ARMv7r, ProcR7,
  1056. FeatureHasRetAddrStack,
  1057. FeatureVFP3_D16,
  1058. FeatureFP16,
  1059. FeatureMP,
  1060. FeatureSlowFPBrcc,
  1061. FeatureHWDivARM,
  1062. FeatureHasSlowFPVMLx,
  1063. FeatureHasSlowFPVFMx,
  1064. FeatureAvoidPartialCPSR]>;
  1065. def : ProcessorModel<"cortex-r8", CortexA8Model, [ARMv7r,
  1066. FeatureHasRetAddrStack,
  1067. FeatureVFP3_D16,
  1068. FeatureFP16,
  1069. FeatureMP,
  1070. FeatureSlowFPBrcc,
  1071. FeatureHWDivARM,
  1072. FeatureHasSlowFPVMLx,
  1073. FeatureHasSlowFPVFMx,
  1074. FeatureAvoidPartialCPSR]>;
  1075. def : ProcessorModel<"cortex-m3", CortexM4Model, [ARMv7m,
  1076. ProcM3,
  1077. FeaturePrefLoopAlign32,
  1078. FeatureUseMISched,
  1079. FeatureHasNoBranchPredictor]>;
  1080. def : ProcessorModel<"sc300", CortexM4Model, [ARMv7m,
  1081. ProcM3,
  1082. FeatureUseMISched,
  1083. FeatureHasNoBranchPredictor]>;
  1084. def : ProcessorModel<"cortex-m4", CortexM4Model, [ARMv7em,
  1085. FeatureVFP4_D16_SP,
  1086. FeaturePrefLoopAlign32,
  1087. FeatureHasSlowFPVMLx,
  1088. FeatureHasSlowFPVFMx,
  1089. FeatureUseMISched,
  1090. FeatureHasNoBranchPredictor]>;
  1091. def : ProcessorModel<"cortex-m7", CortexM7Model, [ARMv7em,
  1092. ProcM7,
  1093. FeatureFPARMv8_D16,
  1094. FeatureUseMISched]>;
  1095. def : ProcNoItin<"cortex-m23", [ARMv8mBaseline,
  1096. FeatureNoMovt,
  1097. FeatureHasNoBranchPredictor]>;
  1098. def : ProcessorModel<"cortex-m33", CortexM4Model, [ARMv8mMainline,
  1099. FeatureDSP,
  1100. FeatureFPARMv8_D16_SP,
  1101. FeaturePrefLoopAlign32,
  1102. FeatureHasSlowFPVMLx,
  1103. FeatureHasSlowFPVFMx,
  1104. FeatureUseMISched,
  1105. FeatureHasNoBranchPredictor,
  1106. FeatureFixCMSE_CVE_2021_35465]>;
  1107. def : ProcessorModel<"cortex-m35p", CortexM4Model, [ARMv8mMainline,
  1108. FeatureDSP,
  1109. FeatureFPARMv8_D16_SP,
  1110. FeaturePrefLoopAlign32,
  1111. FeatureHasSlowFPVMLx,
  1112. FeatureHasSlowFPVFMx,
  1113. FeatureUseMISched,
  1114. FeatureHasNoBranchPredictor,
  1115. FeatureFixCMSE_CVE_2021_35465]>;
  1116. def : ProcessorModel<"cortex-m55", CortexM4Model, [ARMv81mMainline,
  1117. FeatureDSP,
  1118. FeatureFPARMv8_D16,
  1119. FeatureUseMISched,
  1120. FeatureHasNoBranchPredictor,
  1121. FeaturePrefLoopAlign32,
  1122. FeatureHasSlowFPVMLx,
  1123. HasMVEFloatOps,
  1124. FeatureFixCMSE_CVE_2021_35465]>;
  1125. def : ProcNoItin<"cortex-a32", [ARMv8a,
  1126. FeatureHWDivThumb,
  1127. FeatureHWDivARM,
  1128. FeatureCrypto,
  1129. FeatureCRC]>;
  1130. def : ProcNoItin<"cortex-a35", [ARMv8a, ProcA35,
  1131. FeatureHWDivThumb,
  1132. FeatureHWDivARM,
  1133. FeatureCrypto,
  1134. FeatureCRC]>;
  1135. def : ProcNoItin<"cortex-a53", [ARMv8a, ProcA53,
  1136. FeatureHWDivThumb,
  1137. FeatureHWDivARM,
  1138. FeatureCrypto,
  1139. FeatureCRC,
  1140. FeatureFPAO]>;
  1141. def : ProcNoItin<"cortex-a55", [ARMv82a, ProcA55,
  1142. FeatureHWDivThumb,
  1143. FeatureHWDivARM,
  1144. FeatureDotProd]>;
  1145. def : ProcessorModel<"cortex-a57", CortexA57Model, [ARMv8a, ProcA57,
  1146. FeatureHWDivThumb,
  1147. FeatureHWDivARM,
  1148. FeatureCrypto,
  1149. FeatureCRC,
  1150. FeatureFPAO,
  1151. FeatureAvoidPartialCPSR,
  1152. FeatureCheapPredicableCPSR]>;
  1153. def : ProcessorModel<"cortex-a72", CortexA57Model, [ARMv8a, ProcA72,
  1154. FeatureHWDivThumb,
  1155. FeatureHWDivARM,
  1156. FeatureCrypto,
  1157. FeatureCRC]>;
  1158. def : ProcNoItin<"cortex-a73", [ARMv8a, ProcA73,
  1159. FeatureHWDivThumb,
  1160. FeatureHWDivARM,
  1161. FeatureCrypto,
  1162. FeatureCRC]>;
  1163. def : ProcNoItin<"cortex-a75", [ARMv82a, ProcA75,
  1164. FeatureHWDivThumb,
  1165. FeatureHWDivARM,
  1166. FeatureDotProd]>;
  1167. def : ProcNoItin<"cortex-a76", [ARMv82a, ProcA76,
  1168. FeatureHWDivThumb,
  1169. FeatureHWDivARM,
  1170. FeatureCrypto,
  1171. FeatureCRC,
  1172. FeatureFullFP16,
  1173. FeatureDotProd]>;
  1174. def : ProcNoItin<"cortex-a76ae", [ARMv82a, ProcA76,
  1175. FeatureHWDivThumb,
  1176. FeatureHWDivARM,
  1177. FeatureCrypto,
  1178. FeatureCRC,
  1179. FeatureFullFP16,
  1180. FeatureDotProd]>;
  1181. def : ProcNoItin<"cortex-a77", [ARMv82a, ProcA77,
  1182. FeatureHWDivThumb,
  1183. FeatureHWDivARM,
  1184. FeatureCrypto,
  1185. FeatureCRC,
  1186. FeatureFullFP16,
  1187. FeatureDotProd]>;
  1188. def : ProcNoItin<"cortex-a78", [ARMv82a, ProcA78,
  1189. FeatureHWDivThumb,
  1190. FeatureHWDivARM,
  1191. FeatureCrypto,
  1192. FeatureCRC,
  1193. FeatureFullFP16,
  1194. FeatureDotProd]>;
  1195. def : ProcNoItin<"cortex-a78c", [ARMv82a, ProcA78C,
  1196. FeatureHWDivThumb,
  1197. FeatureHWDivARM,
  1198. FeatureCrypto,
  1199. FeatureCRC,
  1200. FeatureDotProd,
  1201. FeatureFullFP16]>;
  1202. def : ProcNoItin<"cortex-a710", [ARMv9a, ProcA710,
  1203. FeatureHWDivThumb,
  1204. FeatureHWDivARM,
  1205. FeatureFP16FML,
  1206. FeatureBF16,
  1207. FeatureMatMulInt8,
  1208. FeatureSB]>;
  1209. def : ProcNoItin<"cortex-x1", [ARMv82a, ProcX1,
  1210. FeatureHWDivThumb,
  1211. FeatureHWDivARM,
  1212. FeatureCrypto,
  1213. FeatureCRC,
  1214. FeatureFullFP16,
  1215. FeatureDotProd]>;
  1216. def : ProcNoItin<"cortex-x1c", [ARMv82a, ProcX1C,
  1217. FeatureHWDivThumb,
  1218. FeatureHWDivARM,
  1219. FeatureCrypto,
  1220. FeatureCRC,
  1221. FeatureFullFP16,
  1222. FeatureDotProd]>;
  1223. def : ProcNoItin<"neoverse-v1", [ARMv84a,
  1224. FeatureHWDivThumb,
  1225. FeatureHWDivARM,
  1226. FeatureCrypto,
  1227. FeatureCRC,
  1228. FeatureFullFP16,
  1229. FeatureBF16,
  1230. FeatureMatMulInt8]>;
  1231. def : ProcNoItin<"neoverse-n1", [ARMv82a,
  1232. FeatureHWDivThumb,
  1233. FeatureHWDivARM,
  1234. FeatureCrypto,
  1235. FeatureCRC,
  1236. FeatureDotProd]>;
  1237. def : ProcNoItin<"neoverse-n2", [ARMv85a,
  1238. FeatureBF16,
  1239. FeatureMatMulInt8]>;
  1240. def : ProcessorModel<"cyclone", SwiftModel, [ARMv8a, ProcSwift,
  1241. FeatureHasRetAddrStack,
  1242. FeatureNEONForFP,
  1243. FeatureVFP4,
  1244. FeatureMP,
  1245. FeatureHWDivThumb,
  1246. FeatureHWDivARM,
  1247. FeatureAvoidPartialCPSR,
  1248. FeatureAvoidMOVsShOp,
  1249. FeatureHasSlowFPVMLx,
  1250. FeatureHasSlowFPVFMx,
  1251. FeatureCrypto,
  1252. FeatureUseMISched,
  1253. FeatureZCZeroing,
  1254. FeatureNoPostRASched]>;
  1255. def : ProcNoItin<"exynos-m3", [ARMv8a, ProcExynos]>;
  1256. def : ProcNoItin<"exynos-m4", [ARMv82a, ProcExynos,
  1257. FeatureFullFP16,
  1258. FeatureDotProd]>;
  1259. def : ProcNoItin<"exynos-m5", [ARMv82a, ProcExynos,
  1260. FeatureFullFP16,
  1261. FeatureDotProd]>;
  1262. def : ProcNoItin<"kryo", [ARMv8a, ProcKryo,
  1263. FeatureHWDivThumb,
  1264. FeatureHWDivARM,
  1265. FeatureCrypto,
  1266. FeatureCRC]>;
  1267. def : ProcessorModel<"cortex-r52", CortexR52Model, [ARMv8r, ProcR52,
  1268. FeatureUseMISched,
  1269. FeatureFPAO]>;
  1270. //===----------------------------------------------------------------------===//
  1271. // Declare the target which we are implementing
  1272. //===----------------------------------------------------------------------===//
  1273. def ARMAsmWriter : AsmWriter {
  1274. string AsmWriterClassName = "InstPrinter";
  1275. int PassSubtarget = 1;
  1276. int Variant = 0;
  1277. bit isMCAsmWriter = 1;
  1278. }
  1279. def ARMAsmParser : AsmParser {
  1280. bit ReportMultipleNearMisses = 1;
  1281. }
  1282. def ARMAsmParserVariant : AsmParserVariant {
  1283. int Variant = 0;
  1284. string Name = "ARM";
  1285. string BreakCharacters = ".";
  1286. }
  1287. def ARM : Target {
  1288. // Pull in Instruction Info.
  1289. let InstructionSet = ARMInstrInfo;
  1290. let AssemblyWriters = [ARMAsmWriter];
  1291. let AssemblyParsers = [ARMAsmParser];
  1292. let AssemblyParserVariants = [ARMAsmParserVariant];
  1293. let AllowRegisterRenaming = 1;
  1294. }