diff options
| author | Bradley Smith <bradley.smith@arm.com> | 2013-11-01 13:27:35 +0000 |
|---|---|---|
| committer | Bradley Smith <bradley.smith@arm.com> | 2013-11-01 13:27:35 +0000 |
| commit | 2521975a42e4d9e555543bf59bfe29f7fa31d47d (patch) | |
| tree | 9c3db62e9fa50a59c93c7814c71f4efda838907b /llvm/lib/Target/ARM/ARMSubtarget.h | |
| parent | b4b0cc07567f57391f29b8e4fe415cd2fa64ef46 (diff) | |
| download | bcm5719-llvm-2521975a42e4d9e555543bf59bfe29f7fa31d47d.tar.gz bcm5719-llvm-2521975a42e4d9e555543bf59bfe29f7fa31d47d.zip | |
[ARM] Add Virtualization subtarget feature and more build attributes in this area
Add a Virtualization ARM subtarget feature along with adding proper build
attribute emission for Tag_Virtualization_use (encodes Virtualization and
TrustZone) and Tag_MPextension_use.
Also rework test/CodeGen/ARM/2010-10-19-mc-elf-objheader.ll testcase to
something that is more maintainable. This changes the focus of this
testcase away from testing CPU defaults (which is tested elsewhere), onto
specifically testing that attributes are encoded correctly.
llvm-svn: 193859
Diffstat (limited to 'llvm/lib/Target/ARM/ARMSubtarget.h')
| -rw-r--r-- | llvm/lib/Target/ARM/ARMSubtarget.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMSubtarget.h b/llvm/lib/Target/ARM/ARMSubtarget.h index 41aa2adbbce..0eb0a4463e4 100644 --- a/llvm/lib/Target/ARM/ARMSubtarget.h +++ b/llvm/lib/Target/ARM/ARMSubtarget.h @@ -150,6 +150,10 @@ protected: /// extension (ARMv7 only). bool HasMPExtension; + /// HasVirtualization - True if the subtarget supports the Virtualization + /// extension. + bool HasVirtualization; + /// FPOnlySP - If true, the floating point unit only supports single /// precision. bool FPOnlySP; @@ -260,6 +264,7 @@ public: bool hasNEON() const { return HasNEON; } bool hasCrypto() const { return HasCrypto; } bool hasCRC() const { return HasCRC; } + bool hasVirtualization() const { return HasVirtualization; } bool useNEONForSinglePrecisionFP() const { return hasNEON() && UseNEONForSinglePrecisionFP; } |

