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/ARMSubtarget.h | |
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/ARMSubtarget.h')
-rw-r--r-- | lib/Target/ARM/ARMSubtarget.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMSubtarget.h b/lib/Target/ARM/ARMSubtarget.h index b9a55fb691..41aa2adbbc 100644 --- a/lib/Target/ARM/ARMSubtarget.h +++ b/lib/Target/ARM/ARMSubtarget.h @@ -165,6 +165,9 @@ protected: /// HasCrypto - if true, processor supports Cryptography extensions bool HasCrypto; + /// HasCRC - if true, processor supports CRC instructions + bool HasCRC; + /// AllowsUnalignedMem - If true, the subtarget allows unaligned memory /// accesses for some types. For details, see /// ARMTargetLowering::allowsUnalignedMemoryAccesses(). @@ -256,6 +259,7 @@ public: bool hasFPARMv8() const { return HasFPARMv8; } bool hasNEON() const { return HasNEON; } bool hasCrypto() const { return HasCrypto; } + bool hasCRC() const { return HasCRC; } bool useNEONForSinglePrecisionFP() const { return hasNEON() && UseNEONForSinglePrecisionFP; } |