summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorBradley Smith <bradley.smith@arm.com>2016-01-15 10:28:25 +0000
committerBradley Smith <bradley.smith@arm.com>2016-01-15 10:28:25 +0000
commit48b93e1f21e52c1a933b44fbe22f52de94eef566 (patch)
tree823c0b19d72b1b6547eaf65c2312dd9e9a052494 /llvm/lib/Target
parent42f6e90a43333b7b5fa5168a178678f4360d27ff (diff)
downloadbcm5719-llvm-48b93e1f21e52c1a933b44fbe22f52de94eef566.tar.gz
bcm5719-llvm-48b93e1f21e52c1a933b44fbe22f52de94eef566.zip
[ARM] Add DSP build attribute and extension targeting
llvm-svn: 257885
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/ARM/ARMAsmPrinter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMAsmPrinter.cpp b/llvm/lib/Target/ARM/ARMAsmPrinter.cpp
index 84b494a88f6..9247160dd75 100644
--- a/llvm/lib/Target/ARM/ARMAsmPrinter.cpp
+++ b/llvm/lib/Target/ARM/ARMAsmPrinter.cpp
@@ -807,6 +807,9 @@ void ARMAsmPrinter::emitAttributes() {
if (STI.hasDivideInARMMode() && !STI.hasV8Ops())
ATS.emitAttribute(ARMBuildAttrs::DIV_use, ARMBuildAttrs::AllowDIVExt);
+ if (STI.hasDSP() && isV8M(&STI))
+ ATS.emitAttribute(ARMBuildAttrs::DSP_extension, ARMBuildAttrs::Allowed);
+
if (MMI) {
if (const Module *SourceModule = MMI->getModule()) {
// ABI_PCS_wchar_t to indicate wchar_t width
OpenPOWER on IntegriCloud