2012-02-18 12:03:15 +00:00
|
|
|
//===-- ARM.td - Describe the ARM Target Machine -----------*- tablegen -*-===//
|
2006-05-14 22:18:28 +00:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2007-12-29 20:36:04 +00:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
2006-05-14 22:18:28 +00:00
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Target-independent interfaces which we are implementing
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2008-11-24 07:34:46 +00:00
|
|
|
include "llvm/Target/Target.td"
|
2006-05-14 22:18:28 +00:00
|
|
|
|
2011-07-07 08:26:46 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// ARM Subtarget state.
|
|
|
|
//
|
|
|
|
|
2011-07-07 19:05:12 +00:00
|
|
|
def ModeThumb : SubtargetFeature<"thumb-mode", "InThumbMode", "true",
|
2011-07-07 08:26:46 +00:00
|
|
|
"Thumb mode">;
|
2010-09-30 01:57:53 +00:00
|
|
|
|
2007-01-19 07:51:42 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// ARM Subtarget features.
|
|
|
|
//
|
|
|
|
|
2011-07-07 03:55:05 +00:00
|
|
|
def FeatureVFP2 : SubtargetFeature<"vfp2", "HasVFPv2", "true",
|
2009-05-29 23:41:08 +00:00
|
|
|
"Enable VFP2 instructions">;
|
2011-07-07 03:55:05 +00:00
|
|
|
def FeatureVFP3 : SubtargetFeature<"vfp3", "HasVFPv3", "true",
|
|
|
|
"Enable VFP3 instructions",
|
|
|
|
[FeatureVFP2]>;
|
|
|
|
def FeatureNEON : SubtargetFeature<"neon", "HasNEON", "true",
|
|
|
|
"Enable NEON instructions",
|
|
|
|
[FeatureVFP3]>;
|
2011-07-07 00:08:19 +00:00
|
|
|
def FeatureThumb2 : SubtargetFeature<"thumb2", "HasThumb2", "true",
|
2009-05-29 23:41:08 +00:00
|
|
|
"Enable Thumb2 instructions">;
|
2010-08-11 07:17:46 +00:00
|
|
|
def FeatureNoARM : SubtargetFeature<"noarm", "NoARM", "true",
|
2013-06-10 23:20:58 +00:00
|
|
|
"Does not support ARM mode execution",
|
|
|
|
[ModeThumb]>;
|
2010-03-14 18:42:38 +00:00
|
|
|
def FeatureFP16 : SubtargetFeature<"fp16", "HasFP16", "true",
|
|
|
|
"Enable half-precision floating point">;
|
2012-09-29 21:43:49 +00:00
|
|
|
def FeatureVFP4 : SubtargetFeature<"vfp4", "HasVFPv4", "true",
|
|
|
|
"Enable VFP4 instructions",
|
|
|
|
[FeatureVFP3, FeatureFP16]>;
|
2013-09-13 13:46:57 +00:00
|
|
|
def FeatureFPARMv8 : SubtargetFeature<"fp-armv8", "HasFPARMv8",
|
2013-06-27 11:49:26 +00:00
|
|
|
"true", "Enable ARMv8 FP",
|
|
|
|
[FeatureVFP4]>;
|
2010-10-12 16:22:47 +00:00
|
|
|
def FeatureD16 : SubtargetFeature<"d16", "HasD16", "true",
|
|
|
|
"Restrict VFP3 to 16 double registers">;
|
2010-05-05 23:44:43 +00:00
|
|
|
def FeatureHWDiv : SubtargetFeature<"hwdiv", "HasHardwareDivide", "true",
|
|
|
|
"Enable divide instructions">;
|
2012-09-29 21:43:49 +00:00
|
|
|
def FeatureHWDivARM : SubtargetFeature<"hwdiv-arm",
|
|
|
|
"HasHardwareDivideInARM", "true",
|
|
|
|
"Enable divide instructions in ARM mode">;
|
2010-08-11 06:51:54 +00:00
|
|
|
def FeatureT2XtPk : SubtargetFeature<"t2xtpk", "HasT2ExtractPack", "true",
|
2010-05-05 23:44:43 +00:00
|
|
|
"Enable Thumb2 extract and pack instructions">;
|
2010-08-11 06:51:54 +00:00
|
|
|
def FeatureDB : SubtargetFeature<"db", "HasDataBarrier", "true",
|
|
|
|
"Has data barrier (dmb / dsb) instructions">;
|
2010-07-13 19:21:50 +00:00
|
|
|
def FeatureSlowFPBrcc : SubtargetFeature<"slow-fp-brcc", "SlowFPBrcc", "true",
|
|
|
|
"FP compare + branch is slow">;
|
2010-08-11 15:44:15 +00:00
|
|
|
def FeatureVFPOnlySP : SubtargetFeature<"fp-only-sp", "FPOnlySP", "true",
|
|
|
|
"Floating point unit supports single precision only">;
|
2013-05-23 19:11:14 +00:00
|
|
|
def FeaturePerfMon : SubtargetFeature<"perfmon", "HasPerfMon", "true",
|
|
|
|
"Enable support for Performance Monitor extensions">;
|
2013-04-10 12:08:35 +00:00
|
|
|
def FeatureTrustZone : SubtargetFeature<"trustzone", "HasTrustZone", "true",
|
|
|
|
"Enable support for TrustZone security extensions">;
|
2013-09-19 11:59:01 +00:00
|
|
|
def FeatureCrypto : SubtargetFeature<"crypto", "HasCrypto", "true",
|
|
|
|
"Enable support for Cryptography extensions",
|
|
|
|
[FeatureNEON]>;
|
2013-10-29 09:47:35 +00:00
|
|
|
def FeatureCRC : SubtargetFeature<"crc", "HasCRC", "true",
|
|
|
|
"Enable support for CRC instructions">;
|
2007-01-19 07:51:42 +00:00
|
|
|
|
2010-12-05 22:04:16 +00:00
|
|
|
// Some processors have FP multiply-accumulate instructions that don't
|
|
|
|
// play nicely with other VFP / NEON instructions, and it's generally better
|
2010-03-25 23:11:16 +00:00
|
|
|
// to just not use them.
|
2010-12-05 22:04:16 +00:00
|
|
|
def FeatureHasSlowFPVMLx : SubtargetFeature<"slowfpvmlx", "SlowFPVMLx", "true",
|
|
|
|
"Disable VFP / NEON MAC instructions">;
|
2011-03-31 19:38:48 +00:00
|
|
|
|
|
|
|
// Cortex-A8 / A9 Advanced SIMD has multiplier accumulator forwarding.
|
|
|
|
def FeatureVMLxForwarding : SubtargetFeature<"vmlx-forwarding",
|
|
|
|
"HasVMLxForwarding", "true",
|
|
|
|
"Has multiplier accumulator forwarding">;
|
|
|
|
|
2010-03-25 23:47:34 +00:00
|
|
|
// Some processors benefit from using NEON instructions for scalar
|
|
|
|
// single-precision FP operations.
|
2010-08-17 18:39:16 +00:00
|
|
|
def FeatureNEONForFP : SubtargetFeature<"neonfp", "UseNEONForSinglePrecisionFP",
|
|
|
|
"true",
|
|
|
|
"Use NEON for single precision FP">;
|
2010-03-25 23:47:34 +00:00
|
|
|
|
2010-08-09 18:35:19 +00:00
|
|
|
// Disable 32-bit to 16-bit narrowing for experimentation.
|
|
|
|
def FeaturePref32BitThumb : SubtargetFeature<"32bit", "Pref32BitThumb", "true",
|
|
|
|
"Prefer 32-bit Thumb instrs">;
|
2010-03-25 23:11:16 +00:00
|
|
|
|
2011-04-19 18:11:49 +00:00
|
|
|
/// Some instructions update CPSR partially, which can add false dependency for
|
|
|
|
/// out-of-order implementation, e.g. Cortex-A9, unless each individual bit is
|
|
|
|
/// mapped to a separate physical register. Avoid partial CPSR update for these
|
|
|
|
/// processors.
|
|
|
|
def FeatureAvoidPartialCPSR : SubtargetFeature<"avoid-partial-cpsr",
|
|
|
|
"AvoidCPSRPartialUpdate", "true",
|
|
|
|
"Avoid CPSR partial update for OOO execution">;
|
|
|
|
|
2012-12-20 19:59:30 +00:00
|
|
|
def FeatureAvoidMOVsShOp : SubtargetFeature<"avoid-movs-shop",
|
|
|
|
"AvoidMOVsShifterOperand", "true",
|
|
|
|
"Avoid movs instructions with shifter operand">;
|
|
|
|
|
2012-02-28 18:51:51 +00:00
|
|
|
// Some processors perform return stack prediction. CodeGen should avoid issue
|
|
|
|
// "normal" call instructions to callees which do not return.
|
|
|
|
def FeatureHasRAS : SubtargetFeature<"ras", "HasRAS", "true",
|
|
|
|
"Has return address stack">;
|
|
|
|
|
2011-07-01 21:12:19 +00:00
|
|
|
/// Some M architectures don't have the DSP extension (v7E-M vs. v7M)
|
|
|
|
def FeatureDSPThumb2 : SubtargetFeature<"t2dsp", "Thumb2DSP", "true",
|
2011-08-25 21:46:20 +00:00
|
|
|
"Supports v7 DSP instructions in Thumb2">;
|
2011-07-01 21:12:19 +00:00
|
|
|
|
2010-11-03 06:34:55 +00:00
|
|
|
// Multiprocessing extension.
|
|
|
|
def FeatureMP : SubtargetFeature<"mp", "HasMPExtension", "true",
|
|
|
|
"Supports Multiprocessing extension">;
|
2010-08-11 06:51:54 +00:00
|
|
|
|
2013-11-01 13:27:35 +00:00
|
|
|
// Virtualization extension - requires HW divide (ARMv7-AR ARMARM - 4.4.8).
|
|
|
|
def FeatureVirtualization : SubtargetFeature<"virtualization",
|
|
|
|
"HasVirtualization", "true",
|
|
|
|
"Supports Virtualization extension",
|
|
|
|
[FeatureHWDiv, FeatureHWDivARM]>;
|
|
|
|
|
2013-09-23 14:26:15 +00:00
|
|
|
// M-series ISA
|
|
|
|
def FeatureMClass : SubtargetFeature<"mclass", "ARMProcClass", "MClass",
|
2011-09-28 14:21:38 +00:00
|
|
|
"Is microcontroller profile ('M' series)">;
|
|
|
|
|
2013-09-23 14:26:15 +00:00
|
|
|
// R-series ISA
|
|
|
|
def FeatureRClass : SubtargetFeature<"rclass", "ARMProcClass", "RClass",
|
|
|
|
"Is realtime profile ('R' series)">;
|
|
|
|
|
|
|
|
// A-series ISA
|
|
|
|
def FeatureAClass : SubtargetFeature<"aclass", "ARMProcClass", "AClass",
|
|
|
|
"Is application profile ('A' series)">;
|
|
|
|
|
2013-01-30 16:30:19 +00:00
|
|
|
// Special TRAP encoding for NaCl, which looks like a TRAP in Thumb too.
|
|
|
|
// See ARMInstrInfo.td for details.
|
|
|
|
def FeatureNaClTrap : SubtargetFeature<"nacl-trap", "UseNaClTrap", "true",
|
|
|
|
"NaCl trap">;
|
|
|
|
|
2011-07-07 08:26:46 +00:00
|
|
|
// ARM ISAs.
|
2011-07-07 03:55:05 +00:00
|
|
|
def HasV4TOps : SubtargetFeature<"v4t", "HasV4TOps", "true",
|
2011-07-07 08:26:46 +00:00
|
|
|
"Support ARM v4T instructions">;
|
2011-07-07 03:55:05 +00:00
|
|
|
def HasV5TOps : SubtargetFeature<"v5t", "HasV5TOps", "true",
|
2011-07-07 08:26:46 +00:00
|
|
|
"Support ARM v5T instructions",
|
2011-07-07 03:55:05 +00:00
|
|
|
[HasV4TOps]>;
|
|
|
|
def HasV5TEOps : SubtargetFeature<"v5te", "HasV5TEOps", "true",
|
2011-07-07 08:26:46 +00:00
|
|
|
"Support ARM v5TE, v5TEj, and v5TExp instructions",
|
2011-07-07 03:55:05 +00:00
|
|
|
[HasV5TOps]>;
|
|
|
|
def HasV6Ops : SubtargetFeature<"v6", "HasV6Ops", "true",
|
2011-07-07 08:26:46 +00:00
|
|
|
"Support ARM v6 instructions",
|
2011-07-07 03:55:05 +00:00
|
|
|
[HasV5TEOps]>;
|
2013-10-07 11:10:47 +00:00
|
|
|
def HasV6MOps : SubtargetFeature<"v6m", "HasV6MOps", "true",
|
|
|
|
"Support ARM v6M instructions",
|
|
|
|
[HasV6Ops]>;
|
2011-07-07 03:55:05 +00:00
|
|
|
def HasV6T2Ops : SubtargetFeature<"v6t2", "HasV6T2Ops", "true",
|
2011-07-07 08:26:46 +00:00
|
|
|
"Support ARM v6t2 instructions",
|
2013-10-07 11:10:47 +00:00
|
|
|
[HasV6MOps, FeatureThumb2]>;
|
2011-07-07 03:55:05 +00:00
|
|
|
def HasV7Ops : SubtargetFeature<"v7", "HasV7Ops", "true",
|
2011-07-07 08:26:46 +00:00
|
|
|
"Support ARM v7 instructions",
|
2013-05-23 19:11:14 +00:00
|
|
|
[HasV6T2Ops, FeaturePerfMon]>;
|
2013-06-26 16:58:26 +00:00
|
|
|
def HasV8Ops : SubtargetFeature<"v8", "HasV8Ops", "true",
|
|
|
|
"Support ARM v8 instructions",
|
2013-11-01 13:27:35 +00:00
|
|
|
[HasV7Ops, FeatureVirtualization,
|
|
|
|
FeatureMP]>;
|
2010-08-11 06:51:54 +00:00
|
|
|
|
2007-01-19 07:51:42 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// ARM Processors supported.
|
|
|
|
//
|
|
|
|
|
2009-06-19 01:51:50 +00:00
|
|
|
include "ARMSchedule.td"
|
|
|
|
|
2010-09-10 01:29:16 +00:00
|
|
|
// ARM processor families.
|
2012-11-29 19:48:01 +00:00
|
|
|
def ProcA5 : SubtargetFeature<"a5", "ARMProcFamily", "CortexA5",
|
|
|
|
"Cortex-A5 ARM processors",
|
2013-03-21 18:47:47 +00:00
|
|
|
[FeatureSlowFPBrcc, FeatureHasSlowFPVMLx,
|
2013-04-10 12:08:35 +00:00
|
|
|
FeatureVMLxForwarding, FeatureT2XtPk,
|
2013-11-25 13:17:15 +00:00
|
|
|
FeatureTrustZone, FeatureMP]>;
|
2013-11-21 14:03:21 +00:00
|
|
|
def ProcA7 : SubtargetFeature<"a7", "ARMProcFamily", "CortexA7",
|
|
|
|
"Cortex-A7 ARM processors",
|
|
|
|
[FeatureSlowFPBrcc, FeatureHasSlowFPVMLx,
|
|
|
|
FeatureVMLxForwarding, FeatureT2XtPk,
|
|
|
|
FeatureVFP4, FeatureMP,
|
|
|
|
FeatureHWDiv, FeatureHWDivARM,
|
|
|
|
FeatureTrustZone, FeatureVirtualization]>;
|
2010-09-10 01:29:16 +00:00
|
|
|
def ProcA8 : SubtargetFeature<"a8", "ARMProcFamily", "CortexA8",
|
|
|
|
"Cortex-A8 ARM processors",
|
2013-03-21 18:47:47 +00:00
|
|
|
[FeatureSlowFPBrcc, FeatureHasSlowFPVMLx,
|
2013-04-10 12:08:35 +00:00
|
|
|
FeatureVMLxForwarding, FeatureT2XtPk,
|
|
|
|
FeatureTrustZone]>;
|
2010-09-10 01:29:16 +00:00
|
|
|
def ProcA9 : SubtargetFeature<"a9", "ARMProcFamily", "CortexA9",
|
2010-12-05 23:03:45 +00:00
|
|
|
"Cortex-A9 ARM processors",
|
2011-04-19 18:11:57 +00:00
|
|
|
[FeatureVMLxForwarding,
|
2011-04-19 18:11:49 +00:00
|
|
|
FeatureT2XtPk, FeatureFP16,
|
2013-04-10 12:08:35 +00:00
|
|
|
FeatureAvoidPartialCPSR,
|
|
|
|
FeatureTrustZone]>;
|
2012-09-29 21:43:49 +00:00
|
|
|
def ProcSwift : SubtargetFeature<"swift", "ARMProcFamily", "Swift",
|
|
|
|
"Swift ARM processors",
|
|
|
|
[FeatureNEONForFP, FeatureT2XtPk,
|
|
|
|
FeatureVFP4, FeatureMP, FeatureHWDiv,
|
|
|
|
FeatureHWDivARM, FeatureAvoidPartialCPSR,
|
2012-12-20 19:59:30 +00:00
|
|
|
FeatureAvoidMOVsShOp,
|
2013-04-10 12:08:35 +00:00
|
|
|
FeatureHasSlowFPVMLx, FeatureTrustZone]>;
|
2013-11-22 11:53:16 +00:00
|
|
|
def ProcA12 : SubtargetFeature<"a12", "ARMProcFamily", "CortexA12",
|
|
|
|
"Cortex-A12 ARM processors",
|
|
|
|
[FeatureVMLxForwarding,
|
|
|
|
FeatureT2XtPk, FeatureVFP4,
|
|
|
|
FeatureHWDiv, FeatureHWDivARM,
|
|
|
|
FeatureAvoidPartialCPSR,
|
|
|
|
FeatureVirtualization,
|
|
|
|
FeatureTrustZone]>;
|
|
|
|
|
2012-09-29 21:43:49 +00:00
|
|
|
|
2012-09-13 15:05:10 +00:00
|
|
|
// FIXME: It has not been determined if A15 has these features.
|
|
|
|
def ProcA15 : SubtargetFeature<"a15", "ARMProcFamily", "CortexA15",
|
|
|
|
"Cortex-A15 ARM processors",
|
2013-08-08 15:47:33 +00:00
|
|
|
[FeatureT2XtPk, FeatureVFP4,
|
2013-10-18 10:18:40 +00:00
|
|
|
FeatureMP, FeatureHWDiv, FeatureHWDivARM,
|
2013-04-10 12:08:35 +00:00
|
|
|
FeatureAvoidPartialCPSR,
|
2013-11-01 13:27:35 +00:00
|
|
|
FeatureTrustZone, FeatureVirtualization]>;
|
2013-10-14 13:16:57 +00:00
|
|
|
|
|
|
|
def ProcA53 : SubtargetFeature<"a53", "ARMProcFamily", "CortexA53",
|
|
|
|
"Cortex-A53 ARM processors",
|
2013-11-01 13:27:35 +00:00
|
|
|
[FeatureHWDiv, FeatureHWDivARM,
|
2013-10-14 13:16:57 +00:00
|
|
|
FeatureTrustZone, FeatureT2XtPk,
|
2013-10-29 09:47:35 +00:00
|
|
|
FeatureCrypto, FeatureCRC]>;
|
2013-10-14 13:16:57 +00:00
|
|
|
|
2013-10-14 13:17:07 +00:00
|
|
|
def ProcA57 : SubtargetFeature<"a57", "ARMProcFamily", "CortexA57",
|
|
|
|
"Cortex-A57 ARM processors",
|
2013-11-01 13:27:35 +00:00
|
|
|
[FeatureHWDiv, FeatureHWDivARM,
|
2013-10-14 13:17:07 +00:00
|
|
|
FeatureTrustZone, FeatureT2XtPk,
|
2013-10-29 09:47:35 +00:00
|
|
|
FeatureCrypto, FeatureCRC]>;
|
2013-10-14 13:17:07 +00:00
|
|
|
|
2012-12-21 04:35:05 +00:00
|
|
|
def ProcR5 : SubtargetFeature<"r5", "ARMProcFamily", "CortexR5",
|
|
|
|
"Cortex-R5 ARM processors",
|
2013-06-04 22:52:09 +00:00
|
|
|
[FeatureSlowFPBrcc,
|
|
|
|
FeatureHWDiv, FeatureHWDivARM,
|
2012-12-21 04:35:05 +00:00
|
|
|
FeatureHasSlowFPVMLx,
|
|
|
|
FeatureAvoidPartialCPSR,
|
|
|
|
FeatureT2XtPk]>;
|
2010-09-10 01:29:16 +00:00
|
|
|
|
2013-12-06 22:48:17 +00:00
|
|
|
// FIXME: krait has currently the same features as A9
|
|
|
|
// plus VFP4 and hardware division features.
|
|
|
|
def ProcKrait : SubtargetFeature<"krait", "ARMProcFamily", "Krait",
|
|
|
|
"Qualcomm ARM processors",
|
|
|
|
[FeatureVMLxForwarding,
|
|
|
|
FeatureT2XtPk, FeatureFP16,
|
|
|
|
FeatureAvoidPartialCPSR,
|
|
|
|
FeatureTrustZone,
|
|
|
|
FeatureVFP4,
|
|
|
|
FeatureHWDiv,
|
|
|
|
FeatureHWDivARM]>;
|
|
|
|
|
2014-01-02 13:40:08 +00:00
|
|
|
|
|
|
|
def FeatureAPCS : SubtargetFeature<"apcs", "TargetABI", "ARM_ABI_APCS",
|
|
|
|
"Use the APCS ABI">;
|
|
|
|
|
|
|
|
def FeatureAAPCS : SubtargetFeature<"aapcs", "TargetABI", "ARM_ABI_AAPCS",
|
|
|
|
"Use the AAPCS ABI">;
|
|
|
|
|
|
|
|
|
2009-06-19 01:51:50 +00:00
|
|
|
class ProcNoItin<string Name, list<SubtargetFeature> Features>
|
2012-06-22 03:58:51 +00:00
|
|
|
: Processor<Name, NoItineraries, Features>;
|
2007-01-19 07:51:42 +00:00
|
|
|
|
|
|
|
// V4 Processors.
|
2009-06-19 01:51:50 +00:00
|
|
|
def : ProcNoItin<"generic", []>;
|
|
|
|
def : ProcNoItin<"arm8", []>;
|
|
|
|
def : ProcNoItin<"arm810", []>;
|
|
|
|
def : ProcNoItin<"strongarm", []>;
|
|
|
|
def : ProcNoItin<"strongarm110", []>;
|
|
|
|
def : ProcNoItin<"strongarm1100", []>;
|
|
|
|
def : ProcNoItin<"strongarm1110", []>;
|
2007-01-19 07:51:42 +00:00
|
|
|
|
|
|
|
// V4T Processors.
|
2011-07-07 03:55:05 +00:00
|
|
|
def : ProcNoItin<"arm7tdmi", [HasV4TOps]>;
|
|
|
|
def : ProcNoItin<"arm7tdmi-s", [HasV4TOps]>;
|
|
|
|
def : ProcNoItin<"arm710t", [HasV4TOps]>;
|
|
|
|
def : ProcNoItin<"arm720t", [HasV4TOps]>;
|
|
|
|
def : ProcNoItin<"arm9", [HasV4TOps]>;
|
|
|
|
def : ProcNoItin<"arm9tdmi", [HasV4TOps]>;
|
|
|
|
def : ProcNoItin<"arm920", [HasV4TOps]>;
|
|
|
|
def : ProcNoItin<"arm920t", [HasV4TOps]>;
|
|
|
|
def : ProcNoItin<"arm922t", [HasV4TOps]>;
|
|
|
|
def : ProcNoItin<"arm940t", [HasV4TOps]>;
|
|
|
|
def : ProcNoItin<"ep9312", [HasV4TOps]>;
|
2007-01-19 07:51:42 +00:00
|
|
|
|
|
|
|
// V5T Processors.
|
2011-07-07 03:55:05 +00:00
|
|
|
def : ProcNoItin<"arm10tdmi", [HasV5TOps]>;
|
|
|
|
def : ProcNoItin<"arm1020t", [HasV5TOps]>;
|
2007-01-19 07:51:42 +00:00
|
|
|
|
|
|
|
// V5TE Processors.
|
2011-07-07 03:55:05 +00:00
|
|
|
def : ProcNoItin<"arm9e", [HasV5TEOps]>;
|
|
|
|
def : ProcNoItin<"arm926ej-s", [HasV5TEOps]>;
|
|
|
|
def : ProcNoItin<"arm946e-s", [HasV5TEOps]>;
|
|
|
|
def : ProcNoItin<"arm966e-s", [HasV5TEOps]>;
|
|
|
|
def : ProcNoItin<"arm968e-s", [HasV5TEOps]>;
|
|
|
|
def : ProcNoItin<"arm10e", [HasV5TEOps]>;
|
|
|
|
def : ProcNoItin<"arm1020e", [HasV5TEOps]>;
|
|
|
|
def : ProcNoItin<"arm1022e", [HasV5TEOps]>;
|
|
|
|
def : ProcNoItin<"xscale", [HasV5TEOps]>;
|
|
|
|
def : ProcNoItin<"iwmmxt", [HasV5TEOps]>;
|
2007-01-19 07:51:42 +00:00
|
|
|
|
|
|
|
// V6 Processors.
|
2011-07-07 03:55:05 +00:00
|
|
|
def : Processor<"arm1136j-s", ARMV6Itineraries, [HasV6Ops]>;
|
|
|
|
def : Processor<"arm1136jf-s", ARMV6Itineraries, [HasV6Ops, FeatureVFP2,
|
2010-12-05 22:04:16 +00:00
|
|
|
FeatureHasSlowFPVMLx]>;
|
2011-07-07 03:55:05 +00:00
|
|
|
def : Processor<"arm1176jz-s", ARMV6Itineraries, [HasV6Ops]>;
|
|
|
|
def : Processor<"arm1176jzf-s", ARMV6Itineraries, [HasV6Ops, FeatureVFP2,
|
2010-12-05 22:04:16 +00:00
|
|
|
FeatureHasSlowFPVMLx]>;
|
2011-07-07 03:55:05 +00:00
|
|
|
def : Processor<"mpcorenovfp", ARMV6Itineraries, [HasV6Ops]>;
|
|
|
|
def : Processor<"mpcore", ARMV6Itineraries, [HasV6Ops, FeatureVFP2,
|
2010-12-05 22:04:16 +00:00
|
|
|
FeatureHasSlowFPVMLx]>;
|
2007-01-19 07:51:42 +00:00
|
|
|
|
2010-08-11 06:30:38 +00:00
|
|
|
// V6M Processors.
|
2013-10-07 11:10:47 +00:00
|
|
|
def : Processor<"cortex-m0", ARMV6Itineraries, [HasV6MOps, FeatureNoARM,
|
2011-09-28 14:21:38 +00:00
|
|
|
FeatureDB, FeatureMClass]>;
|
2010-08-11 06:30:38 +00:00
|
|
|
|
2009-06-08 21:20:36 +00:00
|
|
|
// V6T2 Processors.
|
2011-09-20 21:38:18 +00:00
|
|
|
def : Processor<"arm1156t2-s", ARMV6Itineraries, [HasV6T2Ops,
|
|
|
|
FeatureDSPThumb2]>;
|
2011-07-07 03:55:05 +00:00
|
|
|
def : Processor<"arm1156t2f-s", ARMV6Itineraries, [HasV6T2Ops, FeatureVFP2,
|
2011-09-20 21:38:18 +00:00
|
|
|
FeatureHasSlowFPVMLx,
|
|
|
|
FeatureDSPThumb2]>;
|
2009-05-29 23:41:08 +00:00
|
|
|
|
2011-07-07 03:55:05 +00:00
|
|
|
// V7a Processors.
|
2012-11-29 19:48:01 +00:00
|
|
|
// FIXME: A5 has currently the same Schedule model as A8
|
|
|
|
def : ProcessorModel<"cortex-a5", CortexA8Model,
|
|
|
|
[ProcA5, HasV7Ops, FeatureNEON, FeatureDB,
|
|
|
|
FeatureVFP4, FeatureDSPThumb2,
|
2013-09-23 14:26:15 +00:00
|
|
|
FeatureHasRAS, FeatureAClass]>;
|
2013-11-21 14:03:21 +00:00
|
|
|
def : ProcessorModel<"cortex-a7", CortexA8Model,
|
|
|
|
[ProcA7, HasV7Ops, FeatureNEON, FeatureDB,
|
|
|
|
FeatureDSPThumb2, FeatureHasRAS,
|
|
|
|
FeatureAClass]>;
|
2012-07-07 04:00:00 +00:00
|
|
|
def : ProcessorModel<"cortex-a8", CortexA8Model,
|
2011-07-07 03:55:05 +00:00
|
|
|
[ProcA8, HasV7Ops, FeatureNEON, FeatureDB,
|
2013-09-23 14:26:15 +00:00
|
|
|
FeatureDSPThumb2, FeatureHasRAS,
|
|
|
|
FeatureAClass]>;
|
2012-07-07 04:00:00 +00:00
|
|
|
def : ProcessorModel<"cortex-a9", CortexA9Model,
|
2011-07-07 03:55:05 +00:00
|
|
|
[ProcA9, HasV7Ops, FeatureNEON, FeatureDB,
|
2013-09-23 14:26:15 +00:00
|
|
|
FeatureDSPThumb2, FeatureHasRAS,
|
|
|
|
FeatureAClass]>;
|
2012-07-07 04:00:00 +00:00
|
|
|
def : ProcessorModel<"cortex-a9-mp", CortexA9Model,
|
2011-07-07 03:55:05 +00:00
|
|
|
[ProcA9, HasV7Ops, FeatureNEON, FeatureDB,
|
2012-02-28 18:51:51 +00:00
|
|
|
FeatureDSPThumb2, FeatureMP,
|
2013-09-23 14:26:15 +00:00
|
|
|
FeatureHasRAS, FeatureAClass]>;
|
2013-11-22 11:53:16 +00:00
|
|
|
|
|
|
|
// FIXME: A12 has currently the same Schedule model as A9
|
|
|
|
def : ProcessorModel<"cortex-a12", CortexA9Model,
|
|
|
|
[ProcA12, HasV7Ops, FeatureNEON, FeatureDB,
|
|
|
|
FeatureDSPThumb2, FeatureMP,
|
|
|
|
FeatureHasRAS, FeatureAClass]>;
|
|
|
|
|
2012-09-13 15:05:10 +00:00
|
|
|
// FIXME: A15 has currently the same ProcessorModel as A9.
|
|
|
|
def : ProcessorModel<"cortex-a15", CortexA9Model,
|
|
|
|
[ProcA15, HasV7Ops, FeatureNEON, FeatureDB,
|
2013-09-23 14:26:15 +00:00
|
|
|
FeatureDSPThumb2, FeatureHasRAS,
|
|
|
|
FeatureAClass]>;
|
2013-11-22 11:53:16 +00:00
|
|
|
|
2012-12-21 04:35:05 +00:00
|
|
|
// FIXME: R5 has currently the same ProcessorModel as A8.
|
|
|
|
def : ProcessorModel<"cortex-r5", CortexA8Model,
|
|
|
|
[ProcR5, HasV7Ops, FeatureDB,
|
|
|
|
FeatureVFP3, FeatureDSPThumb2,
|
2013-10-07 16:55:23 +00:00
|
|
|
FeatureHasRAS, FeatureVFPOnlySP,
|
[arm] Implement eabi_attribute, cpu, and fpu directives.
This commit allows the ARM integrated assembler to parse
and assemble the code with .eabi_attribute, .cpu, and
.fpu directives.
To implement the feature, this commit moves the code from
AttrEmitter to ARMTargetStreamers, and several new test
cases related to cortex-m4, cortex-r5, and cortex-a15 are
added.
Besides, this commit also change the Subtarget->isFPOnlySP()
to Subtarget->hasD16() to match the usage of .fpu directive.
This commit changes the test cases:
* Several .eabi_attribute directives in
2010-09-29-mc-asm-header-test.ll are removed because the .fpu
directive already cover the functionality.
* In the Cortex-A15 test case, the value for
Tag_Advanced_SIMD_arch has be changed from 1 to 2,
which is more precise.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193524 91177308-0d34-0410-b5e6-96231b3b80d8
2013-10-28 17:51:12 +00:00
|
|
|
FeatureD16, FeatureRClass]>;
|
2010-08-11 06:30:38 +00:00
|
|
|
|
|
|
|
// V7M Processors.
|
2011-07-07 03:55:05 +00:00
|
|
|
def : ProcNoItin<"cortex-m3", [HasV7Ops,
|
|
|
|
FeatureThumb2, FeatureNoARM, FeatureDB,
|
2011-09-28 14:21:38 +00:00
|
|
|
FeatureHWDiv, FeatureMClass]>;
|
2011-07-07 03:55:05 +00:00
|
|
|
|
|
|
|
// V7EM Processors.
|
|
|
|
def : ProcNoItin<"cortex-m4", [HasV7Ops,
|
|
|
|
FeatureThumb2, FeatureNoARM, FeatureDB,
|
|
|
|
FeatureHWDiv, FeatureDSPThumb2,
|
2012-08-02 08:35:55 +00:00
|
|
|
FeatureT2XtPk, FeatureVFP4,
|
[arm] Implement eabi_attribute, cpu, and fpu directives.
This commit allows the ARM integrated assembler to parse
and assemble the code with .eabi_attribute, .cpu, and
.fpu directives.
To implement the feature, this commit moves the code from
AttrEmitter to ARMTargetStreamers, and several new test
cases related to cortex-m4, cortex-r5, and cortex-a15 are
added.
Besides, this commit also change the Subtarget->isFPOnlySP()
to Subtarget->hasD16() to match the usage of .fpu directive.
This commit changes the test cases:
* Several .eabi_attribute directives in
2010-09-29-mc-asm-header-test.ll are removed because the .fpu
directive already cover the functionality.
* In the Cortex-A15 test case, the value for
Tag_Advanced_SIMD_arch has be changed from 1 to 2,
which is more precise.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193524 91177308-0d34-0410-b5e6-96231b3b80d8
2013-10-28 17:51:12 +00:00
|
|
|
FeatureVFPOnlySP, FeatureD16,
|
|
|
|
FeatureMClass]>;
|
2009-05-23 19:51:43 +00:00
|
|
|
|
2012-09-29 21:43:49 +00:00
|
|
|
// Swift uArch Processors.
|
|
|
|
def : ProcessorModel<"swift", SwiftModel,
|
|
|
|
[ProcSwift, HasV7Ops, FeatureNEON,
|
|
|
|
FeatureDB, FeatureDSPThumb2,
|
2013-09-23 14:26:15 +00:00
|
|
|
FeatureHasRAS, FeatureAClass]>;
|
2012-09-29 21:43:49 +00:00
|
|
|
|
2013-06-26 16:58:26 +00:00
|
|
|
// V8 Processors
|
2013-10-14 13:16:57 +00:00
|
|
|
def : ProcNoItin<"cortex-a53", [ProcA53, HasV8Ops, FeatureAClass,
|
|
|
|
FeatureDB, FeatureFPARMv8,
|
|
|
|
FeatureNEON, FeatureDSPThumb2]>;
|
2013-10-14 13:17:07 +00:00
|
|
|
def : ProcNoItin<"cortex-a57", [ProcA57, HasV8Ops, FeatureAClass,
|
|
|
|
FeatureDB, FeatureFPARMv8,
|
|
|
|
FeatureNEON, FeatureDSPThumb2]>;
|
2013-06-26 16:58:26 +00:00
|
|
|
|
2013-12-06 22:48:17 +00:00
|
|
|
// FIXME: krait has currently the same Schedule model as A9
|
|
|
|
def : ProcessorModel<"krait", CortexA9Model,
|
|
|
|
[ProcKrait, HasV7Ops,
|
|
|
|
FeatureNEON, FeatureDB,
|
|
|
|
FeatureDSPThumb2, FeatureHasRAS,
|
|
|
|
FeatureAClass]>;
|
|
|
|
|
2006-05-14 22:18:28 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Register File Description
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
include "ARMRegisterInfo.td"
|
|
|
|
|
2009-04-17 19:07:39 +00:00
|
|
|
include "ARMCallingConv.td"
|
|
|
|
|
2006-05-14 22:18:28 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Instruction Descriptions
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
include "ARMInstrInfo.td"
|
|
|
|
|
2010-04-05 03:10:20 +00:00
|
|
|
def ARMInstrInfo : InstrInfo;
|
2006-05-14 22:18:28 +00:00
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Declare the target which we are implementing
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
def ARM : Target {
|
|
|
|
// Pull in Instruction Info:
|
|
|
|
let InstructionSet = ARMInstrInfo;
|
|
|
|
}
|