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 | ee87e85505bb2b9b5057187785e82715ecbf71f2 (patch) | |
tree | 5a4e6b2b735c8bce994f19220a1c8a72da4ab84f /llvm/lib/Target/ARM/ARMSubtarget.h | |
parent | a36a7825fbcd9c8d8147ee00334569c976199ba9 (diff) | |
download | bcm5719-llvm-ee87e85505bb2b9b5057187785e82715ecbf71f2.tar.gz bcm5719-llvm-ee87e85505bb2b9b5057187785e82715ecbf71f2.zip |
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
llvm-svn: 193599
Diffstat (limited to 'llvm/lib/Target/ARM/ARMSubtarget.h')
-rw-r--r-- | llvm/lib/Target/ARM/ARMSubtarget.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMSubtarget.h b/llvm/lib/Target/ARM/ARMSubtarget.h index b9a55fb6914..41aa2adbbce 100644 --- a/llvm/lib/Target/ARM/ARMSubtarget.h +++ b/llvm/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; } |