10b57cec5SDimitry Andric//===-- ARM.td - Describe the ARM Target Machine -----------*- tablegen -*-===// 20b57cec5SDimitry Andric// 30b57cec5SDimitry Andric// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 40b57cec5SDimitry Andric// See https://llvm.org/LICENSE.txt for license information. 50b57cec5SDimitry Andric// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 60b57cec5SDimitry Andric// 70b57cec5SDimitry Andric//===----------------------------------------------------------------------===// 80b57cec5SDimitry Andric// 90b57cec5SDimitry Andric// 100b57cec5SDimitry Andric//===----------------------------------------------------------------------===// 110b57cec5SDimitry Andric 120b57cec5SDimitry Andric//===----------------------------------------------------------------------===// 130b57cec5SDimitry Andric// Target-independent interfaces which we are implementing 140b57cec5SDimitry Andric//===----------------------------------------------------------------------===// 150b57cec5SDimitry Andric 160b57cec5SDimitry Andricinclude "llvm/Target/Target.td" 170b57cec5SDimitry Andric 180b57cec5SDimitry Andric//===----------------------------------------------------------------------===// 190b57cec5SDimitry Andric// ARM Subtarget state. 200b57cec5SDimitry Andric// 210b57cec5SDimitry Andric 22*81ad6265SDimitry Andric// True if compiling for Thumb, false for ARM. 23*81ad6265SDimitry Andricdef ModeThumb : SubtargetFeature<"thumb-mode", "IsThumb", 240b57cec5SDimitry Andric "true", "Thumb mode">; 250b57cec5SDimitry Andric 26*81ad6265SDimitry Andric// True if we're using software floating point features. 270b57cec5SDimitry Andricdef ModeSoftFloat : SubtargetFeature<"soft-float","UseSoftFloat", 280b57cec5SDimitry Andric "true", "Use software floating " 290b57cec5SDimitry Andric "point features.">; 300b57cec5SDimitry Andric 310b57cec5SDimitry Andric 320b57cec5SDimitry Andric//===----------------------------------------------------------------------===// 330b57cec5SDimitry Andric// ARM Subtarget features. 340b57cec5SDimitry Andric// 350b57cec5SDimitry Andric 360b57cec5SDimitry Andric// Floating Point, HW Division and Neon Support 370b57cec5SDimitry Andric 380b57cec5SDimitry Andric// FP loads/stores/moves, shared between VFP and MVE (even in the integer-only 390b57cec5SDimitry Andric// version). 400b57cec5SDimitry Andricdef FeatureFPRegs : SubtargetFeature<"fpregs", "HasFPRegs", "true", 410b57cec5SDimitry Andric "Enable FP registers">; 420b57cec5SDimitry Andric 430b57cec5SDimitry Andric// 16-bit FP loads/stores/moves, shared between VFP (with the v8.2A FP16 440b57cec5SDimitry Andric// extension) and MVE (even in the integer-only version). 450b57cec5SDimitry Andricdef FeatureFPRegs16 : SubtargetFeature<"fpregs16", "HasFPRegs16", "true", 460b57cec5SDimitry Andric "Enable 16-bit FP registers", 470b57cec5SDimitry Andric [FeatureFPRegs]>; 480b57cec5SDimitry Andric 490b57cec5SDimitry Andricdef FeatureFPRegs64 : SubtargetFeature<"fpregs64", "HasFPRegs64", "true", 500b57cec5SDimitry Andric "Enable 64-bit FP registers", 510b57cec5SDimitry Andric [FeatureFPRegs]>; 520b57cec5SDimitry Andric 53*81ad6265SDimitry Andric// True if the floating point unit supports double precision. 540b57cec5SDimitry Andricdef FeatureFP64 : SubtargetFeature<"fp64", "HasFP64", "true", 550b57cec5SDimitry Andric "Floating point unit supports " 560b57cec5SDimitry Andric "double precision", 570b57cec5SDimitry Andric [FeatureFPRegs64]>; 580b57cec5SDimitry Andric 59*81ad6265SDimitry Andric// True if subtarget has the full 32 double precision FP registers for VFPv3. 600b57cec5SDimitry Andricdef FeatureD32 : SubtargetFeature<"d32", "HasD32", "true", 610b57cec5SDimitry Andric "Extend FP to 32 double registers">; 620b57cec5SDimitry Andric 63*81ad6265SDimitry Andric/// Versions of the VFP flags restricted to single precision, or to 64*81ad6265SDimitry Andric/// 16 d-registers, or both. 650b57cec5SDimitry Andricmulticlass VFPver<string name, string query, string description, 660b57cec5SDimitry Andric list<SubtargetFeature> prev, 670b57cec5SDimitry Andric list<SubtargetFeature> otherimplies, 680b57cec5SDimitry Andric list<SubtargetFeature> vfp2prev = []> { 690b57cec5SDimitry Andric def _D16_SP: SubtargetFeature< 700b57cec5SDimitry Andric name#"d16sp", query#"D16SP", "true", 710b57cec5SDimitry Andric description#" with only 16 d-registers and no double precision", 720b57cec5SDimitry Andric !foreach(v, prev, !cast<SubtargetFeature>(v # "_D16_SP")) # 730b57cec5SDimitry Andric !foreach(v, vfp2prev, !cast<SubtargetFeature>(v # "_SP")) # 740b57cec5SDimitry Andric otherimplies>; 750b57cec5SDimitry Andric def _SP: SubtargetFeature< 760b57cec5SDimitry Andric name#"sp", query#"SP", "true", 770b57cec5SDimitry Andric description#" with no double precision", 780b57cec5SDimitry Andric !foreach(v, prev, !cast<SubtargetFeature>(v # "_SP")) # 790b57cec5SDimitry Andric otherimplies # [FeatureD32, !cast<SubtargetFeature>(NAME # "_D16_SP")]>; 800b57cec5SDimitry Andric def _D16: SubtargetFeature< 810b57cec5SDimitry Andric name#"d16", query#"D16", "true", 820b57cec5SDimitry Andric description#" with only 16 d-registers", 830b57cec5SDimitry Andric !foreach(v, prev, !cast<SubtargetFeature>(v # "_D16")) # 840b57cec5SDimitry Andric vfp2prev # 850b57cec5SDimitry Andric otherimplies # [FeatureFP64, !cast<SubtargetFeature>(NAME # "_D16_SP")]>; 860b57cec5SDimitry Andric def "": SubtargetFeature< 870b57cec5SDimitry Andric name, query, "true", description, 880b57cec5SDimitry Andric prev # otherimplies # [ 890b57cec5SDimitry Andric !cast<SubtargetFeature>(NAME # "_D16"), 900b57cec5SDimitry Andric !cast<SubtargetFeature>(NAME # "_SP")]>; 910b57cec5SDimitry Andric} 920b57cec5SDimitry Andric 93c14a5a88SDimitry Andricdef FeatureVFP2_SP : SubtargetFeature<"vfp2sp", "HasVFPv2SP", "true", 94c14a5a88SDimitry Andric "Enable VFP2 instructions with " 95c14a5a88SDimitry Andric "no double precision", 968bcb0991SDimitry Andric [FeatureFPRegs]>; 978bcb0991SDimitry Andric 980b57cec5SDimitry Andricdef FeatureVFP2 : SubtargetFeature<"vfp2", "HasVFPv2", "true", 990b57cec5SDimitry Andric "Enable VFP2 instructions", 1008bcb0991SDimitry Andric [FeatureFP64, FeatureVFP2_SP]>; 1010b57cec5SDimitry Andric 1020b57cec5SDimitry Andricdefm FeatureVFP3: VFPver<"vfp3", "HasVFPv3", "Enable VFP3 instructions", 1030b57cec5SDimitry Andric [], [], [FeatureVFP2]>; 1040b57cec5SDimitry Andric 1050b57cec5SDimitry Andricdef FeatureNEON : SubtargetFeature<"neon", "HasNEON", "true", 1060b57cec5SDimitry Andric "Enable NEON instructions", 1070b57cec5SDimitry Andric [FeatureVFP3]>; 1080b57cec5SDimitry Andric 109*81ad6265SDimitry Andric// True if subtarget supports half-precision FP conversions. 1100b57cec5SDimitry Andricdef FeatureFP16 : SubtargetFeature<"fp16", "HasFP16", "true", 1110b57cec5SDimitry Andric "Enable half-precision " 1120b57cec5SDimitry Andric "floating point">; 1130b57cec5SDimitry Andric 1140b57cec5SDimitry Andricdefm FeatureVFP4: VFPver<"vfp4", "HasVFPv4", "Enable VFP4 instructions", 1150b57cec5SDimitry Andric [FeatureVFP3], [FeatureFP16]>; 1160b57cec5SDimitry Andric 1170b57cec5SDimitry Andricdefm FeatureFPARMv8: VFPver<"fp-armv8", "HasFPARMv8", "Enable ARMv8 FP", 1180b57cec5SDimitry Andric [FeatureVFP4], []>; 1190b57cec5SDimitry Andric 120*81ad6265SDimitry Andric// True if subtarget supports half-precision FP operations. 1210b57cec5SDimitry Andricdef FeatureFullFP16 : SubtargetFeature<"fullfp16", "HasFullFP16", "true", 1220b57cec5SDimitry Andric "Enable full half-precision " 1230b57cec5SDimitry Andric "floating point", 1240b57cec5SDimitry Andric [FeatureFPARMv8_D16_SP, FeatureFPRegs16]>; 1250b57cec5SDimitry Andric 126*81ad6265SDimitry Andric// True if subtarget supports half-precision FP fml operations. 1270b57cec5SDimitry Andricdef FeatureFP16FML : SubtargetFeature<"fp16fml", "HasFP16FML", "true", 1280b57cec5SDimitry Andric "Enable full half-precision " 1290b57cec5SDimitry Andric "floating point fml instructions", 1300b57cec5SDimitry Andric [FeatureFullFP16]>; 1310b57cec5SDimitry Andric 132*81ad6265SDimitry Andric// True if subtarget supports [su]div in Thumb mode. 1330b57cec5SDimitry Andricdef FeatureHWDivThumb : SubtargetFeature<"hwdiv", 134*81ad6265SDimitry Andric "HasDivideInThumbMode", "true", 1350b57cec5SDimitry Andric "Enable divide instructions in Thumb">; 1360b57cec5SDimitry Andric 137*81ad6265SDimitry Andric// True if subtarget supports [su]div in ARM mode. 1380b57cec5SDimitry Andricdef FeatureHWDivARM : SubtargetFeature<"hwdiv-arm", 139*81ad6265SDimitry Andric "HasDivideInARMMode", "true", 1400b57cec5SDimitry Andric "Enable divide instructions in ARM mode">; 1410b57cec5SDimitry Andric 1420b57cec5SDimitry Andric// Atomic Support 143*81ad6265SDimitry Andric 144*81ad6265SDimitry Andric// True if the subtarget supports DMB / DSB data barrier instructions. 1450b57cec5SDimitry Andricdef FeatureDB : SubtargetFeature<"db", "HasDataBarrier", "true", 1460b57cec5SDimitry Andric "Has data barrier (dmb/dsb) instructions">; 1470b57cec5SDimitry Andric 148*81ad6265SDimitry Andric// True if the subtarget supports CLREX instructions. 1490b57cec5SDimitry Andricdef FeatureV7Clrex : SubtargetFeature<"v7clrex", "HasV7Clrex", "true", 1500b57cec5SDimitry Andric "Has v7 clrex instruction">; 1510b57cec5SDimitry Andric 152*81ad6265SDimitry Andric// True if the subtarget supports DFB data barrier instruction. 1530b57cec5SDimitry Andricdef FeatureDFB : SubtargetFeature<"dfb", "HasFullDataBarrier", "true", 1540b57cec5SDimitry Andric "Has full data barrier (dfb) instruction">; 1550b57cec5SDimitry Andric 156*81ad6265SDimitry Andric// True if the subtarget supports v8 atomics (LDA/LDAEX etc) instructions. 1570b57cec5SDimitry Andricdef FeatureAcquireRelease : SubtargetFeature<"acquire-release", 1580b57cec5SDimitry Andric "HasAcquireRelease", "true", 1590b57cec5SDimitry Andric "Has v8 acquire/release (lda/ldaex " 1600b57cec5SDimitry Andric " etc) instructions">; 1610b57cec5SDimitry Andric 1620b57cec5SDimitry Andric 163*81ad6265SDimitry Andric// True if floating point compare + branch is slow. 164*81ad6265SDimitry Andricdef FeatureSlowFPBrcc : SubtargetFeature<"slow-fp-brcc", "IsFPBrccSlow", "true", 1650b57cec5SDimitry Andric "FP compare + branch is slow">; 1660b57cec5SDimitry Andric 167*81ad6265SDimitry Andric// True if the processor supports the Performance Monitor Extensions. These 168*81ad6265SDimitry Andric// include a generic cycle-counter as well as more fine-grained (often 169*81ad6265SDimitry Andric// implementation-specific) events. 1700b57cec5SDimitry Andricdef FeaturePerfMon : SubtargetFeature<"perfmon", "HasPerfMon", "true", 1710b57cec5SDimitry Andric "Enable support for Performance " 1720b57cec5SDimitry Andric "Monitor extensions">; 1730b57cec5SDimitry Andric 1740b57cec5SDimitry Andric 1750b57cec5SDimitry Andric// TrustZone Security Extensions 176*81ad6265SDimitry Andric 177*81ad6265SDimitry Andric// True if processor supports TrustZone security extensions. 1780b57cec5SDimitry Andricdef FeatureTrustZone : SubtargetFeature<"trustzone", "HasTrustZone", "true", 1790b57cec5SDimitry Andric "Enable support for TrustZone " 1800b57cec5SDimitry Andric "security extensions">; 1810b57cec5SDimitry Andric 182*81ad6265SDimitry Andric// True if processor supports ARMv8-M Security Extensions. 1830b57cec5SDimitry Andricdef Feature8MSecExt : SubtargetFeature<"8msecext", "Has8MSecExt", "true", 1840b57cec5SDimitry Andric "Enable support for ARMv8-M " 1850b57cec5SDimitry Andric "Security Extensions">; 1860b57cec5SDimitry Andric 187*81ad6265SDimitry Andric// True if processor supports SHA1 and SHA256. 1880b57cec5SDimitry Andricdef FeatureSHA2 : SubtargetFeature<"sha2", "HasSHA2", "true", 1890b57cec5SDimitry Andric "Enable SHA1 and SHA256 support", [FeatureNEON]>; 1900b57cec5SDimitry Andric 1910b57cec5SDimitry Andricdef FeatureAES : SubtargetFeature<"aes", "HasAES", "true", 1920b57cec5SDimitry Andric "Enable AES support", [FeatureNEON]>; 1930b57cec5SDimitry Andric 194*81ad6265SDimitry Andric// True if processor supports Cryptography extensions. 1950b57cec5SDimitry Andricdef FeatureCrypto : SubtargetFeature<"crypto", "HasCrypto", "true", 1960b57cec5SDimitry Andric "Enable support for " 1970b57cec5SDimitry Andric "Cryptography extensions", 1980b57cec5SDimitry Andric [FeatureNEON, FeatureSHA2, FeatureAES]>; 1990b57cec5SDimitry Andric 200*81ad6265SDimitry Andric// True if processor supports CRC instructions. 2010b57cec5SDimitry Andricdef FeatureCRC : SubtargetFeature<"crc", "HasCRC", "true", 2020b57cec5SDimitry Andric "Enable support for CRC instructions">; 2030b57cec5SDimitry Andric 204*81ad6265SDimitry Andric// True if the ARMv8.2A dot product instructions are supported. 2050b57cec5SDimitry Andricdef FeatureDotProd : SubtargetFeature<"dotprod", "HasDotProd", "true", 2060b57cec5SDimitry Andric "Enable support for dot product instructions", 2070b57cec5SDimitry Andric [FeatureNEON]>; 2080b57cec5SDimitry Andric 209*81ad6265SDimitry Andric// True if the processor supports RAS extensions. 210*81ad6265SDimitry Andric// Not to be confused with FeatureHasRetAddrStack (return address stack). 2110b57cec5SDimitry Andricdef FeatureRAS : SubtargetFeature<"ras", "HasRAS", "true", 2120b57cec5SDimitry Andric "Enable Reliability, Availability " 2130b57cec5SDimitry Andric "and Serviceability extensions">; 2140b57cec5SDimitry Andric 215*81ad6265SDimitry Andric// Fast computation of non-negative address offsets. 216*81ad6265SDimitry Andric// True if processor does positive address offset computation faster. 2170b57cec5SDimitry Andricdef FeatureFPAO : SubtargetFeature<"fpao", "HasFPAO", "true", 2180b57cec5SDimitry Andric "Enable fast computation of " 2190b57cec5SDimitry Andric "positive address offsets">; 2200b57cec5SDimitry Andric 221*81ad6265SDimitry Andric// Fast execution of AES crypto operations. 222*81ad6265SDimitry Andric// True if processor executes back to back AES instruction pairs faster. 2230b57cec5SDimitry Andricdef FeatureFuseAES : SubtargetFeature<"fuse-aes", "HasFuseAES", "true", 2240b57cec5SDimitry Andric "CPU fuses AES crypto operations">; 2250b57cec5SDimitry Andric 226*81ad6265SDimitry Andric// Fast execution of bottom and top halves of literal generation. 227*81ad6265SDimitry Andric// True if processor executes back to back bottom and top halves of literal generation faster. 2280b57cec5SDimitry Andricdef FeatureFuseLiterals : SubtargetFeature<"fuse-literals", "HasFuseLiterals", "true", 2290b57cec5SDimitry Andric "CPU fuses literal generation operations">; 2300b57cec5SDimitry Andric 231*81ad6265SDimitry Andric// The way of reading thread pointer. 232*81ad6265SDimitry Andric// True if read thread pointer from coprocessor register. 233*81ad6265SDimitry Andricdef FeatureReadTp : SubtargetFeature<"read-tp-hard", "IsReadTPHard", "true", 2340b57cec5SDimitry Andric "Reading thread pointer from register">; 2350b57cec5SDimitry Andric 2360b57cec5SDimitry Andric// Cyclone can zero VFP registers in 0 cycles. 237*81ad6265SDimitry Andric// True if the instructions "vmov.i32 d0, #0" and "vmov.i32 q0, #0" are 238*81ad6265SDimitry Andric// particularly effective at zeroing a VFP register. 2390b57cec5SDimitry Andricdef FeatureZCZeroing : SubtargetFeature<"zcz", "HasZeroCycleZeroing", "true", 2400b57cec5SDimitry Andric "Has zero-cycle zeroing instructions">; 2410b57cec5SDimitry Andric 242*81ad6265SDimitry Andric// Whether it is profitable to unpredicate certain instructions during if-conversion. 243*81ad6265SDimitry Andric// True if if conversion may decide to leave some instructions unpredicated. 2440b57cec5SDimitry Andricdef FeatureProfUnpredicate : SubtargetFeature<"prof-unpr", 2450b57cec5SDimitry Andric "IsProfitableToUnpredicate", "true", 2460b57cec5SDimitry Andric "Is profitable to unpredicate">; 2470b57cec5SDimitry Andric 2480b57cec5SDimitry Andric// Some targets (e.g. Swift) have microcoded VGETLNi32. 249*81ad6265SDimitry Andric// True if VMOV will be favored over VGETLNi32. 2500b57cec5SDimitry Andricdef FeatureSlowVGETLNi32 : SubtargetFeature<"slow-vgetlni32", 2510b57cec5SDimitry Andric "HasSlowVGETLNi32", "true", 2520b57cec5SDimitry Andric "Has slow VGETLNi32 - prefer VMOV">; 2530b57cec5SDimitry Andric 2540b57cec5SDimitry Andric// Some targets (e.g. Swift) have microcoded VDUP32. 255*81ad6265SDimitry Andric// True if VMOV will be favored over VDUP. 2560b57cec5SDimitry Andricdef FeatureSlowVDUP32 : SubtargetFeature<"slow-vdup32", "HasSlowVDUP32", 2570b57cec5SDimitry Andric "true", 2580b57cec5SDimitry Andric "Has slow VDUP32 - prefer VMOV">; 2590b57cec5SDimitry Andric 2600b57cec5SDimitry Andric// Some targets (e.g. Cortex-A9) prefer VMOVSR to VMOVDRR even when using NEON 2610b57cec5SDimitry Andric// for scalar FP, as this allows more effective execution domain optimization. 262*81ad6265SDimitry Andric// True if VMOVSR will be favored over VMOVDRR. 2630b57cec5SDimitry Andricdef FeaturePreferVMOVSR : SubtargetFeature<"prefer-vmovsr", "PreferVMOVSR", 2640b57cec5SDimitry Andric "true", "Prefer VMOVSR">; 2650b57cec5SDimitry Andric 2660b57cec5SDimitry Andric// Swift has ISHST barriers compatible with Atomic Release semantics but weaker 267*81ad6265SDimitry Andric// than ISH. 268*81ad6265SDimitry Andric// True if ISHST barriers will be used for Release semantics. 269*81ad6265SDimitry Andricdef FeaturePrefISHSTBarrier : SubtargetFeature<"prefer-ishst", "PreferISHSTBarriers", 2700b57cec5SDimitry Andric "true", "Prefer ISHST barriers">; 2710b57cec5SDimitry Andric 2720b57cec5SDimitry Andric// Some targets (e.g. Cortex-A9) have muxed AGU and NEON/FPU. 273*81ad6265SDimitry Andric// True if the AGU and NEON/FPU units are multiplexed. 2740b57cec5SDimitry Andricdef FeatureMuxedUnits : SubtargetFeature<"muxed-units", "HasMuxedUnits", 2750b57cec5SDimitry Andric "true", 2760b57cec5SDimitry Andric "Has muxed AGU and NEON/FPU">; 2770b57cec5SDimitry Andric 2780b57cec5SDimitry Andric// Whether VLDM/VSTM starting with odd register number need more microops 279*81ad6265SDimitry Andric// than single VLDRS. 280*81ad6265SDimitry Andric// True if a VLDM/VSTM starting with an odd register number is considered to 281*81ad6265SDimitry Andric// take more microops than single VLDRS/VSTRS. 282*81ad6265SDimitry Andricdef FeatureSlowOddRegister : SubtargetFeature<"slow-odd-reg", "HasSlowOddRegister", 2830b57cec5SDimitry Andric "true", "VLDM/VSTM starting " 2840b57cec5SDimitry Andric "with an odd register is slow">; 2850b57cec5SDimitry Andric 2860b57cec5SDimitry Andric// Some targets have a renaming dependency when loading into D subregisters. 287*81ad6265SDimitry Andric// True if loading into a D subregister will be penalized. 2880b57cec5SDimitry Andricdef FeatureSlowLoadDSubreg : SubtargetFeature<"slow-load-D-subreg", 289*81ad6265SDimitry Andric "HasSlowLoadDSubregister", "true", 2900b57cec5SDimitry Andric "Loading into D subregs is slow">; 2910b57cec5SDimitry Andric 292*81ad6265SDimitry Andric// True if use a wider stride when allocating VFP registers. 2930b57cec5SDimitry Andricdef FeatureUseWideStrideVFP : SubtargetFeature<"wide-stride-vfp", 2940b57cec5SDimitry Andric "UseWideStrideVFP", "true", 2950b57cec5SDimitry Andric "Use a wide stride when allocating VFP registers">; 2960b57cec5SDimitry Andric 2970b57cec5SDimitry Andric// Some targets (e.g. Cortex-A15) never want VMOVS to be widened to VMOVD. 298*81ad6265SDimitry Andric// True if VMOVS will never be widened to VMOVD. 2990b57cec5SDimitry Andricdef FeatureDontWidenVMOVS : SubtargetFeature<"dont-widen-vmovs", 3000b57cec5SDimitry Andric "DontWidenVMOVS", "true", 3010b57cec5SDimitry Andric "Don't widen VMOVS to VMOVD">; 3020b57cec5SDimitry Andric 3030b57cec5SDimitry Andric// Some targets (e.g. Cortex-A15) prefer to avoid mixing operations on different 3040b57cec5SDimitry Andric// VFP register widths. 305*81ad6265SDimitry Andric// True if splat a register between VFP and NEON instructions. 3060b57cec5SDimitry Andricdef FeatureSplatVFPToNeon : SubtargetFeature<"splat-vfp-neon", 307*81ad6265SDimitry Andric "UseSplatVFPToNeon", "true", 3080b57cec5SDimitry Andric "Splat register from VFP to NEON", 3090b57cec5SDimitry Andric [FeatureDontWidenVMOVS]>; 3100b57cec5SDimitry Andric 3110b57cec5SDimitry Andric// Whether or not it is profitable to expand VFP/NEON MLA/MLS instructions. 312*81ad6265SDimitry Andric// True if run the MLx expansion pass. 3130b57cec5SDimitry Andricdef FeatureExpandMLx : SubtargetFeature<"expand-fp-mlx", 3140b57cec5SDimitry Andric "ExpandMLx", "true", 3150b57cec5SDimitry Andric "Expand VFP/NEON MLA/MLS instructions">; 3160b57cec5SDimitry Andric 3170b57cec5SDimitry Andric// Some targets have special RAW hazards for VFP/NEON VMLA/VMLS. 318*81ad6265SDimitry Andric// True if VFP/NEON VMLA/VMLS have special RAW hazards. 3190b57cec5SDimitry Andricdef FeatureHasVMLxHazards : SubtargetFeature<"vmlx-hazards", "HasVMLxHazards", 3200b57cec5SDimitry Andric "true", "Has VMLx hazards">; 3210b57cec5SDimitry Andric 3220b57cec5SDimitry Andric// Some targets (e.g. Cortex-A9) want to convert VMOVRS, VMOVSR and VMOVS from 3230b57cec5SDimitry Andric// VFP to NEON, as an execution domain optimization. 324*81ad6265SDimitry Andric// True if VMOVRS, VMOVSR and VMOVS will be converted from VFP to NEON. 3250b57cec5SDimitry Andricdef FeatureNEONForFPMovs : SubtargetFeature<"neon-fpmovs", 3260b57cec5SDimitry Andric "UseNEONForFPMovs", "true", 3270b57cec5SDimitry Andric "Convert VMOVSR, VMOVRS, " 3280b57cec5SDimitry Andric "VMOVS to NEON">; 3290b57cec5SDimitry Andric 3300b57cec5SDimitry Andric// Some processors benefit from using NEON instructions for scalar 3310b57cec5SDimitry Andric// single-precision FP operations. This affects instruction selection and should 3320b57cec5SDimitry Andric// only be enabled if the handling of denormals is not important. 333*81ad6265SDimitry Andric// Use the method useNEONForSinglePrecisionFP() to determine if NEON should actually be used. 3340b57cec5SDimitry Andricdef FeatureNEONForFP : SubtargetFeature<"neonfp", 335*81ad6265SDimitry Andric "HasNEONForFP", 3360b57cec5SDimitry Andric "true", 3370b57cec5SDimitry Andric "Use NEON for single precision FP">; 3380b57cec5SDimitry Andric 3390b57cec5SDimitry Andric// On some processors, VLDn instructions that access unaligned data take one 3400b57cec5SDimitry Andric// extra cycle. Take that into account when computing operand latencies. 341*81ad6265SDimitry Andric// True if VLDn instructions take an extra cycle for unaligned accesses. 342*81ad6265SDimitry Andricdef FeatureCheckVLDnAlign : SubtargetFeature<"vldn-align", "CheckVLDnAccessAlignment", 3430b57cec5SDimitry Andric "true", 3440b57cec5SDimitry Andric "Check for VLDn unaligned access">; 3450b57cec5SDimitry Andric 3460b57cec5SDimitry Andric// Some processors have a nonpipelined VFP coprocessor. 347*81ad6265SDimitry Andric// True if VFP instructions are not pipelined. 3480b57cec5SDimitry Andricdef FeatureNonpipelinedVFP : SubtargetFeature<"nonpipelined-vfp", 3490b57cec5SDimitry Andric "NonpipelinedVFP", "true", 3500b57cec5SDimitry Andric "VFP instructions are not pipelined">; 3510b57cec5SDimitry Andric 3520b57cec5SDimitry Andric// Some processors have FP multiply-accumulate instructions that don't 3530b57cec5SDimitry Andric// play nicely with other VFP / NEON instructions, and it's generally better 3540b57cec5SDimitry Andric// to just not use them. 355*81ad6265SDimitry Andric// If the VFP2 / NEON instructions are available, indicates 356*81ad6265SDimitry Andric// whether the FP VML[AS] instructions are slow (if so, don't use them). 3570b57cec5SDimitry Andricdef FeatureHasSlowFPVMLx : SubtargetFeature<"slowfpvmlx", "SlowFPVMLx", "true", 3580b57cec5SDimitry Andric "Disable VFP / NEON MAC instructions">; 3590b57cec5SDimitry Andric 360*81ad6265SDimitry Andric// VFPv4 added VFMA instructions that can similarly be fast or slow. 361*81ad6265SDimitry Andric// If the VFP4 / NEON instructions are available, indicates 362*81ad6265SDimitry Andric// whether the FP VFM[AS] instructions are slow (if so, don't use them). 363480093f4SDimitry Andricdef FeatureHasSlowFPVFMx : SubtargetFeature<"slowfpvfmx", "SlowFPVFMx", "true", 364480093f4SDimitry Andric "Disable VFP / NEON FMA instructions">; 365480093f4SDimitry Andric 3660b57cec5SDimitry Andric// Cortex-A8 / A9 Advanced SIMD has multiplier accumulator forwarding. 367*81ad6265SDimitry Andric/// True if NEON has special multiplier accumulator 368*81ad6265SDimitry Andric/// forwarding to allow mul + mla being issued back to back. 3690b57cec5SDimitry Andricdef FeatureVMLxForwarding : SubtargetFeature<"vmlx-forwarding", 3700b57cec5SDimitry Andric "HasVMLxForwarding", "true", 3710b57cec5SDimitry Andric "Has multiplier accumulator forwarding">; 3720b57cec5SDimitry Andric 3730b57cec5SDimitry Andric// Disable 32-bit to 16-bit narrowing for experimentation. 374*81ad6265SDimitry Andric// True if codegen would prefer 32-bit Thumb instructions over 16-bit ones. 375*81ad6265SDimitry Andricdef FeaturePref32BitThumb : SubtargetFeature<"32bit", "Prefers32BitThumb", "true", 3760b57cec5SDimitry Andric "Prefer 32-bit Thumb instrs">; 3770b57cec5SDimitry Andric 3788bcb0991SDimitry Andricdef FeaturePrefLoopAlign32 : SubtargetFeature<"loop-align", "PrefLoopLogAlignment","2", 3790b57cec5SDimitry Andric "Prefer 32-bit alignment for loops">; 3800b57cec5SDimitry Andric 3818bcb0991SDimitry Andricdef FeatureMVEVectorCostFactor1 : SubtargetFeature<"mve1beat", "MVEVectorCostFactor", "1", 3828bcb0991SDimitry Andric "Model MVE instructions as a 1 beat per tick architecture">; 3838bcb0991SDimitry Andric 3848bcb0991SDimitry Andricdef FeatureMVEVectorCostFactor2 : SubtargetFeature<"mve2beat", "MVEVectorCostFactor", "2", 3858bcb0991SDimitry Andric "Model MVE instructions as a 2 beats per tick architecture">; 3868bcb0991SDimitry Andric 3878bcb0991SDimitry Andricdef FeatureMVEVectorCostFactor4 : SubtargetFeature<"mve4beat", "MVEVectorCostFactor", "4", 3888bcb0991SDimitry Andric "Model MVE instructions as a 4 beats per tick architecture">; 3898bcb0991SDimitry Andric 3900b57cec5SDimitry Andric/// Some instructions update CPSR partially, which can add false dependency for 3910b57cec5SDimitry Andric/// out-of-order implementation, e.g. Cortex-A9, unless each individual bit is 3920b57cec5SDimitry Andric/// mapped to a separate physical register. Avoid partial CPSR update for these 3930b57cec5SDimitry Andric/// processors. 394*81ad6265SDimitry Andric/// True if codegen would avoid using instructions 395*81ad6265SDimitry Andric/// that partially update CPSR and add false dependency on the previous 396*81ad6265SDimitry Andric/// CPSR setting instruction. 3970b57cec5SDimitry Andricdef FeatureAvoidPartialCPSR : SubtargetFeature<"avoid-partial-cpsr", 3980b57cec5SDimitry Andric "AvoidCPSRPartialUpdate", "true", 3990b57cec5SDimitry Andric "Avoid CPSR partial update for OOO execution">; 4000b57cec5SDimitry Andric 4010b57cec5SDimitry Andric/// Disable +1 predication cost for instructions updating CPSR. 4020b57cec5SDimitry Andric/// Enabled for Cortex-A57. 403*81ad6265SDimitry Andric/// True if disable +1 predication cost for instructions updating CPSR. Enabled for Cortex-A57. 4040b57cec5SDimitry Andricdef FeatureCheapPredicableCPSR : SubtargetFeature<"cheap-predicable-cpsr", 4050b57cec5SDimitry Andric "CheapPredicableCPSRDef", 4060b57cec5SDimitry Andric "true", 4070b57cec5SDimitry Andric "Disable +1 predication cost for instructions updating CPSR">; 4080b57cec5SDimitry Andric 409*81ad6265SDimitry Andric// True if codegen should avoid using flag setting movs with shifter operand (i.e. asr, lsl, lsr). 4100b57cec5SDimitry Andricdef FeatureAvoidMOVsShOp : SubtargetFeature<"avoid-movs-shop", 4110b57cec5SDimitry Andric "AvoidMOVsShifterOperand", "true", 4120b57cec5SDimitry Andric "Avoid movs instructions with " 4130b57cec5SDimitry Andric "shifter operand">; 4140b57cec5SDimitry Andric 4150b57cec5SDimitry Andric// Some processors perform return stack prediction. CodeGen should avoid issue 4160b57cec5SDimitry Andric// "normal" call instructions to callees which do not return. 4170b57cec5SDimitry Andricdef FeatureHasRetAddrStack : SubtargetFeature<"ret-addr-stack", 4180b57cec5SDimitry Andric "HasRetAddrStack", "true", 4190b57cec5SDimitry Andric "Has return address stack">; 4200b57cec5SDimitry Andric 4210b57cec5SDimitry Andric// Some processors have no branch predictor, which changes the expected cost of 4220b57cec5SDimitry Andric// taking a branch which affects the choice of whether to use predicated 4230b57cec5SDimitry Andric// instructions. 424*81ad6265SDimitry Andric// True if the subtarget has a branch predictor. Having 425*81ad6265SDimitry Andric// a branch predictor or not changes the expected cost of taking a branch 426*81ad6265SDimitry Andric// which affects the choice of whether to use predicated instructions. 4270b57cec5SDimitry Andricdef FeatureHasNoBranchPredictor : SubtargetFeature<"no-branch-predictor", 4280b57cec5SDimitry Andric "HasBranchPredictor", "false", 4290b57cec5SDimitry Andric "Has no branch predictor">; 4300b57cec5SDimitry Andric 4310b57cec5SDimitry Andric/// DSP extension. 432*81ad6265SDimitry Andric/// True if the subtarget supports the DSP (saturating arith and such) instructions. 4330b57cec5SDimitry Andricdef FeatureDSP : SubtargetFeature<"dsp", "HasDSP", "true", 4340b57cec5SDimitry Andric "Supports DSP instructions in " 4350b57cec5SDimitry Andric "ARM and/or Thumb2">; 4360b57cec5SDimitry Andric 437*81ad6265SDimitry Andric// True if the subtarget supports Multiprocessing extension (ARMv7 only). 4380b57cec5SDimitry Andricdef FeatureMP : SubtargetFeature<"mp", "HasMPExtension", "true", 4390b57cec5SDimitry Andric "Supports Multiprocessing extension">; 4400b57cec5SDimitry Andric 4410b57cec5SDimitry Andric// Virtualization extension - requires HW divide (ARMv7-AR ARMARM - 4.4.8). 4420b57cec5SDimitry Andricdef FeatureVirtualization : SubtargetFeature<"virtualization", 4430b57cec5SDimitry Andric "HasVirtualization", "true", 4440b57cec5SDimitry Andric "Supports Virtualization extension", 4450b57cec5SDimitry Andric [FeatureHWDivThumb, FeatureHWDivARM]>; 4460b57cec5SDimitry Andric 4470b57cec5SDimitry Andric// Special TRAP encoding for NaCl, which looks like a TRAP in Thumb too. 4480b57cec5SDimitry Andric// See ARMInstrInfo.td for details. 449*81ad6265SDimitry Andric// True if NaCl TRAP instruction is generated instead of the regular TRAP. 4500b57cec5SDimitry Andricdef FeatureNaClTrap : SubtargetFeature<"nacl-trap", "UseNaClTrap", "true", 4510b57cec5SDimitry Andric "NaCl trap">; 4520b57cec5SDimitry Andric 453*81ad6265SDimitry Andric// True if the subtarget disallows unaligned memory 454*81ad6265SDimitry Andric// accesses for some types. For details, see 455*81ad6265SDimitry Andric// ARMTargetLowering::allowsMisalignedMemoryAccesses(). 4560b57cec5SDimitry Andricdef FeatureStrictAlign : SubtargetFeature<"strict-align", 4570b57cec5SDimitry Andric "StrictAlign", "true", 4580b57cec5SDimitry Andric "Disallow all unaligned memory " 4590b57cec5SDimitry Andric "access">; 4600b57cec5SDimitry Andric 461*81ad6265SDimitry Andric// Generate calls via indirect call instructions. 4620b57cec5SDimitry Andricdef FeatureLongCalls : SubtargetFeature<"long-calls", "GenLongCalls", "true", 4630b57cec5SDimitry Andric "Generate calls via indirect call " 4640b57cec5SDimitry Andric "instructions">; 4650b57cec5SDimitry Andric 466*81ad6265SDimitry Andric// Generate code that does not contain data access to code sections. 4670b57cec5SDimitry Andricdef FeatureExecuteOnly : SubtargetFeature<"execute-only", 4680b57cec5SDimitry Andric "GenExecuteOnly", "true", 4690b57cec5SDimitry Andric "Enable the generation of " 4700b57cec5SDimitry Andric "execute only code.">; 4710b57cec5SDimitry Andric 472*81ad6265SDimitry Andric// True if R9 is not available as a general purpose register. 4730b57cec5SDimitry Andricdef FeatureReserveR9 : SubtargetFeature<"reserve-r9", "ReserveR9", "true", 4740b57cec5SDimitry Andric "Reserve R9, making it unavailable" 4750b57cec5SDimitry Andric " as GPR">; 4760b57cec5SDimitry Andric 477*81ad6265SDimitry Andric// True if MOVT / MOVW pairs are not used for materialization of 478*81ad6265SDimitry Andric// 32-bit imms (including global addresses). 4790b57cec5SDimitry Andricdef FeatureNoMovt : SubtargetFeature<"no-movt", "NoMovt", "true", 4800b57cec5SDimitry Andric "Don't use movt/movw pairs for " 4810b57cec5SDimitry Andric "32-bit imms">; 4820b57cec5SDimitry Andric 483*81ad6265SDimitry Andric/// Implicitly convert an instruction to a different one if its immediates 484*81ad6265SDimitry Andric/// cannot be encoded. For example, ADD r0, r1, #FFFFFFFF -> SUB r0, r1, #1. 4850b57cec5SDimitry Andricdef FeatureNoNegativeImmediates 4860b57cec5SDimitry Andric : SubtargetFeature<"no-neg-immediates", 4870b57cec5SDimitry Andric "NegativeImmediates", "false", 4880b57cec5SDimitry Andric "Convert immediates and instructions " 4890b57cec5SDimitry Andric "to their negated or complemented " 4900b57cec5SDimitry Andric "equivalent when the immediate does " 4910b57cec5SDimitry Andric "not fit in the encoding.">; 4920b57cec5SDimitry Andric 4930b57cec5SDimitry Andric// Use the MachineScheduler for instruction scheduling for the subtarget. 4940b57cec5SDimitry Andricdef FeatureUseMISched: SubtargetFeature<"use-misched", "UseMISched", "true", 4950b57cec5SDimitry Andric "Use the MachineScheduler">; 4960b57cec5SDimitry Andric 497*81ad6265SDimitry Andric// Use the MachinePipeliner for instruction scheduling for the subtarget. 498*81ad6265SDimitry Andricdef FeatureUseMIPipeliner: SubtargetFeature<"use-mipipeliner", "UseMIPipeliner", "true", 499*81ad6265SDimitry Andric "Use the MachinePipeliner">; 500*81ad6265SDimitry Andric 501*81ad6265SDimitry Andric// False if scheduling should happen again after register allocation. 5020b57cec5SDimitry Andricdef FeatureNoPostRASched : SubtargetFeature<"disable-postra-scheduler", 5030b57cec5SDimitry Andric "DisablePostRAScheduler", "true", 5040b57cec5SDimitry Andric "Don't schedule again after register allocation">; 5050b57cec5SDimitry Andric 5060b57cec5SDimitry Andric// Armv8.5-A extensions 5070b57cec5SDimitry Andric 508*81ad6265SDimitry Andric// Has speculation barrier. 5090b57cec5SDimitry Andricdef FeatureSB : SubtargetFeature<"sb", "HasSB", "true", 5100b57cec5SDimitry Andric "Enable v8.5a Speculation Barrier" >; 5110b57cec5SDimitry Andric 5125ffd83dbSDimitry Andric// Armv8.6-A extensions 513*81ad6265SDimitry Andric 514*81ad6265SDimitry Andric// True if subtarget supports BFloat16 floating point operations. 5155ffd83dbSDimitry Andricdef FeatureBF16 : SubtargetFeature<"bf16", "HasBF16", "true", 5165ffd83dbSDimitry Andric "Enable support for BFloat16 instructions", [FeatureNEON]>; 5175ffd83dbSDimitry Andric 518*81ad6265SDimitry Andric// True if subtarget supports 8-bit integer matrix multiply. 5195ffd83dbSDimitry Andricdef FeatureMatMulInt8 : SubtargetFeature<"i8mm", "HasMatMulInt8", 5205ffd83dbSDimitry Andric "true", "Enable Matrix Multiply Int8 Extension", [FeatureNEON]>; 5215ffd83dbSDimitry Andric 5220b57cec5SDimitry Andric// Armv8.1-M extensions 5230b57cec5SDimitry Andric 524*81ad6265SDimitry Andric// True if the processor supports the Low Overhead Branch extension. 5250b57cec5SDimitry Andricdef FeatureLOB : SubtargetFeature<"lob", "HasLOB", "true", 5260b57cec5SDimitry Andric "Enable Low Overhead Branch " 5270b57cec5SDimitry Andric "extensions">; 5280b57cec5SDimitry Andric 529*81ad6265SDimitry Andric// Mitigate against the cve-2021-35465 security vulnurability. 530349cc55cSDimitry Andricdef FeatureFixCMSE_CVE_2021_35465 : SubtargetFeature<"fix-cmse-cve-2021-35465", 531349cc55cSDimitry Andric "FixCMSE_CVE_2021_35465", "true", 532349cc55cSDimitry Andric "Mitigate against the cve-2021-35465 " 533349cc55cSDimitry Andric "security vulnurability">; 534349cc55cSDimitry Andric 5354824e7fdSDimitry Andricdef FeaturePACBTI : SubtargetFeature<"pacbti", "HasPACBTI", "true", 5364824e7fdSDimitry Andric "Enable Pointer Authentication and Branch " 5374824e7fdSDimitry Andric "Target Identification">; 5384824e7fdSDimitry Andric 539*81ad6265SDimitry Andric/// Don't place a BTI instruction after return-twice constructs (setjmp). 5400eae32dcSDimitry Andricdef FeatureNoBTIAtReturnTwice : SubtargetFeature<"no-bti-at-return-twice", 5410eae32dcSDimitry Andric "NoBTIAtReturnTwice", "true", 5420eae32dcSDimitry Andric "Don't place a BTI instruction " 5430eae32dcSDimitry Andric "after a return-twice">; 5440eae32dcSDimitry Andric 545*81ad6265SDimitry Andricdef FeatureFixCortexA57AES1742098 : SubtargetFeature<"fix-cortex-a57-aes-1742098", 546*81ad6265SDimitry Andric "FixCortexA57AES1742098", "true", 547*81ad6265SDimitry Andric "Work around Cortex-A57 Erratum 1742098 / Cortex-A72 Erratum 1655431 (AES)">; 548*81ad6265SDimitry Andric 549*81ad6265SDimitry Andricdef FeatureAAPCSFrameChain : SubtargetFeature<"aapcs-frame-chain", 550*81ad6265SDimitry Andric "CreateAAPCSFrameChain", "true", 551*81ad6265SDimitry Andric "Create an AAPCS compliant frame chain">; 552*81ad6265SDimitry Andric 553*81ad6265SDimitry Andricdef FeatureAAPCSFrameChainLeaf : SubtargetFeature<"aapcs-frame-chain-leaf", 554*81ad6265SDimitry Andric "CreateAAPCSFrameChainLeaf", "true", 555*81ad6265SDimitry Andric "Create an AAPCS compliant frame chain " 556*81ad6265SDimitry Andric "for leaf functions", 557*81ad6265SDimitry Andric [FeatureAAPCSFrameChain]>; 558*81ad6265SDimitry Andric 5590b57cec5SDimitry Andric//===----------------------------------------------------------------------===// 5600b57cec5SDimitry Andric// ARM architecture class 5610b57cec5SDimitry Andric// 5620b57cec5SDimitry Andric 5630b57cec5SDimitry Andric// A-series ISA 5640b57cec5SDimitry Andricdef FeatureAClass : SubtargetFeature<"aclass", "ARMProcClass", "AClass", 5650b57cec5SDimitry Andric "Is application profile ('A' series)">; 5660b57cec5SDimitry Andric 5670b57cec5SDimitry Andric// R-series ISA 5680b57cec5SDimitry Andricdef FeatureRClass : SubtargetFeature<"rclass", "ARMProcClass", "RClass", 5690b57cec5SDimitry Andric "Is realtime profile ('R' series)">; 5700b57cec5SDimitry Andric 5710b57cec5SDimitry Andric// M-series ISA 5720b57cec5SDimitry Andricdef FeatureMClass : SubtargetFeature<"mclass", "ARMProcClass", "MClass", 5730b57cec5SDimitry Andric "Is microcontroller profile ('M' series)">; 5740b57cec5SDimitry Andric 575*81ad6265SDimitry Andric// True if Thumb2 instructions are supported. 5760b57cec5SDimitry Andricdef FeatureThumb2 : SubtargetFeature<"thumb2", "HasThumb2", "true", 5770b57cec5SDimitry Andric "Enable Thumb2 instructions">; 5780b57cec5SDimitry Andric 579*81ad6265SDimitry Andric// True if subtarget does not support ARM mode execution. 5800b57cec5SDimitry Andricdef FeatureNoARM : SubtargetFeature<"noarm", "NoARM", "true", 5810b57cec5SDimitry Andric "Does not support ARM mode execution">; 5820b57cec5SDimitry Andric 5830b57cec5SDimitry Andric//===----------------------------------------------------------------------===// 5840b57cec5SDimitry Andric// ARM ISAa. 5850b57cec5SDimitry Andric// 586*81ad6265SDimitry Andric// Specify whether target support specific ARM ISA variants. 5870b57cec5SDimitry Andric 5880b57cec5SDimitry Andricdef HasV4TOps : SubtargetFeature<"v4t", "HasV4TOps", "true", 5890b57cec5SDimitry Andric "Support ARM v4T instructions">; 5900b57cec5SDimitry Andric 5910b57cec5SDimitry Andricdef HasV5TOps : SubtargetFeature<"v5t", "HasV5TOps", "true", 5920b57cec5SDimitry Andric "Support ARM v5T instructions", 5930b57cec5SDimitry Andric [HasV4TOps]>; 5940b57cec5SDimitry Andric 5950b57cec5SDimitry Andricdef HasV5TEOps : SubtargetFeature<"v5te", "HasV5TEOps", "true", 5960b57cec5SDimitry Andric "Support ARM v5TE, v5TEj, and " 5970b57cec5SDimitry Andric "v5TExp instructions", 5980b57cec5SDimitry Andric [HasV5TOps]>; 5990b57cec5SDimitry Andric 6000b57cec5SDimitry Andricdef HasV6Ops : SubtargetFeature<"v6", "HasV6Ops", "true", 6010b57cec5SDimitry Andric "Support ARM v6 instructions", 6020b57cec5SDimitry Andric [HasV5TEOps]>; 6030b57cec5SDimitry Andric 6040b57cec5SDimitry Andricdef HasV6MOps : SubtargetFeature<"v6m", "HasV6MOps", "true", 6050b57cec5SDimitry Andric "Support ARM v6M instructions", 6060b57cec5SDimitry Andric [HasV6Ops]>; 6070b57cec5SDimitry Andric 6080b57cec5SDimitry Andricdef HasV8MBaselineOps : SubtargetFeature<"v8m", "HasV8MBaselineOps", "true", 6090b57cec5SDimitry Andric "Support ARM v8M Baseline instructions", 6100b57cec5SDimitry Andric [HasV6MOps]>; 6110b57cec5SDimitry Andric 6120b57cec5SDimitry Andricdef HasV6KOps : SubtargetFeature<"v6k", "HasV6KOps", "true", 6130b57cec5SDimitry Andric "Support ARM v6k instructions", 6140b57cec5SDimitry Andric [HasV6Ops]>; 6150b57cec5SDimitry Andric 6160b57cec5SDimitry Andricdef HasV6T2Ops : SubtargetFeature<"v6t2", "HasV6T2Ops", "true", 6170b57cec5SDimitry Andric "Support ARM v6t2 instructions", 6180b57cec5SDimitry Andric [HasV8MBaselineOps, HasV6KOps, FeatureThumb2]>; 6190b57cec5SDimitry Andric 6200b57cec5SDimitry Andricdef HasV7Ops : SubtargetFeature<"v7", "HasV7Ops", "true", 6210b57cec5SDimitry Andric "Support ARM v7 instructions", 62204eeddc0SDimitry Andric [HasV6T2Ops, FeatureV7Clrex]>; 6230b57cec5SDimitry Andric 6240b57cec5SDimitry Andricdef HasV8MMainlineOps : 6250b57cec5SDimitry Andric SubtargetFeature<"v8m.main", "HasV8MMainlineOps", "true", 6260b57cec5SDimitry Andric "Support ARM v8M Mainline instructions", 6270b57cec5SDimitry Andric [HasV7Ops]>; 6280b57cec5SDimitry Andric 6290b57cec5SDimitry Andricdef HasV8Ops : SubtargetFeature<"v8", "HasV8Ops", "true", 6300b57cec5SDimitry Andric "Support ARM v8 instructions", 63104eeddc0SDimitry Andric [HasV7Ops, FeaturePerfMon, FeatureAcquireRelease]>; 6320b57cec5SDimitry Andric 6330b57cec5SDimitry Andricdef HasV8_1aOps : SubtargetFeature<"v8.1a", "HasV8_1aOps", "true", 6340b57cec5SDimitry Andric "Support ARM v8.1a instructions", 6350b57cec5SDimitry Andric [HasV8Ops]>; 6360b57cec5SDimitry Andric 6370b57cec5SDimitry Andricdef HasV8_2aOps : SubtargetFeature<"v8.2a", "HasV8_2aOps", "true", 6380b57cec5SDimitry Andric "Support ARM v8.2a instructions", 6390b57cec5SDimitry Andric [HasV8_1aOps]>; 6400b57cec5SDimitry Andric 6410b57cec5SDimitry Andricdef HasV8_3aOps : SubtargetFeature<"v8.3a", "HasV8_3aOps", "true", 6420b57cec5SDimitry Andric "Support ARM v8.3a instructions", 6430b57cec5SDimitry Andric [HasV8_2aOps]>; 6440b57cec5SDimitry Andric 6450b57cec5SDimitry Andricdef HasV8_4aOps : SubtargetFeature<"v8.4a", "HasV8_4aOps", "true", 6460b57cec5SDimitry Andric "Support ARM v8.4a instructions", 6470b57cec5SDimitry Andric [HasV8_3aOps, FeatureDotProd]>; 6480b57cec5SDimitry Andric 6490b57cec5SDimitry Andricdef HasV8_5aOps : SubtargetFeature<"v8.5a", "HasV8_5aOps", "true", 6500b57cec5SDimitry Andric "Support ARM v8.5a instructions", 6510b57cec5SDimitry Andric [HasV8_4aOps, FeatureSB]>; 6520b57cec5SDimitry Andric 6535ffd83dbSDimitry Andricdef HasV8_6aOps : SubtargetFeature<"v8.6a", "HasV8_6aOps", "true", 6545ffd83dbSDimitry Andric "Support ARM v8.6a instructions", 6555ffd83dbSDimitry Andric [HasV8_5aOps, FeatureBF16, 6565ffd83dbSDimitry Andric FeatureMatMulInt8]>; 6575ffd83dbSDimitry Andric 658e8d8bef9SDimitry Andricdef HasV8_7aOps : SubtargetFeature<"v8.7a", "HasV8_7aOps", "true", 659e8d8bef9SDimitry Andric "Support ARM v8.7a instructions", 660e8d8bef9SDimitry Andric [HasV8_6aOps]>; 661e8d8bef9SDimitry Andric 66204eeddc0SDimitry Andricdef HasV8_8aOps : SubtargetFeature<"v8.8a", "HasV8_8aOps", "true", 66304eeddc0SDimitry Andric "Support ARM v8.8a instructions", 66404eeddc0SDimitry Andric [HasV8_7aOps]>; 66504eeddc0SDimitry Andric 666349cc55cSDimitry Andricdef HasV9_0aOps : SubtargetFeature<"v9a", "HasV9_0aOps", "true", 667349cc55cSDimitry Andric "Support ARM v9a instructions", 668349cc55cSDimitry Andric [HasV8_5aOps]>; 669349cc55cSDimitry Andric 670349cc55cSDimitry Andricdef HasV9_1aOps : SubtargetFeature<"v9.1a", "HasV9_1aOps", "true", 671349cc55cSDimitry Andric "Support ARM v9.1a instructions", 672349cc55cSDimitry Andric [HasV8_6aOps, HasV9_0aOps]>; 673349cc55cSDimitry Andric 674349cc55cSDimitry Andricdef HasV9_2aOps : SubtargetFeature<"v9.2a", "HasV9_2aOps", "true", 675349cc55cSDimitry Andric "Support ARM v9.2a instructions", 676349cc55cSDimitry Andric [HasV8_7aOps, HasV9_1aOps]>; 677349cc55cSDimitry Andric 67804eeddc0SDimitry Andricdef HasV9_3aOps : SubtargetFeature<"v9.3a", "HasV9_3aOps", "true", 67904eeddc0SDimitry Andric "Support ARM v9.3a instructions", 68004eeddc0SDimitry Andric [HasV8_8aOps, HasV9_2aOps]>; 68104eeddc0SDimitry Andric 6820b57cec5SDimitry Andricdef HasV8_1MMainlineOps : SubtargetFeature< 6830b57cec5SDimitry Andric "v8.1m.main", "HasV8_1MMainlineOps", "true", 6840b57cec5SDimitry Andric "Support ARM v8-1M Mainline instructions", 6850b57cec5SDimitry Andric [HasV8MMainlineOps]>; 6860b57cec5SDimitry Andricdef HasMVEIntegerOps : SubtargetFeature< 6870b57cec5SDimitry Andric "mve", "HasMVEIntegerOps", "true", 6880b57cec5SDimitry Andric "Support M-Class Vector Extension with integer ops", 6890b57cec5SDimitry Andric [HasV8_1MMainlineOps, FeatureDSP, FeatureFPRegs16, FeatureFPRegs64]>; 6900b57cec5SDimitry Andricdef HasMVEFloatOps : SubtargetFeature< 6910b57cec5SDimitry Andric "mve.fp", "HasMVEFloatOps", "true", 6920b57cec5SDimitry Andric "Support M-Class Vector Extension with integer and floating ops", 6930b57cec5SDimitry Andric [HasMVEIntegerOps, FeatureFPARMv8_D16_SP, FeatureFullFP16]>; 6940b57cec5SDimitry Andric 6955ffd83dbSDimitry Andricdef HasCDEOps : SubtargetFeature<"cde", "HasCDEOps", "true", 6965ffd83dbSDimitry Andric "Support CDE instructions", 6975ffd83dbSDimitry Andric [HasV8MMainlineOps]>; 6985ffd83dbSDimitry Andric 6995ffd83dbSDimitry Andricforeach i = {0-7} in 7005ffd83dbSDimitry Andric def FeatureCoprocCDE#i : SubtargetFeature<"cdecp"#i, 7015ffd83dbSDimitry Andric "CoprocCDE["#i#"]", "true", 7025ffd83dbSDimitry Andric "Coprocessor "#i#" ISA is CDEv1", 7035ffd83dbSDimitry Andric [HasCDEOps]>; 7045ffd83dbSDimitry Andric 7050b57cec5SDimitry Andric//===----------------------------------------------------------------------===// 706e8d8bef9SDimitry Andric// Control codegen mitigation against Straight Line Speculation vulnerability. 707e8d8bef9SDimitry Andric//===----------------------------------------------------------------------===// 708e8d8bef9SDimitry Andric 709*81ad6265SDimitry Andric/// Harden against Straight Line Speculation for Returns and Indirect Branches. 710e8d8bef9SDimitry Andricdef FeatureHardenSlsRetBr : SubtargetFeature<"harden-sls-retbr", 711e8d8bef9SDimitry Andric "HardenSlsRetBr", "true", 712e8d8bef9SDimitry Andric "Harden against straight line speculation across RETurn and BranchRegister " 713e8d8bef9SDimitry Andric "instructions">; 714*81ad6265SDimitry Andric/// Harden against Straight Line Speculation for indirect calls. 715e8d8bef9SDimitry Andricdef FeatureHardenSlsBlr : SubtargetFeature<"harden-sls-blr", 716e8d8bef9SDimitry Andric "HardenSlsBlr", "true", 717e8d8bef9SDimitry Andric "Harden against straight line speculation across indirect calls">; 718*81ad6265SDimitry Andric/// Generate thunk code for SLS mitigation in the normal text section. 719fe6060f1SDimitry Andricdef FeatureHardenSlsNoComdat : SubtargetFeature<"harden-sls-nocomdat", 720fe6060f1SDimitry Andric "HardenSlsNoComdat", "true", 721fe6060f1SDimitry Andric "Generate thunk code for SLS mitigation in the normal text section">; 722e8d8bef9SDimitry Andric 723e8d8bef9SDimitry Andric//===----------------------------------------------------------------------===// 7240b57cec5SDimitry Andric// ARM Processor subtarget features. 7250b57cec5SDimitry Andric// 7260b57cec5SDimitry Andric 7270b57cec5SDimitry Andricdef ProcA5 : SubtargetFeature<"a5", "ARMProcFamily", "CortexA5", 7280b57cec5SDimitry Andric "Cortex-A5 ARM processors", []>; 7290b57cec5SDimitry Andricdef ProcA7 : SubtargetFeature<"a7", "ARMProcFamily", "CortexA7", 7300b57cec5SDimitry Andric "Cortex-A7 ARM processors", []>; 7310b57cec5SDimitry Andricdef ProcA8 : SubtargetFeature<"a8", "ARMProcFamily", "CortexA8", 7320b57cec5SDimitry Andric "Cortex-A8 ARM processors", []>; 7330b57cec5SDimitry Andricdef ProcA9 : SubtargetFeature<"a9", "ARMProcFamily", "CortexA9", 7340b57cec5SDimitry Andric "Cortex-A9 ARM processors", []>; 7350b57cec5SDimitry Andricdef ProcA12 : SubtargetFeature<"a12", "ARMProcFamily", "CortexA12", 7360b57cec5SDimitry Andric "Cortex-A12 ARM processors", []>; 7370b57cec5SDimitry Andricdef ProcA15 : SubtargetFeature<"a15", "ARMProcFamily", "CortexA15", 7380b57cec5SDimitry Andric "Cortex-A15 ARM processors", []>; 7390b57cec5SDimitry Andricdef ProcA17 : SubtargetFeature<"a17", "ARMProcFamily", "CortexA17", 7400b57cec5SDimitry Andric "Cortex-A17 ARM processors", []>; 7410b57cec5SDimitry Andricdef ProcA32 : SubtargetFeature<"a32", "ARMProcFamily", "CortexA32", 7420b57cec5SDimitry Andric "Cortex-A32 ARM processors", []>; 7430b57cec5SDimitry Andricdef ProcA35 : SubtargetFeature<"a35", "ARMProcFamily", "CortexA35", 7440b57cec5SDimitry Andric "Cortex-A35 ARM processors", []>; 7450b57cec5SDimitry Andricdef ProcA53 : SubtargetFeature<"a53", "ARMProcFamily", "CortexA53", 7460b57cec5SDimitry Andric "Cortex-A53 ARM processors", []>; 7470b57cec5SDimitry Andricdef ProcA55 : SubtargetFeature<"a55", "ARMProcFamily", "CortexA55", 7480b57cec5SDimitry Andric "Cortex-A55 ARM processors", []>; 7490b57cec5SDimitry Andricdef ProcA57 : SubtargetFeature<"a57", "ARMProcFamily", "CortexA57", 7500b57cec5SDimitry Andric "Cortex-A57 ARM processors", []>; 7510b57cec5SDimitry Andricdef ProcA72 : SubtargetFeature<"a72", "ARMProcFamily", "CortexA72", 7520b57cec5SDimitry Andric "Cortex-A72 ARM processors", []>; 7530b57cec5SDimitry Andricdef ProcA73 : SubtargetFeature<"a73", "ARMProcFamily", "CortexA73", 7540b57cec5SDimitry Andric "Cortex-A73 ARM processors", []>; 7550b57cec5SDimitry Andricdef ProcA75 : SubtargetFeature<"a75", "ARMProcFamily", "CortexA75", 7560b57cec5SDimitry Andric "Cortex-A75 ARM processors", []>; 7570b57cec5SDimitry Andricdef ProcA76 : SubtargetFeature<"a76", "ARMProcFamily", "CortexA76", 7580b57cec5SDimitry Andric "Cortex-A76 ARM processors", []>; 7595ffd83dbSDimitry Andricdef ProcA77 : SubtargetFeature<"a77", "ARMProcFamily", "CortexA77", 7605ffd83dbSDimitry Andric "Cortex-A77 ARM processors", []>; 7615ffd83dbSDimitry Andricdef ProcA78 : SubtargetFeature<"cortex-a78", "ARMProcFamily", "CortexA78", 7625ffd83dbSDimitry Andric "Cortex-A78 ARM processors", []>; 763e8d8bef9SDimitry Andricdef ProcA78C : SubtargetFeature<"a78c", "ARMProcFamily", "CortexA78C", 764e8d8bef9SDimitry Andric "Cortex-A78C ARM processors", []>; 765349cc55cSDimitry Andricdef ProcA710 : SubtargetFeature<"cortex-a710", "ARMProcFamily", 766349cc55cSDimitry Andric "CortexA710", "Cortex-A710 ARM processors", []>; 7675ffd83dbSDimitry Andricdef ProcX1 : SubtargetFeature<"cortex-x1", "ARMProcFamily", "CortexX1", 7685ffd83dbSDimitry Andric "Cortex-X1 ARM processors", []>; 7691fd87a68SDimitry Andricdef ProcX1C : SubtargetFeature<"cortex-x1c", "ARMProcFamily", "CortexX1C", 7701fd87a68SDimitry Andric "Cortex-X1C ARM processors", []>; 7710b57cec5SDimitry Andric 772e8d8bef9SDimitry Andricdef ProcV1 : SubtargetFeature<"neoverse-v1", "ARMProcFamily", 773e8d8bef9SDimitry Andric "NeoverseV1", "Neoverse-V1 ARM processors", []>; 774e8d8bef9SDimitry Andric 7750b57cec5SDimitry Andricdef ProcKrait : SubtargetFeature<"krait", "ARMProcFamily", "Krait", 7760b57cec5SDimitry Andric "Qualcomm Krait processors", []>; 7770b57cec5SDimitry Andricdef ProcKryo : SubtargetFeature<"kryo", "ARMProcFamily", "Kryo", 7780b57cec5SDimitry Andric "Qualcomm Kryo processors", []>; 7790b57cec5SDimitry Andricdef ProcSwift : SubtargetFeature<"swift", "ARMProcFamily", "Swift", 7800b57cec5SDimitry Andric "Swift ARM processors", []>; 7810b57cec5SDimitry Andric 7820b57cec5SDimitry Andricdef ProcExynos : SubtargetFeature<"exynos", "ARMProcFamily", "Exynos", 7830b57cec5SDimitry Andric "Samsung Exynos processors", 7840b57cec5SDimitry Andric [FeatureZCZeroing, 7850b57cec5SDimitry Andric FeatureUseWideStrideVFP, 7860b57cec5SDimitry Andric FeatureSplatVFPToNeon, 7870b57cec5SDimitry Andric FeatureSlowVGETLNi32, 7880b57cec5SDimitry Andric FeatureSlowVDUP32, 7890b57cec5SDimitry Andric FeatureSlowFPBrcc, 7900b57cec5SDimitry Andric FeatureProfUnpredicate, 7910b57cec5SDimitry Andric FeatureHWDivThumb, 7920b57cec5SDimitry Andric FeatureHWDivARM, 7930b57cec5SDimitry Andric FeatureHasSlowFPVMLx, 794480093f4SDimitry Andric FeatureHasSlowFPVFMx, 7950b57cec5SDimitry Andric FeatureHasRetAddrStack, 7960b57cec5SDimitry Andric FeatureFuseLiterals, 7970b57cec5SDimitry Andric FeatureFuseAES, 7980b57cec5SDimitry Andric FeatureExpandMLx, 7990b57cec5SDimitry Andric FeatureCrypto, 8000b57cec5SDimitry Andric FeatureCRC]>; 8010b57cec5SDimitry Andric 8020b57cec5SDimitry Andricdef ProcR4 : SubtargetFeature<"r4", "ARMProcFamily", "CortexR4", 8030b57cec5SDimitry Andric "Cortex-R4 ARM processors", []>; 8040b57cec5SDimitry Andricdef ProcR5 : SubtargetFeature<"r5", "ARMProcFamily", "CortexR5", 8050b57cec5SDimitry Andric "Cortex-R5 ARM processors", []>; 8060b57cec5SDimitry Andricdef ProcR7 : SubtargetFeature<"r7", "ARMProcFamily", "CortexR7", 8070b57cec5SDimitry Andric "Cortex-R7 ARM processors", []>; 8080b57cec5SDimitry Andricdef ProcR52 : SubtargetFeature<"r52", "ARMProcFamily", "CortexR52", 8090b57cec5SDimitry Andric "Cortex-R52 ARM processors", []>; 8100b57cec5SDimitry Andric 8110b57cec5SDimitry Andricdef ProcM3 : SubtargetFeature<"m3", "ARMProcFamily", "CortexM3", 8120b57cec5SDimitry Andric "Cortex-M3 ARM processors", []>; 813e8d8bef9SDimitry Andricdef ProcM7 : SubtargetFeature<"m7", "ARMProcFamily", "CortexM7", 814e8d8bef9SDimitry Andric "Cortex-M7 ARM processors", []>; 8150b57cec5SDimitry Andric 8160b57cec5SDimitry Andric//===----------------------------------------------------------------------===// 8170b57cec5SDimitry Andric// ARM Helper classes. 8180b57cec5SDimitry Andric// 8190b57cec5SDimitry Andric 8200b57cec5SDimitry Andricclass Architecture<string fname, string aname, list<SubtargetFeature> features> 8210b57cec5SDimitry Andric : SubtargetFeature<fname, "ARMArch", aname, 8220b57cec5SDimitry Andric !strconcat(aname, " architecture"), features>; 8230b57cec5SDimitry Andric 8240b57cec5SDimitry Andricclass ProcNoItin<string Name, list<SubtargetFeature> Features> 8250b57cec5SDimitry Andric : Processor<Name, NoItineraries, Features>; 8260b57cec5SDimitry Andric 8270b57cec5SDimitry Andric 8280b57cec5SDimitry Andric//===----------------------------------------------------------------------===// 8290b57cec5SDimitry Andric// ARM architectures 8300b57cec5SDimitry Andric// 8310b57cec5SDimitry Andric 8320b57cec5SDimitry Andricdef ARMv2 : Architecture<"armv2", "ARMv2", []>; 8330b57cec5SDimitry Andric 8340b57cec5SDimitry Andricdef ARMv2a : Architecture<"armv2a", "ARMv2a", []>; 8350b57cec5SDimitry Andric 8360b57cec5SDimitry Andricdef ARMv3 : Architecture<"armv3", "ARMv3", []>; 8370b57cec5SDimitry Andric 8380b57cec5SDimitry Andricdef ARMv3m : Architecture<"armv3m", "ARMv3m", []>; 8390b57cec5SDimitry Andric 8400b57cec5SDimitry Andricdef ARMv4 : Architecture<"armv4", "ARMv4", []>; 8410b57cec5SDimitry Andric 8420b57cec5SDimitry Andricdef ARMv4t : Architecture<"armv4t", "ARMv4t", [HasV4TOps]>; 8430b57cec5SDimitry Andric 8440b57cec5SDimitry Andricdef ARMv5t : Architecture<"armv5t", "ARMv5t", [HasV5TOps]>; 8450b57cec5SDimitry Andric 8460b57cec5SDimitry Andricdef ARMv5te : Architecture<"armv5te", "ARMv5te", [HasV5TEOps]>; 8470b57cec5SDimitry Andric 8480b57cec5SDimitry Andricdef ARMv5tej : Architecture<"armv5tej", "ARMv5tej", [HasV5TEOps]>; 8490b57cec5SDimitry Andric 8500b57cec5SDimitry Andricdef ARMv6 : Architecture<"armv6", "ARMv6", [HasV6Ops, 8510b57cec5SDimitry Andric FeatureDSP]>; 8520b57cec5SDimitry Andric 8530b57cec5SDimitry Andricdef ARMv6t2 : Architecture<"armv6t2", "ARMv6t2", [HasV6T2Ops, 8540b57cec5SDimitry Andric FeatureDSP]>; 8550b57cec5SDimitry Andric 8560b57cec5SDimitry Andricdef ARMv6k : Architecture<"armv6k", "ARMv6k", [HasV6KOps]>; 8570b57cec5SDimitry Andric 8580b57cec5SDimitry Andricdef ARMv6kz : Architecture<"armv6kz", "ARMv6kz", [HasV6KOps, 8590b57cec5SDimitry Andric FeatureTrustZone]>; 8600b57cec5SDimitry Andric 8610b57cec5SDimitry Andricdef ARMv6m : Architecture<"armv6-m", "ARMv6m", [HasV6MOps, 8620b57cec5SDimitry Andric FeatureNoARM, 8630b57cec5SDimitry Andric ModeThumb, 8640b57cec5SDimitry Andric FeatureDB, 8650b57cec5SDimitry Andric FeatureMClass, 8660b57cec5SDimitry Andric FeatureStrictAlign]>; 8670b57cec5SDimitry Andric 8680b57cec5SDimitry Andricdef ARMv6sm : Architecture<"armv6s-m", "ARMv6sm", [HasV6MOps, 8690b57cec5SDimitry Andric FeatureNoARM, 8700b57cec5SDimitry Andric ModeThumb, 8710b57cec5SDimitry Andric FeatureDB, 8720b57cec5SDimitry Andric FeatureMClass, 8730b57cec5SDimitry Andric FeatureStrictAlign]>; 8740b57cec5SDimitry Andric 8750b57cec5SDimitry Andricdef ARMv7a : Architecture<"armv7-a", "ARMv7a", [HasV7Ops, 8760b57cec5SDimitry Andric FeatureNEON, 8770b57cec5SDimitry Andric FeatureDB, 8780b57cec5SDimitry Andric FeatureDSP, 87904eeddc0SDimitry Andric FeatureAClass, 88004eeddc0SDimitry Andric FeaturePerfMon]>; 8810b57cec5SDimitry Andric 8820b57cec5SDimitry Andricdef ARMv7ve : Architecture<"armv7ve", "ARMv7ve", [HasV7Ops, 8830b57cec5SDimitry Andric FeatureNEON, 8840b57cec5SDimitry Andric FeatureDB, 8850b57cec5SDimitry Andric FeatureDSP, 8860b57cec5SDimitry Andric FeatureTrustZone, 8870b57cec5SDimitry Andric FeatureMP, 8880b57cec5SDimitry Andric FeatureVirtualization, 88904eeddc0SDimitry Andric FeatureAClass, 89004eeddc0SDimitry Andric FeaturePerfMon]>; 8910b57cec5SDimitry Andric 8920b57cec5SDimitry Andricdef ARMv7r : Architecture<"armv7-r", "ARMv7r", [HasV7Ops, 8930b57cec5SDimitry Andric FeatureDB, 8940b57cec5SDimitry Andric FeatureDSP, 8950b57cec5SDimitry Andric FeatureHWDivThumb, 89604eeddc0SDimitry Andric FeatureRClass, 89704eeddc0SDimitry Andric FeaturePerfMon]>; 8980b57cec5SDimitry Andric 8990b57cec5SDimitry Andricdef ARMv7m : Architecture<"armv7-m", "ARMv7m", [HasV7Ops, 9000b57cec5SDimitry Andric FeatureThumb2, 9010b57cec5SDimitry Andric FeatureNoARM, 9020b57cec5SDimitry Andric ModeThumb, 9030b57cec5SDimitry Andric FeatureDB, 9040b57cec5SDimitry Andric FeatureHWDivThumb, 9050b57cec5SDimitry Andric FeatureMClass]>; 9060b57cec5SDimitry Andric 9070b57cec5SDimitry Andricdef ARMv7em : Architecture<"armv7e-m", "ARMv7em", [HasV7Ops, 9080b57cec5SDimitry Andric FeatureThumb2, 9090b57cec5SDimitry Andric FeatureNoARM, 9100b57cec5SDimitry Andric ModeThumb, 9110b57cec5SDimitry Andric FeatureDB, 9120b57cec5SDimitry Andric FeatureHWDivThumb, 9130b57cec5SDimitry Andric FeatureMClass, 9140b57cec5SDimitry Andric FeatureDSP]>; 9150b57cec5SDimitry Andric 9160b57cec5SDimitry Andricdef ARMv8a : Architecture<"armv8-a", "ARMv8a", [HasV8Ops, 9170b57cec5SDimitry Andric FeatureAClass, 9180b57cec5SDimitry Andric FeatureDB, 9190b57cec5SDimitry Andric FeatureFPARMv8, 9200b57cec5SDimitry Andric FeatureNEON, 9210b57cec5SDimitry Andric FeatureDSP, 9220b57cec5SDimitry Andric FeatureTrustZone, 9230b57cec5SDimitry Andric FeatureMP, 9240b57cec5SDimitry Andric FeatureVirtualization, 9250b57cec5SDimitry Andric FeatureCrypto, 9260b57cec5SDimitry Andric FeatureCRC]>; 9270b57cec5SDimitry Andric 9280b57cec5SDimitry Andricdef ARMv81a : Architecture<"armv8.1-a", "ARMv81a", [HasV8_1aOps, 9290b57cec5SDimitry Andric FeatureAClass, 9300b57cec5SDimitry Andric FeatureDB, 9310b57cec5SDimitry Andric FeatureFPARMv8, 9320b57cec5SDimitry Andric FeatureNEON, 9330b57cec5SDimitry Andric FeatureDSP, 9340b57cec5SDimitry Andric FeatureTrustZone, 9350b57cec5SDimitry Andric FeatureMP, 9360b57cec5SDimitry Andric FeatureVirtualization, 9370b57cec5SDimitry Andric FeatureCrypto, 9380b57cec5SDimitry Andric FeatureCRC]>; 9390b57cec5SDimitry Andric 9400b57cec5SDimitry Andricdef ARMv82a : Architecture<"armv8.2-a", "ARMv82a", [HasV8_2aOps, 9410b57cec5SDimitry Andric FeatureAClass, 9420b57cec5SDimitry Andric FeatureDB, 9430b57cec5SDimitry Andric FeatureFPARMv8, 9440b57cec5SDimitry Andric FeatureNEON, 9450b57cec5SDimitry Andric FeatureDSP, 9460b57cec5SDimitry Andric FeatureTrustZone, 9470b57cec5SDimitry Andric FeatureMP, 9480b57cec5SDimitry Andric FeatureVirtualization, 9490b57cec5SDimitry Andric FeatureCrypto, 9500b57cec5SDimitry Andric FeatureCRC, 9510b57cec5SDimitry Andric FeatureRAS]>; 9520b57cec5SDimitry Andric 9530b57cec5SDimitry Andricdef ARMv83a : Architecture<"armv8.3-a", "ARMv83a", [HasV8_3aOps, 9540b57cec5SDimitry Andric FeatureAClass, 9550b57cec5SDimitry Andric FeatureDB, 9560b57cec5SDimitry Andric FeatureFPARMv8, 9570b57cec5SDimitry Andric FeatureNEON, 9580b57cec5SDimitry Andric FeatureDSP, 9590b57cec5SDimitry Andric FeatureTrustZone, 9600b57cec5SDimitry Andric FeatureMP, 9610b57cec5SDimitry Andric FeatureVirtualization, 9620b57cec5SDimitry Andric FeatureCrypto, 9630b57cec5SDimitry Andric FeatureCRC, 9640b57cec5SDimitry Andric FeatureRAS]>; 9650b57cec5SDimitry Andric 9660b57cec5SDimitry Andricdef ARMv84a : Architecture<"armv8.4-a", "ARMv84a", [HasV8_4aOps, 9670b57cec5SDimitry Andric FeatureAClass, 9680b57cec5SDimitry Andric FeatureDB, 9690b57cec5SDimitry Andric FeatureFPARMv8, 9700b57cec5SDimitry Andric FeatureNEON, 9710b57cec5SDimitry Andric FeatureDSP, 9720b57cec5SDimitry Andric FeatureTrustZone, 9730b57cec5SDimitry Andric FeatureMP, 9740b57cec5SDimitry Andric FeatureVirtualization, 9750b57cec5SDimitry Andric FeatureCrypto, 9760b57cec5SDimitry Andric FeatureCRC, 9770b57cec5SDimitry Andric FeatureRAS, 9780b57cec5SDimitry Andric FeatureDotProd]>; 9790b57cec5SDimitry Andric 9800b57cec5SDimitry Andricdef ARMv85a : Architecture<"armv8.5-a", "ARMv85a", [HasV8_5aOps, 9810b57cec5SDimitry Andric FeatureAClass, 9820b57cec5SDimitry Andric FeatureDB, 9830b57cec5SDimitry Andric FeatureFPARMv8, 9840b57cec5SDimitry Andric FeatureNEON, 9850b57cec5SDimitry Andric FeatureDSP, 9860b57cec5SDimitry Andric FeatureTrustZone, 9870b57cec5SDimitry Andric FeatureMP, 9880b57cec5SDimitry Andric FeatureVirtualization, 9890b57cec5SDimitry Andric FeatureCrypto, 9900b57cec5SDimitry Andric FeatureCRC, 9910b57cec5SDimitry Andric FeatureRAS, 9920b57cec5SDimitry Andric FeatureDotProd]>; 9935ffd83dbSDimitry Andricdef ARMv86a : Architecture<"armv8.6-a", "ARMv86a", [HasV8_6aOps, 9945ffd83dbSDimitry Andric FeatureAClass, 9955ffd83dbSDimitry Andric FeatureDB, 9965ffd83dbSDimitry Andric FeatureFPARMv8, 9975ffd83dbSDimitry Andric FeatureNEON, 9985ffd83dbSDimitry Andric FeatureDSP, 9995ffd83dbSDimitry Andric FeatureTrustZone, 10005ffd83dbSDimitry Andric FeatureMP, 10015ffd83dbSDimitry Andric FeatureVirtualization, 10025ffd83dbSDimitry Andric FeatureCrypto, 10035ffd83dbSDimitry Andric FeatureCRC, 10045ffd83dbSDimitry Andric FeatureRAS, 10055ffd83dbSDimitry Andric FeatureDotProd]>; 1006fe6060f1SDimitry Andricdef ARMv87a : Architecture<"armv8.7-a", "ARMv87a", [HasV8_7aOps, 1007e8d8bef9SDimitry Andric FeatureAClass, 1008e8d8bef9SDimitry Andric FeatureDB, 1009e8d8bef9SDimitry Andric FeatureFPARMv8, 1010e8d8bef9SDimitry Andric FeatureNEON, 1011e8d8bef9SDimitry Andric FeatureDSP, 1012e8d8bef9SDimitry Andric FeatureTrustZone, 1013e8d8bef9SDimitry Andric FeatureMP, 1014e8d8bef9SDimitry Andric FeatureVirtualization, 1015e8d8bef9SDimitry Andric FeatureCrypto, 1016e8d8bef9SDimitry Andric FeatureCRC, 1017e8d8bef9SDimitry Andric FeatureRAS, 1018e8d8bef9SDimitry Andric FeatureDotProd]>; 101904eeddc0SDimitry Andricdef ARMv88a : Architecture<"armv8.8-a", "ARMv88a", [HasV8_8aOps, 102004eeddc0SDimitry Andric FeatureAClass, 102104eeddc0SDimitry Andric FeatureDB, 102204eeddc0SDimitry Andric FeatureFPARMv8, 102304eeddc0SDimitry Andric FeatureNEON, 102404eeddc0SDimitry Andric FeatureDSP, 102504eeddc0SDimitry Andric FeatureTrustZone, 102604eeddc0SDimitry Andric FeatureMP, 102704eeddc0SDimitry Andric FeatureVirtualization, 102804eeddc0SDimitry Andric FeatureCrypto, 102904eeddc0SDimitry Andric FeatureCRC, 103004eeddc0SDimitry Andric FeatureRAS, 103104eeddc0SDimitry Andric FeatureDotProd]>; 10320b57cec5SDimitry Andric 1033349cc55cSDimitry Andricdef ARMv9a : Architecture<"armv9-a", "ARMv9a", [HasV9_0aOps, 1034349cc55cSDimitry Andric FeatureAClass, 1035349cc55cSDimitry Andric FeatureDB, 1036349cc55cSDimitry Andric FeatureFPARMv8, 1037349cc55cSDimitry Andric FeatureNEON, 1038349cc55cSDimitry Andric FeatureDSP, 1039349cc55cSDimitry Andric FeatureTrustZone, 1040349cc55cSDimitry Andric FeatureMP, 1041349cc55cSDimitry Andric FeatureVirtualization, 1042349cc55cSDimitry Andric FeatureCRC, 1043349cc55cSDimitry Andric FeatureRAS, 1044349cc55cSDimitry Andric FeatureDotProd]>; 1045349cc55cSDimitry Andricdef ARMv91a : Architecture<"armv9.1-a", "ARMv91a", [HasV9_1aOps, 1046349cc55cSDimitry Andric FeatureAClass, 1047349cc55cSDimitry Andric FeatureDB, 1048349cc55cSDimitry Andric FeatureFPARMv8, 1049349cc55cSDimitry Andric FeatureNEON, 1050349cc55cSDimitry Andric FeatureDSP, 1051349cc55cSDimitry Andric FeatureTrustZone, 1052349cc55cSDimitry Andric FeatureMP, 1053349cc55cSDimitry Andric FeatureVirtualization, 1054349cc55cSDimitry Andric FeatureCRC, 1055349cc55cSDimitry Andric FeatureRAS, 1056349cc55cSDimitry Andric FeatureDotProd]>; 1057349cc55cSDimitry Andricdef ARMv92a : Architecture<"armv9.2-a", "ARMv92a", [HasV9_2aOps, 1058349cc55cSDimitry Andric FeatureAClass, 1059349cc55cSDimitry Andric FeatureDB, 1060349cc55cSDimitry Andric FeatureFPARMv8, 1061349cc55cSDimitry Andric FeatureNEON, 1062349cc55cSDimitry Andric FeatureDSP, 1063349cc55cSDimitry Andric FeatureTrustZone, 1064349cc55cSDimitry Andric FeatureMP, 1065349cc55cSDimitry Andric FeatureVirtualization, 1066349cc55cSDimitry Andric FeatureCRC, 1067349cc55cSDimitry Andric FeatureRAS, 1068349cc55cSDimitry Andric FeatureDotProd]>; 106904eeddc0SDimitry Andricdef ARMv93a : Architecture<"armv9.3-a", "ARMv93a", [HasV9_3aOps, 107004eeddc0SDimitry Andric FeatureAClass, 107104eeddc0SDimitry Andric FeatureDB, 107204eeddc0SDimitry Andric FeatureFPARMv8, 107304eeddc0SDimitry Andric FeatureNEON, 107404eeddc0SDimitry Andric FeatureDSP, 107504eeddc0SDimitry Andric FeatureTrustZone, 107604eeddc0SDimitry Andric FeatureMP, 107704eeddc0SDimitry Andric FeatureVirtualization, 107804eeddc0SDimitry Andric FeatureCrypto, 107904eeddc0SDimitry Andric FeatureCRC, 108004eeddc0SDimitry Andric FeatureRAS, 108104eeddc0SDimitry Andric FeatureDotProd]>; 1082349cc55cSDimitry Andric 10830b57cec5SDimitry Andricdef ARMv8r : Architecture<"armv8-r", "ARMv8r", [HasV8Ops, 10840b57cec5SDimitry Andric FeatureRClass, 10850b57cec5SDimitry Andric FeatureDB, 10860b57cec5SDimitry Andric FeatureDFB, 10870b57cec5SDimitry Andric FeatureDSP, 10880b57cec5SDimitry Andric FeatureCRC, 10890b57cec5SDimitry Andric FeatureMP, 10900b57cec5SDimitry Andric FeatureVirtualization, 10910b57cec5SDimitry Andric FeatureFPARMv8, 10920b57cec5SDimitry Andric FeatureNEON]>; 10930b57cec5SDimitry Andric 10940b57cec5SDimitry Andricdef ARMv8mBaseline : Architecture<"armv8-m.base", "ARMv8mBaseline", 10950b57cec5SDimitry Andric [HasV8MBaselineOps, 10960b57cec5SDimitry Andric FeatureNoARM, 10970b57cec5SDimitry Andric ModeThumb, 10980b57cec5SDimitry Andric FeatureDB, 10990b57cec5SDimitry Andric FeatureHWDivThumb, 11000b57cec5SDimitry Andric FeatureV7Clrex, 11010b57cec5SDimitry Andric Feature8MSecExt, 11020b57cec5SDimitry Andric FeatureAcquireRelease, 11030b57cec5SDimitry Andric FeatureMClass, 11040b57cec5SDimitry Andric FeatureStrictAlign]>; 11050b57cec5SDimitry Andric 11060b57cec5SDimitry Andricdef ARMv8mMainline : Architecture<"armv8-m.main", "ARMv8mMainline", 11070b57cec5SDimitry Andric [HasV8MMainlineOps, 11080b57cec5SDimitry Andric FeatureNoARM, 11090b57cec5SDimitry Andric ModeThumb, 11100b57cec5SDimitry Andric FeatureDB, 11110b57cec5SDimitry Andric FeatureHWDivThumb, 11120b57cec5SDimitry Andric Feature8MSecExt, 11130b57cec5SDimitry Andric FeatureAcquireRelease, 11140b57cec5SDimitry Andric FeatureMClass]>; 11150b57cec5SDimitry Andric 11160b57cec5SDimitry Andricdef ARMv81mMainline : Architecture<"armv8.1-m.main", "ARMv81mMainline", 11170b57cec5SDimitry Andric [HasV8_1MMainlineOps, 11180b57cec5SDimitry Andric FeatureNoARM, 11190b57cec5SDimitry Andric ModeThumb, 11200b57cec5SDimitry Andric FeatureDB, 11210b57cec5SDimitry Andric FeatureHWDivThumb, 11220b57cec5SDimitry Andric Feature8MSecExt, 11230b57cec5SDimitry Andric FeatureAcquireRelease, 11240b57cec5SDimitry Andric FeatureMClass, 11250b57cec5SDimitry Andric FeatureRAS, 11260b57cec5SDimitry Andric FeatureLOB]>; 11270b57cec5SDimitry Andric 11280b57cec5SDimitry Andric// Aliases 11290b57cec5SDimitry Andricdef IWMMXT : Architecture<"iwmmxt", "ARMv5te", [ARMv5te]>; 11300b57cec5SDimitry Andricdef IWMMXT2 : Architecture<"iwmmxt2", "ARMv5te", [ARMv5te]>; 11310b57cec5SDimitry Andricdef XScale : Architecture<"xscale", "ARMv5te", [ARMv5te]>; 11320b57cec5SDimitry Andricdef ARMv6j : Architecture<"armv6j", "ARMv7a", [ARMv6]>; 11330b57cec5SDimitry Andricdef ARMv7k : Architecture<"armv7k", "ARMv7a", [ARMv7a]>; 11340b57cec5SDimitry Andricdef ARMv7s : Architecture<"armv7s", "ARMv7a", [ARMv7a]>; 11350b57cec5SDimitry Andric 1136e8d8bef9SDimitry Andric//===----------------------------------------------------------------------===// 1137e8d8bef9SDimitry Andric// Register File Description 1138e8d8bef9SDimitry Andric//===----------------------------------------------------------------------===// 1139e8d8bef9SDimitry Andric 1140e8d8bef9SDimitry Andricinclude "ARMRegisterInfo.td" 1141e8d8bef9SDimitry Andricinclude "ARMRegisterBanks.td" 1142e8d8bef9SDimitry Andricinclude "ARMCallingConv.td" 11430b57cec5SDimitry Andric 11440b57cec5SDimitry Andric//===----------------------------------------------------------------------===// 11450b57cec5SDimitry Andric// ARM schedules. 11460b57cec5SDimitry Andric//===----------------------------------------------------------------------===// 11470b57cec5SDimitry Andric// 11480b57cec5SDimitry Andricinclude "ARMPredicates.td" 11490b57cec5SDimitry Andricinclude "ARMSchedule.td" 11500b57cec5SDimitry Andric 11510b57cec5SDimitry Andric//===----------------------------------------------------------------------===// 1152e8d8bef9SDimitry Andric// Instruction Descriptions 1153e8d8bef9SDimitry Andric//===----------------------------------------------------------------------===// 1154e8d8bef9SDimitry Andric 1155e8d8bef9SDimitry Andricinclude "ARMInstrInfo.td" 1156e8d8bef9SDimitry Andricdef ARMInstrInfo : InstrInfo; 1157e8d8bef9SDimitry Andric 1158e8d8bef9SDimitry Andric//===----------------------------------------------------------------------===// 1159e8d8bef9SDimitry Andric// ARM schedules 1160e8d8bef9SDimitry Andric// 1161e8d8bef9SDimitry Andricinclude "ARMScheduleV6.td" 1162e8d8bef9SDimitry Andricinclude "ARMScheduleA8.td" 1163e8d8bef9SDimitry Andricinclude "ARMScheduleA9.td" 1164e8d8bef9SDimitry Andricinclude "ARMScheduleSwift.td" 1165e8d8bef9SDimitry Andricinclude "ARMScheduleR52.td" 1166e8d8bef9SDimitry Andricinclude "ARMScheduleA57.td" 1167e8d8bef9SDimitry Andricinclude "ARMScheduleM4.td" 1168e8d8bef9SDimitry Andricinclude "ARMScheduleM7.td" 1169e8d8bef9SDimitry Andric 1170e8d8bef9SDimitry Andric//===----------------------------------------------------------------------===// 11710b57cec5SDimitry Andric// ARM processors 11720b57cec5SDimitry Andric// 11730b57cec5SDimitry Andric// Dummy CPU, used to target architectures 11740b57cec5SDimitry Andricdef : ProcessorModel<"generic", CortexA8Model, []>; 11750b57cec5SDimitry Andric 11760b57cec5SDimitry Andric// FIXME: Several processors below are not using their own scheduler 11770b57cec5SDimitry Andric// model, but one of similar/previous processor. These should be fixed. 11780b57cec5SDimitry Andric 11790b57cec5SDimitry Andricdef : ProcNoItin<"arm8", [ARMv4]>; 11800b57cec5SDimitry Andricdef : ProcNoItin<"arm810", [ARMv4]>; 11810b57cec5SDimitry Andricdef : ProcNoItin<"strongarm", [ARMv4]>; 11820b57cec5SDimitry Andricdef : ProcNoItin<"strongarm110", [ARMv4]>; 11830b57cec5SDimitry Andricdef : ProcNoItin<"strongarm1100", [ARMv4]>; 11840b57cec5SDimitry Andricdef : ProcNoItin<"strongarm1110", [ARMv4]>; 11850b57cec5SDimitry Andric 11860b57cec5SDimitry Andricdef : ProcNoItin<"arm7tdmi", [ARMv4t]>; 11870b57cec5SDimitry Andricdef : ProcNoItin<"arm7tdmi-s", [ARMv4t]>; 11880b57cec5SDimitry Andricdef : ProcNoItin<"arm710t", [ARMv4t]>; 11890b57cec5SDimitry Andricdef : ProcNoItin<"arm720t", [ARMv4t]>; 11900b57cec5SDimitry Andricdef : ProcNoItin<"arm9", [ARMv4t]>; 11910b57cec5SDimitry Andricdef : ProcNoItin<"arm9tdmi", [ARMv4t]>; 11920b57cec5SDimitry Andricdef : ProcNoItin<"arm920", [ARMv4t]>; 11930b57cec5SDimitry Andricdef : ProcNoItin<"arm920t", [ARMv4t]>; 11940b57cec5SDimitry Andricdef : ProcNoItin<"arm922t", [ARMv4t]>; 11950b57cec5SDimitry Andricdef : ProcNoItin<"arm940t", [ARMv4t]>; 11960b57cec5SDimitry Andricdef : ProcNoItin<"ep9312", [ARMv4t]>; 11970b57cec5SDimitry Andric 11980b57cec5SDimitry Andricdef : ProcNoItin<"arm10tdmi", [ARMv5t]>; 11990b57cec5SDimitry Andricdef : ProcNoItin<"arm1020t", [ARMv5t]>; 12000b57cec5SDimitry Andric 12010b57cec5SDimitry Andricdef : ProcNoItin<"arm9e", [ARMv5te]>; 12020b57cec5SDimitry Andricdef : ProcNoItin<"arm926ej-s", [ARMv5te]>; 12030b57cec5SDimitry Andricdef : ProcNoItin<"arm946e-s", [ARMv5te]>; 12040b57cec5SDimitry Andricdef : ProcNoItin<"arm966e-s", [ARMv5te]>; 12050b57cec5SDimitry Andricdef : ProcNoItin<"arm968e-s", [ARMv5te]>; 12060b57cec5SDimitry Andricdef : ProcNoItin<"arm10e", [ARMv5te]>; 12070b57cec5SDimitry Andricdef : ProcNoItin<"arm1020e", [ARMv5te]>; 12080b57cec5SDimitry Andricdef : ProcNoItin<"arm1022e", [ARMv5te]>; 12090b57cec5SDimitry Andricdef : ProcNoItin<"xscale", [ARMv5te]>; 12100b57cec5SDimitry Andricdef : ProcNoItin<"iwmmxt", [ARMv5te]>; 12110b57cec5SDimitry Andric 12120b57cec5SDimitry Andricdef : Processor<"arm1136j-s", ARMV6Itineraries, [ARMv6]>; 12130b57cec5SDimitry Andricdef : Processor<"arm1136jf-s", ARMV6Itineraries, [ARMv6, 12140b57cec5SDimitry Andric FeatureVFP2, 12150b57cec5SDimitry Andric FeatureHasSlowFPVMLx]>; 12160b57cec5SDimitry Andric 1217fe6060f1SDimitry Andricdef : Processor<"cortex-m0", ARMV6Itineraries, [ARMv6m, 1218fe6060f1SDimitry Andric FeatureHasNoBranchPredictor]>; 1219fe6060f1SDimitry Andricdef : Processor<"cortex-m0plus", ARMV6Itineraries, [ARMv6m, 1220fe6060f1SDimitry Andric FeatureHasNoBranchPredictor]>; 1221fe6060f1SDimitry Andricdef : Processor<"cortex-m1", ARMV6Itineraries, [ARMv6m, 1222fe6060f1SDimitry Andric FeatureHasNoBranchPredictor]>; 1223fe6060f1SDimitry Andricdef : Processor<"sc000", ARMV6Itineraries, [ARMv6m, 1224fe6060f1SDimitry Andric FeatureHasNoBranchPredictor]>; 12250b57cec5SDimitry Andric 12260b57cec5SDimitry Andricdef : Processor<"arm1176jz-s", ARMV6Itineraries, [ARMv6kz]>; 12270b57cec5SDimitry Andricdef : Processor<"arm1176jzf-s", ARMV6Itineraries, [ARMv6kz, 12280b57cec5SDimitry Andric FeatureVFP2, 12290b57cec5SDimitry Andric FeatureHasSlowFPVMLx]>; 12300b57cec5SDimitry Andric 12310b57cec5SDimitry Andricdef : Processor<"mpcorenovfp", ARMV6Itineraries, [ARMv6k]>; 12320b57cec5SDimitry Andricdef : Processor<"mpcore", ARMV6Itineraries, [ARMv6k, 12330b57cec5SDimitry Andric FeatureVFP2, 12340b57cec5SDimitry Andric FeatureHasSlowFPVMLx]>; 12350b57cec5SDimitry Andric 12360b57cec5SDimitry Andricdef : Processor<"arm1156t2-s", ARMV6Itineraries, [ARMv6t2]>; 12370b57cec5SDimitry Andricdef : Processor<"arm1156t2f-s", ARMV6Itineraries, [ARMv6t2, 12380b57cec5SDimitry Andric FeatureVFP2, 12390b57cec5SDimitry Andric FeatureHasSlowFPVMLx]>; 12400b57cec5SDimitry Andric 12410b57cec5SDimitry Andricdef : ProcessorModel<"cortex-a5", CortexA8Model, [ARMv7a, ProcA5, 12420b57cec5SDimitry Andric FeatureHasRetAddrStack, 12430b57cec5SDimitry Andric FeatureTrustZone, 12440b57cec5SDimitry Andric FeatureSlowFPBrcc, 12450b57cec5SDimitry Andric FeatureHasSlowFPVMLx, 1246480093f4SDimitry Andric FeatureHasSlowFPVFMx, 12470b57cec5SDimitry Andric FeatureVMLxForwarding, 12480b57cec5SDimitry Andric FeatureMP, 12490b57cec5SDimitry Andric FeatureVFP4]>; 12500b57cec5SDimitry Andric 12510b57cec5SDimitry Andricdef : ProcessorModel<"cortex-a7", CortexA8Model, [ARMv7a, ProcA7, 12520b57cec5SDimitry Andric FeatureHasRetAddrStack, 12530b57cec5SDimitry Andric FeatureTrustZone, 12540b57cec5SDimitry Andric FeatureSlowFPBrcc, 12550b57cec5SDimitry Andric FeatureHasVMLxHazards, 12560b57cec5SDimitry Andric FeatureHasSlowFPVMLx, 1257480093f4SDimitry Andric FeatureHasSlowFPVFMx, 12580b57cec5SDimitry Andric FeatureVMLxForwarding, 12590b57cec5SDimitry Andric FeatureMP, 12600b57cec5SDimitry Andric FeatureVFP4, 12610b57cec5SDimitry Andric FeatureVirtualization]>; 12620b57cec5SDimitry Andric 12630b57cec5SDimitry Andricdef : ProcessorModel<"cortex-a8", CortexA8Model, [ARMv7a, ProcA8, 12640b57cec5SDimitry Andric FeatureHasRetAddrStack, 12650b57cec5SDimitry Andric FeatureNonpipelinedVFP, 12660b57cec5SDimitry Andric FeatureTrustZone, 12670b57cec5SDimitry Andric FeatureSlowFPBrcc, 12680b57cec5SDimitry Andric FeatureHasVMLxHazards, 12690b57cec5SDimitry Andric FeatureHasSlowFPVMLx, 1270480093f4SDimitry Andric FeatureHasSlowFPVFMx, 12710b57cec5SDimitry Andric FeatureVMLxForwarding]>; 12720b57cec5SDimitry Andric 12730b57cec5SDimitry Andricdef : ProcessorModel<"cortex-a9", CortexA9Model, [ARMv7a, ProcA9, 12740b57cec5SDimitry Andric FeatureHasRetAddrStack, 12750b57cec5SDimitry Andric FeatureTrustZone, 12760b57cec5SDimitry Andric FeatureHasVMLxHazards, 12770b57cec5SDimitry Andric FeatureVMLxForwarding, 12780b57cec5SDimitry Andric FeatureFP16, 12790b57cec5SDimitry Andric FeatureAvoidPartialCPSR, 12800b57cec5SDimitry Andric FeatureExpandMLx, 12810b57cec5SDimitry Andric FeaturePreferVMOVSR, 12820b57cec5SDimitry Andric FeatureMuxedUnits, 12830b57cec5SDimitry Andric FeatureNEONForFPMovs, 12840b57cec5SDimitry Andric FeatureCheckVLDnAlign, 12850b57cec5SDimitry Andric FeatureMP]>; 12860b57cec5SDimitry Andric 12870b57cec5SDimitry Andricdef : ProcessorModel<"cortex-a12", CortexA9Model, [ARMv7a, ProcA12, 12880b57cec5SDimitry Andric FeatureHasRetAddrStack, 12890b57cec5SDimitry Andric FeatureTrustZone, 12900b57cec5SDimitry Andric FeatureVMLxForwarding, 12910b57cec5SDimitry Andric FeatureVFP4, 12920b57cec5SDimitry Andric FeatureAvoidPartialCPSR, 12930b57cec5SDimitry Andric FeatureVirtualization, 12940b57cec5SDimitry Andric FeatureMP]>; 12950b57cec5SDimitry Andric 12960b57cec5SDimitry Andricdef : ProcessorModel<"cortex-a15", CortexA9Model, [ARMv7a, ProcA15, 12970b57cec5SDimitry Andric FeatureDontWidenVMOVS, 12980b57cec5SDimitry Andric FeatureSplatVFPToNeon, 12990b57cec5SDimitry Andric FeatureHasRetAddrStack, 13000b57cec5SDimitry Andric FeatureMuxedUnits, 13010b57cec5SDimitry Andric FeatureTrustZone, 13020b57cec5SDimitry Andric FeatureVFP4, 13030b57cec5SDimitry Andric FeatureMP, 13040b57cec5SDimitry Andric FeatureCheckVLDnAlign, 13050b57cec5SDimitry Andric FeatureAvoidPartialCPSR, 13060b57cec5SDimitry Andric FeatureVirtualization]>; 13070b57cec5SDimitry Andric 13080b57cec5SDimitry Andricdef : ProcessorModel<"cortex-a17", CortexA9Model, [ARMv7a, ProcA17, 13090b57cec5SDimitry Andric FeatureHasRetAddrStack, 13100b57cec5SDimitry Andric FeatureTrustZone, 13110b57cec5SDimitry Andric FeatureMP, 13120b57cec5SDimitry Andric FeatureVMLxForwarding, 13130b57cec5SDimitry Andric FeatureVFP4, 13140b57cec5SDimitry Andric FeatureAvoidPartialCPSR, 13150b57cec5SDimitry Andric FeatureVirtualization]>; 13160b57cec5SDimitry Andric 13170b57cec5SDimitry Andric// FIXME: krait has currently the same features as A9 plus VFP4 and HWDiv 13180b57cec5SDimitry Andricdef : ProcessorModel<"krait", CortexA9Model, [ARMv7a, ProcKrait, 13190b57cec5SDimitry Andric FeatureHasRetAddrStack, 13200b57cec5SDimitry Andric FeatureMuxedUnits, 13210b57cec5SDimitry Andric FeatureCheckVLDnAlign, 13220b57cec5SDimitry Andric FeatureVMLxForwarding, 13230b57cec5SDimitry Andric FeatureFP16, 13240b57cec5SDimitry Andric FeatureAvoidPartialCPSR, 13250b57cec5SDimitry Andric FeatureVFP4, 13260b57cec5SDimitry Andric FeatureHWDivThumb, 13270b57cec5SDimitry Andric FeatureHWDivARM]>; 13280b57cec5SDimitry Andric 13290b57cec5SDimitry Andricdef : ProcessorModel<"swift", SwiftModel, [ARMv7a, ProcSwift, 13300b57cec5SDimitry Andric FeatureHasRetAddrStack, 13310b57cec5SDimitry Andric FeatureNEONForFP, 13320b57cec5SDimitry Andric FeatureVFP4, 13330b57cec5SDimitry Andric FeatureUseWideStrideVFP, 13340b57cec5SDimitry Andric FeatureMP, 13350b57cec5SDimitry Andric FeatureHWDivThumb, 13360b57cec5SDimitry Andric FeatureHWDivARM, 13370b57cec5SDimitry Andric FeatureAvoidPartialCPSR, 13380b57cec5SDimitry Andric FeatureAvoidMOVsShOp, 13390b57cec5SDimitry Andric FeatureHasSlowFPVMLx, 1340480093f4SDimitry Andric FeatureHasSlowFPVFMx, 13410b57cec5SDimitry Andric FeatureHasVMLxHazards, 13420b57cec5SDimitry Andric FeatureProfUnpredicate, 13430b57cec5SDimitry Andric FeaturePrefISHSTBarrier, 13440b57cec5SDimitry Andric FeatureSlowOddRegister, 13450b57cec5SDimitry Andric FeatureSlowLoadDSubreg, 13460b57cec5SDimitry Andric FeatureSlowVGETLNi32, 13470b57cec5SDimitry Andric FeatureSlowVDUP32, 13480b57cec5SDimitry Andric FeatureUseMISched, 13490b57cec5SDimitry Andric FeatureNoPostRASched]>; 13500b57cec5SDimitry Andric 13510b57cec5SDimitry Andricdef : ProcessorModel<"cortex-r4", CortexA8Model, [ARMv7r, ProcR4, 13520b57cec5SDimitry Andric FeatureHasRetAddrStack, 13530b57cec5SDimitry Andric FeatureAvoidPartialCPSR]>; 13540b57cec5SDimitry Andric 13550b57cec5SDimitry Andricdef : ProcessorModel<"cortex-r4f", CortexA8Model, [ARMv7r, ProcR4, 13560b57cec5SDimitry Andric FeatureHasRetAddrStack, 13570b57cec5SDimitry Andric FeatureSlowFPBrcc, 13580b57cec5SDimitry Andric FeatureHasSlowFPVMLx, 1359480093f4SDimitry Andric FeatureHasSlowFPVFMx, 13600b57cec5SDimitry Andric FeatureVFP3_D16, 13610b57cec5SDimitry Andric FeatureAvoidPartialCPSR]>; 13620b57cec5SDimitry Andric 13630b57cec5SDimitry Andricdef : ProcessorModel<"cortex-r5", CortexA8Model, [ARMv7r, ProcR5, 13640b57cec5SDimitry Andric FeatureHasRetAddrStack, 13650b57cec5SDimitry Andric FeatureVFP3_D16, 13660b57cec5SDimitry Andric FeatureSlowFPBrcc, 13670b57cec5SDimitry Andric FeatureHWDivARM, 13680b57cec5SDimitry Andric FeatureHasSlowFPVMLx, 1369480093f4SDimitry Andric FeatureHasSlowFPVFMx, 13700b57cec5SDimitry Andric FeatureAvoidPartialCPSR]>; 13710b57cec5SDimitry Andric 13720b57cec5SDimitry Andricdef : ProcessorModel<"cortex-r7", CortexA8Model, [ARMv7r, ProcR7, 13730b57cec5SDimitry Andric FeatureHasRetAddrStack, 13740b57cec5SDimitry Andric FeatureVFP3_D16, 13750b57cec5SDimitry Andric FeatureFP16, 13760b57cec5SDimitry Andric FeatureMP, 13770b57cec5SDimitry Andric FeatureSlowFPBrcc, 13780b57cec5SDimitry Andric FeatureHWDivARM, 13790b57cec5SDimitry Andric FeatureHasSlowFPVMLx, 1380480093f4SDimitry Andric FeatureHasSlowFPVFMx, 13810b57cec5SDimitry Andric FeatureAvoidPartialCPSR]>; 13820b57cec5SDimitry Andric 13830b57cec5SDimitry Andricdef : ProcessorModel<"cortex-r8", CortexA8Model, [ARMv7r, 13840b57cec5SDimitry Andric FeatureHasRetAddrStack, 13850b57cec5SDimitry Andric FeatureVFP3_D16, 13860b57cec5SDimitry Andric FeatureFP16, 13870b57cec5SDimitry Andric FeatureMP, 13880b57cec5SDimitry Andric FeatureSlowFPBrcc, 13890b57cec5SDimitry Andric FeatureHWDivARM, 13900b57cec5SDimitry Andric FeatureHasSlowFPVMLx, 1391480093f4SDimitry Andric FeatureHasSlowFPVFMx, 13920b57cec5SDimitry Andric FeatureAvoidPartialCPSR]>; 13930b57cec5SDimitry Andric 13940b57cec5SDimitry Andricdef : ProcessorModel<"cortex-m3", CortexM4Model, [ARMv7m, 13950b57cec5SDimitry Andric ProcM3, 13960b57cec5SDimitry Andric FeaturePrefLoopAlign32, 13970b57cec5SDimitry Andric FeatureUseMISched, 13980b57cec5SDimitry Andric FeatureHasNoBranchPredictor]>; 13990b57cec5SDimitry Andric 14000b57cec5SDimitry Andricdef : ProcessorModel<"sc300", CortexM4Model, [ARMv7m, 14010b57cec5SDimitry Andric ProcM3, 14020b57cec5SDimitry Andric FeatureUseMISched, 14030b57cec5SDimitry Andric FeatureHasNoBranchPredictor]>; 14040b57cec5SDimitry Andric 14050b57cec5SDimitry Andricdef : ProcessorModel<"cortex-m4", CortexM4Model, [ARMv7em, 14060b57cec5SDimitry Andric FeatureVFP4_D16_SP, 14070b57cec5SDimitry Andric FeaturePrefLoopAlign32, 14080b57cec5SDimitry Andric FeatureHasSlowFPVMLx, 1409480093f4SDimitry Andric FeatureHasSlowFPVFMx, 14100b57cec5SDimitry Andric FeatureUseMISched, 14110b57cec5SDimitry Andric FeatureHasNoBranchPredictor]>; 14120b57cec5SDimitry Andric 1413e8d8bef9SDimitry Andricdef : ProcessorModel<"cortex-m7", CortexM7Model, [ARMv7em, 1414e8d8bef9SDimitry Andric ProcM7, 1415e8d8bef9SDimitry Andric FeatureFPARMv8_D16, 1416*81ad6265SDimitry Andric FeatureUseMIPipeliner, 1417e8d8bef9SDimitry Andric FeatureUseMISched]>; 14180b57cec5SDimitry Andric 14190b57cec5SDimitry Andricdef : ProcNoItin<"cortex-m23", [ARMv8mBaseline, 1420fe6060f1SDimitry Andric FeatureNoMovt, 1421fe6060f1SDimitry Andric FeatureHasNoBranchPredictor]>; 14220b57cec5SDimitry Andric 14230b57cec5SDimitry Andricdef : ProcessorModel<"cortex-m33", CortexM4Model, [ARMv8mMainline, 14240b57cec5SDimitry Andric FeatureDSP, 14250b57cec5SDimitry Andric FeatureFPARMv8_D16_SP, 14260b57cec5SDimitry Andric FeaturePrefLoopAlign32, 14270b57cec5SDimitry Andric FeatureHasSlowFPVMLx, 1428480093f4SDimitry Andric FeatureHasSlowFPVFMx, 14290b57cec5SDimitry Andric FeatureUseMISched, 1430349cc55cSDimitry Andric FeatureHasNoBranchPredictor, 1431349cc55cSDimitry Andric FeatureFixCMSE_CVE_2021_35465]>; 14320b57cec5SDimitry Andric 14330b57cec5SDimitry Andricdef : ProcessorModel<"cortex-m35p", CortexM4Model, [ARMv8mMainline, 14340b57cec5SDimitry Andric FeatureDSP, 14350b57cec5SDimitry Andric FeatureFPARMv8_D16_SP, 14360b57cec5SDimitry Andric FeaturePrefLoopAlign32, 14370b57cec5SDimitry Andric FeatureHasSlowFPVMLx, 1438480093f4SDimitry Andric FeatureHasSlowFPVFMx, 14390b57cec5SDimitry Andric FeatureUseMISched, 1440349cc55cSDimitry Andric FeatureHasNoBranchPredictor, 1441349cc55cSDimitry Andric FeatureFixCMSE_CVE_2021_35465]>; 14420b57cec5SDimitry Andric 14435ffd83dbSDimitry Andricdef : ProcessorModel<"cortex-m55", CortexM4Model, [ARMv81mMainline, 14445ffd83dbSDimitry Andric FeatureDSP, 14455ffd83dbSDimitry Andric FeatureFPARMv8_D16, 14465ffd83dbSDimitry Andric FeatureUseMISched, 14475ffd83dbSDimitry Andric FeatureHasNoBranchPredictor, 14485ffd83dbSDimitry Andric FeaturePrefLoopAlign32, 14495ffd83dbSDimitry Andric FeatureHasSlowFPVMLx, 1450349cc55cSDimitry Andric HasMVEFloatOps, 1451349cc55cSDimitry Andric FeatureFixCMSE_CVE_2021_35465]>; 14520b57cec5SDimitry Andric 14530b57cec5SDimitry Andricdef : ProcNoItin<"cortex-a32", [ARMv8a, 14540b57cec5SDimitry Andric FeatureHWDivThumb, 14550b57cec5SDimitry Andric FeatureHWDivARM, 14560b57cec5SDimitry Andric FeatureCrypto, 14570b57cec5SDimitry Andric FeatureCRC]>; 14580b57cec5SDimitry Andric 14590b57cec5SDimitry Andricdef : ProcNoItin<"cortex-a35", [ARMv8a, ProcA35, 14600b57cec5SDimitry Andric FeatureHWDivThumb, 14610b57cec5SDimitry Andric FeatureHWDivARM, 14620b57cec5SDimitry Andric FeatureCrypto, 14630b57cec5SDimitry Andric FeatureCRC]>; 14640b57cec5SDimitry Andric 14650b57cec5SDimitry Andricdef : ProcNoItin<"cortex-a53", [ARMv8a, ProcA53, 14660b57cec5SDimitry Andric FeatureHWDivThumb, 14670b57cec5SDimitry Andric FeatureHWDivARM, 14680b57cec5SDimitry Andric FeatureCrypto, 14690b57cec5SDimitry Andric FeatureCRC, 14700b57cec5SDimitry Andric FeatureFPAO]>; 14710b57cec5SDimitry Andric 14720b57cec5SDimitry Andricdef : ProcNoItin<"cortex-a55", [ARMv82a, ProcA55, 14730b57cec5SDimitry Andric FeatureHWDivThumb, 14740b57cec5SDimitry Andric FeatureHWDivARM, 14750b57cec5SDimitry Andric FeatureDotProd]>; 14760b57cec5SDimitry Andric 14770b57cec5SDimitry Andricdef : ProcessorModel<"cortex-a57", CortexA57Model, [ARMv8a, ProcA57, 14780b57cec5SDimitry Andric FeatureHWDivThumb, 14790b57cec5SDimitry Andric FeatureHWDivARM, 14800b57cec5SDimitry Andric FeatureCrypto, 14810b57cec5SDimitry Andric FeatureCRC, 14820b57cec5SDimitry Andric FeatureFPAO, 14830b57cec5SDimitry Andric FeatureAvoidPartialCPSR, 1484*81ad6265SDimitry Andric FeatureCheapPredicableCPSR, 1485*81ad6265SDimitry Andric FeatureFixCortexA57AES1742098]>; 14860b57cec5SDimitry Andric 14870b57cec5SDimitry Andricdef : ProcessorModel<"cortex-a72", CortexA57Model, [ARMv8a, ProcA72, 14880b57cec5SDimitry Andric FeatureHWDivThumb, 14890b57cec5SDimitry Andric FeatureHWDivARM, 14900b57cec5SDimitry Andric FeatureCrypto, 1491*81ad6265SDimitry Andric FeatureCRC, 1492*81ad6265SDimitry Andric FeatureFixCortexA57AES1742098]>; 14930b57cec5SDimitry Andric 14940b57cec5SDimitry Andricdef : ProcNoItin<"cortex-a73", [ARMv8a, ProcA73, 14950b57cec5SDimitry Andric FeatureHWDivThumb, 14960b57cec5SDimitry Andric FeatureHWDivARM, 14970b57cec5SDimitry Andric FeatureCrypto, 14980b57cec5SDimitry Andric FeatureCRC]>; 14990b57cec5SDimitry Andric 15000b57cec5SDimitry Andricdef : ProcNoItin<"cortex-a75", [ARMv82a, ProcA75, 15010b57cec5SDimitry Andric FeatureHWDivThumb, 15020b57cec5SDimitry Andric FeatureHWDivARM, 15030b57cec5SDimitry Andric FeatureDotProd]>; 15040b57cec5SDimitry Andric 15050b57cec5SDimitry Andricdef : ProcNoItin<"cortex-a76", [ARMv82a, ProcA76, 15060b57cec5SDimitry Andric FeatureHWDivThumb, 15070b57cec5SDimitry Andric FeatureHWDivARM, 15080b57cec5SDimitry Andric FeatureCrypto, 15090b57cec5SDimitry Andric FeatureCRC, 15100b57cec5SDimitry Andric FeatureFullFP16, 15110b57cec5SDimitry Andric FeatureDotProd]>; 15120b57cec5SDimitry Andric 15130b57cec5SDimitry Andricdef : ProcNoItin<"cortex-a76ae", [ARMv82a, ProcA76, 15140b57cec5SDimitry Andric FeatureHWDivThumb, 15150b57cec5SDimitry Andric FeatureHWDivARM, 15160b57cec5SDimitry Andric FeatureCrypto, 15170b57cec5SDimitry Andric FeatureCRC, 15180b57cec5SDimitry Andric FeatureFullFP16, 15190b57cec5SDimitry Andric FeatureDotProd]>; 15200b57cec5SDimitry Andric 15215ffd83dbSDimitry Andricdef : ProcNoItin<"cortex-a77", [ARMv82a, ProcA77, 15225ffd83dbSDimitry Andric FeatureHWDivThumb, 15235ffd83dbSDimitry Andric FeatureHWDivARM, 15245ffd83dbSDimitry Andric FeatureCrypto, 15255ffd83dbSDimitry Andric FeatureCRC, 15265ffd83dbSDimitry Andric FeatureFullFP16, 15275ffd83dbSDimitry Andric FeatureDotProd]>; 15285ffd83dbSDimitry Andric 15295ffd83dbSDimitry Andricdef : ProcNoItin<"cortex-a78", [ARMv82a, ProcA78, 15305ffd83dbSDimitry Andric FeatureHWDivThumb, 15315ffd83dbSDimitry Andric FeatureHWDivARM, 15325ffd83dbSDimitry Andric FeatureCrypto, 15335ffd83dbSDimitry Andric FeatureCRC, 15345ffd83dbSDimitry Andric FeatureFullFP16, 15355ffd83dbSDimitry Andric FeatureDotProd]>; 15365ffd83dbSDimitry Andric 1537e8d8bef9SDimitry Andricdef : ProcNoItin<"cortex-a78c", [ARMv82a, ProcA78C, 1538e8d8bef9SDimitry Andric FeatureHWDivThumb, 1539e8d8bef9SDimitry Andric FeatureHWDivARM, 1540e8d8bef9SDimitry Andric FeatureCrypto, 1541e8d8bef9SDimitry Andric FeatureCRC, 1542e8d8bef9SDimitry Andric FeatureDotProd, 1543e8d8bef9SDimitry Andric FeatureFullFP16]>; 1544e8d8bef9SDimitry Andric 1545349cc55cSDimitry Andricdef : ProcNoItin<"cortex-a710", [ARMv9a, ProcA710, 1546349cc55cSDimitry Andric FeatureHWDivThumb, 1547349cc55cSDimitry Andric FeatureHWDivARM, 1548349cc55cSDimitry Andric FeatureFP16FML, 1549349cc55cSDimitry Andric FeatureBF16, 1550349cc55cSDimitry Andric FeatureMatMulInt8, 1551349cc55cSDimitry Andric FeatureSB]>; 1552349cc55cSDimitry Andric 15535ffd83dbSDimitry Andricdef : ProcNoItin<"cortex-x1", [ARMv82a, ProcX1, 15545ffd83dbSDimitry Andric FeatureHWDivThumb, 15555ffd83dbSDimitry Andric FeatureHWDivARM, 15565ffd83dbSDimitry Andric FeatureCrypto, 15575ffd83dbSDimitry Andric FeatureCRC, 15585ffd83dbSDimitry Andric FeatureFullFP16, 15595ffd83dbSDimitry Andric FeatureDotProd]>; 15605ffd83dbSDimitry Andric 15611fd87a68SDimitry Andricdef : ProcNoItin<"cortex-x1c", [ARMv82a, ProcX1C, 15621fd87a68SDimitry Andric FeatureHWDivThumb, 15631fd87a68SDimitry Andric FeatureHWDivARM, 15641fd87a68SDimitry Andric FeatureCrypto, 15651fd87a68SDimitry Andric FeatureCRC, 15661fd87a68SDimitry Andric FeatureFullFP16, 15671fd87a68SDimitry Andric FeatureDotProd]>; 15681fd87a68SDimitry Andric 1569e8d8bef9SDimitry Andricdef : ProcNoItin<"neoverse-v1", [ARMv84a, 1570e8d8bef9SDimitry Andric FeatureHWDivThumb, 1571e8d8bef9SDimitry Andric FeatureHWDivARM, 1572e8d8bef9SDimitry Andric FeatureCrypto, 1573e8d8bef9SDimitry Andric FeatureCRC, 1574e8d8bef9SDimitry Andric FeatureFullFP16, 1575e8d8bef9SDimitry Andric FeatureBF16, 1576e8d8bef9SDimitry Andric FeatureMatMulInt8]>; 1577e8d8bef9SDimitry Andric 15788bcb0991SDimitry Andricdef : ProcNoItin<"neoverse-n1", [ARMv82a, 15798bcb0991SDimitry Andric FeatureHWDivThumb, 15808bcb0991SDimitry Andric FeatureHWDivARM, 15818bcb0991SDimitry Andric FeatureCrypto, 15828bcb0991SDimitry Andric FeatureCRC, 15838bcb0991SDimitry Andric FeatureDotProd]>; 15848bcb0991SDimitry Andric 1585e8d8bef9SDimitry Andricdef : ProcNoItin<"neoverse-n2", [ARMv85a, 1586e8d8bef9SDimitry Andric FeatureBF16, 158704eeddc0SDimitry Andric FeatureMatMulInt8]>; 1588e8d8bef9SDimitry Andric 15890b57cec5SDimitry Andricdef : ProcessorModel<"cyclone", SwiftModel, [ARMv8a, ProcSwift, 15900b57cec5SDimitry Andric FeatureHasRetAddrStack, 15910b57cec5SDimitry Andric FeatureNEONForFP, 15920b57cec5SDimitry Andric FeatureVFP4, 15930b57cec5SDimitry Andric FeatureMP, 15940b57cec5SDimitry Andric FeatureHWDivThumb, 15950b57cec5SDimitry Andric FeatureHWDivARM, 15960b57cec5SDimitry Andric FeatureAvoidPartialCPSR, 15970b57cec5SDimitry Andric FeatureAvoidMOVsShOp, 15980b57cec5SDimitry Andric FeatureHasSlowFPVMLx, 1599480093f4SDimitry Andric FeatureHasSlowFPVFMx, 16000b57cec5SDimitry Andric FeatureCrypto, 16010b57cec5SDimitry Andric FeatureUseMISched, 16020b57cec5SDimitry Andric FeatureZCZeroing, 16030b57cec5SDimitry Andric FeatureNoPostRASched]>; 16040b57cec5SDimitry Andric 16050b57cec5SDimitry Andricdef : ProcNoItin<"exynos-m3", [ARMv8a, ProcExynos]>; 16060b57cec5SDimitry Andricdef : ProcNoItin<"exynos-m4", [ARMv82a, ProcExynos, 16070b57cec5SDimitry Andric FeatureFullFP16, 16080b57cec5SDimitry Andric FeatureDotProd]>; 16090b57cec5SDimitry Andricdef : ProcNoItin<"exynos-m5", [ARMv82a, ProcExynos, 16100b57cec5SDimitry Andric FeatureFullFP16, 16110b57cec5SDimitry Andric FeatureDotProd]>; 16120b57cec5SDimitry Andric 16130b57cec5SDimitry Andricdef : ProcNoItin<"kryo", [ARMv8a, ProcKryo, 16140b57cec5SDimitry Andric FeatureHWDivThumb, 16150b57cec5SDimitry Andric FeatureHWDivARM, 16160b57cec5SDimitry Andric FeatureCrypto, 16170b57cec5SDimitry Andric FeatureCRC]>; 16180b57cec5SDimitry Andric 16190b57cec5SDimitry Andricdef : ProcessorModel<"cortex-r52", CortexR52Model, [ARMv8r, ProcR52, 16200b57cec5SDimitry Andric FeatureUseMISched, 1621480093f4SDimitry Andric FeatureFPAO]>; 16220b57cec5SDimitry Andric 16230b57cec5SDimitry Andric//===----------------------------------------------------------------------===// 16240b57cec5SDimitry Andric// Declare the target which we are implementing 16250b57cec5SDimitry Andric//===----------------------------------------------------------------------===// 16260b57cec5SDimitry Andric 16270b57cec5SDimitry Andricdef ARMAsmWriter : AsmWriter { 16280b57cec5SDimitry Andric string AsmWriterClassName = "InstPrinter"; 16290b57cec5SDimitry Andric int PassSubtarget = 1; 16300b57cec5SDimitry Andric int Variant = 0; 16310b57cec5SDimitry Andric bit isMCAsmWriter = 1; 16320b57cec5SDimitry Andric} 16330b57cec5SDimitry Andric 16340b57cec5SDimitry Andricdef ARMAsmParser : AsmParser { 16350b57cec5SDimitry Andric bit ReportMultipleNearMisses = 1; 16360b57cec5SDimitry Andric} 16370b57cec5SDimitry Andric 16380b57cec5SDimitry Andricdef ARMAsmParserVariant : AsmParserVariant { 16390b57cec5SDimitry Andric int Variant = 0; 16400b57cec5SDimitry Andric string Name = "ARM"; 16410b57cec5SDimitry Andric string BreakCharacters = "."; 16420b57cec5SDimitry Andric} 16430b57cec5SDimitry Andric 16440b57cec5SDimitry Andricdef ARM : Target { 16450b57cec5SDimitry Andric // Pull in Instruction Info. 16460b57cec5SDimitry Andric let InstructionSet = ARMInstrInfo; 16470b57cec5SDimitry Andric let AssemblyWriters = [ARMAsmWriter]; 16480b57cec5SDimitry Andric let AssemblyParsers = [ARMAsmParser]; 16490b57cec5SDimitry Andric let AssemblyParserVariants = [ARMAsmParserVariant]; 16500b57cec5SDimitry Andric let AllowRegisterRenaming = 1; 16510b57cec5SDimitry Andric} 1652