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",
|
|
|
|
"Does not support ARM mode execution">;
|
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]>;
|
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">;
|
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
|
|
|
|
2011-09-28 14:21:38 +00:00
|
|
|
// M-series ISA?
|
|
|
|
def FeatureMClass : SubtargetFeature<"mclass", "IsMClass", "true",
|
|
|
|
"Is microcontroller profile ('M' series)">;
|
|
|
|
|
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]>;
|
|
|
|
def HasV6T2Ops : SubtargetFeature<"v6t2", "HasV6T2Ops", "true",
|
2011-07-07 08:26:46 +00:00
|
|
|
"Support ARM v6t2 instructions",
|
2011-09-20 21:38:18 +00:00
|
|
|
[HasV6Ops, 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",
|
2011-07-07 03:55:05 +00:00
|
|
|
[HasV6T2Ops]>;
|
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",
|
|
|
|
[FeatureSlowFPBrcc, FeatureNEONForFP,
|
|
|
|
FeatureHasSlowFPVMLx, FeatureVMLxForwarding,
|
|
|
|
FeatureT2XtPk]>;
|
2010-09-10 01:29:16 +00:00
|
|
|
def ProcA8 : SubtargetFeature<"a8", "ARMProcFamily", "CortexA8",
|
|
|
|
"Cortex-A8 ARM processors",
|
2010-12-05 23:03:45 +00:00
|
|
|
[FeatureSlowFPBrcc, FeatureNEONForFP,
|
2011-03-31 19:38:48 +00:00
|
|
|
FeatureHasSlowFPVMLx, FeatureVMLxForwarding,
|
|
|
|
FeatureT2XtPk]>;
|
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,
|
|
|
|
FeatureAvoidPartialCPSR]>;
|
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,
|
2012-09-29 21:43:49 +00:00
|
|
|
FeatureHasSlowFPVMLx]>;
|
|
|
|
|
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",
|
2012-09-17 14:10:54 +00:00
|
|
|
[FeatureT2XtPk, FeatureFP16,
|
2012-09-13 15:05:10 +00:00
|
|
|
FeatureAvoidPartialCPSR]>;
|
2012-12-21 04:35:05 +00:00
|
|
|
def ProcR5 : SubtargetFeature<"r5", "ARMProcFamily", "CortexR5",
|
|
|
|
"Cortex-R5 ARM processors",
|
|
|
|
[FeatureSlowFPBrcc, FeatureHWDivARM,
|
|
|
|
FeatureHasSlowFPVMLx,
|
|
|
|
FeatureAvoidPartialCPSR,
|
|
|
|
FeatureT2XtPk]>;
|
2010-09-10 01:29:16 +00:00
|
|
|
|
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.
|
2011-07-07 03:55:05 +00:00
|
|
|
def : Processor<"cortex-m0", ARMV6Itineraries, [HasV6Ops, 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,
|
|
|
|
FeatureHasRAS]>;
|
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,
|
2012-02-28 18:51:51 +00:00
|
|
|
FeatureDSPThumb2, FeatureHasRAS]>;
|
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,
|
2012-02-28 18:51:51 +00:00
|
|
|
FeatureDSPThumb2, FeatureHasRAS]>;
|
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,
|
|
|
|
FeatureHasRAS]>;
|
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,
|
|
|
|
FeatureDSPThumb2, FeatureHasRAS]>;
|
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,
|
|
|
|
FeatureHasRAS]>;
|
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,
|
2011-09-28 14:21:38 +00:00
|
|
|
FeatureVFPOnlySP, 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,
|
|
|
|
FeatureHasRAS]>;
|
|
|
|
|
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
|
|
|
|
2010-09-30 01:57:53 +00:00
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Assembly printer
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// ARM Uses the MC printer for asm output, so make sure the TableGen
|
|
|
|
// AsmWriter bits get associated with the correct class.
|
|
|
|
def ARMAsmWriter : AsmWriter {
|
|
|
|
string AsmWriterClassName = "InstPrinter";
|
|
|
|
bit isMCAsmWriter = 1;
|
|
|
|
}
|
|
|
|
|
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;
|
2010-09-30 01:57:53 +00:00
|
|
|
|
|
|
|
let AssemblyWriters = [ARMAsmWriter];
|
2006-05-14 22:18:28 +00:00
|
|
|
}
|