diff options
author | Bernard Ogden <bogden@arm.com> | 2013-10-29 09:47:35 +0000 |
---|---|---|
committer | Bernard Ogden <bogden@arm.com> | 2013-10-29 09:47:35 +0000 |
commit | 47c6d17b1cce85ba30471b2270419e35ba3d5653 (patch) | |
tree | f4eca547dd2a067e2e570a49f10ea510b68a2104 /lib/Target/ARM/ARM.td | |
parent | 72202297a90563ec3eedd3015395c8d1a8db0a87 (diff) | |
download | llvm-47c6d17b1cce85ba30471b2270419e35ba3d5653.tar.gz llvm-47c6d17b1cce85ba30471b2270419e35ba3d5653.tar.bz2 llvm-47c6d17b1cce85ba30471b2270419e35ba3d5653.tar.xz |
ARM: Add subtarget feature for CRC
Adds a subtarget feature for the CRC instructions (optional in v8-A) to the ARM (32-bit) backend.
Differential Revision: http://llvm-reviews.chandlerc.com/D2036
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193599 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARM.td')
-rw-r--r-- | lib/Target/ARM/ARM.td | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Target/ARM/ARM.td b/lib/Target/ARM/ARM.td index bf12c323fa..3bf81828bf 100644 --- a/lib/Target/ARM/ARM.td +++ b/lib/Target/ARM/ARM.td @@ -70,6 +70,8 @@ def FeatureTrustZone : SubtargetFeature<"trustzone", "HasTrustZone", "true", def FeatureCrypto : SubtargetFeature<"crypto", "HasCrypto", "true", "Enable support for Cryptography extensions", [FeatureNEON]>; +def FeatureCRC : SubtargetFeature<"crc", "HasCRC", "true", + "Enable support for CRC instructions">; // Some processors have FP multiply-accumulate instructions that don't // play nicely with other VFP / NEON instructions, and it's generally better @@ -202,13 +204,13 @@ def ProcA53 : SubtargetFeature<"a53", "ARMProcFamily", "CortexA53", "Cortex-A53 ARM processors", [FeatureMP, FeatureHWDiv, FeatureHWDivARM, FeatureTrustZone, FeatureT2XtPk, - FeatureCrypto]>; + FeatureCrypto, FeatureCRC]>; def ProcA57 : SubtargetFeature<"a57", "ARMProcFamily", "CortexA57", "Cortex-A57 ARM processors", [FeatureMP, FeatureHWDiv, FeatureHWDivARM, FeatureTrustZone, FeatureT2XtPk, - FeatureCrypto]>; + FeatureCrypto, FeatureCRC]>; def ProcR5 : SubtargetFeature<"r5", "ARMProcFamily", "CortexR5", "Cortex-R5 ARM processors", |