summaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMSubtarget.h
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2013-11-03 06:14:38 +0000
committerBob Wilson <bob.wilson@apple.com>2013-11-03 06:14:38 +0000
commitcb01efb7988d119d6e2aedab1740695aa6a9cc0c (patch)
treec64c604316f926b4c99c9abc6a930bda94fe5600 /lib/Target/ARM/ARMSubtarget.h
parent11cecbe1a070d461bb213a6037712f25e59a920a (diff)
downloadllvm-cb01efb7988d119d6e2aedab1740695aa6a9cc0c.tar.gz
llvm-cb01efb7988d119d6e2aedab1740695aa6a9cc0c.tar.bz2
llvm-cb01efb7988d119d6e2aedab1740695aa6a9cc0c.tar.xz
Enable optimization of sin / cos pair into call to __sincos_stret for iOS7+.
rdar://12856873 Patch by Evan Cheng, with a fix for rdar://13209539 by Tilmann Scheller git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193942 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMSubtarget.h')
-rw-r--r--lib/Target/ARM/ARMSubtarget.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMSubtarget.h b/lib/Target/ARM/ARMSubtarget.h
index 0eb0a4463e..aab93f1d6c 100644
--- a/lib/Target/ARM/ARMSubtarget.h
+++ b/lib/Target/ARM/ARMSubtarget.h
@@ -330,6 +330,10 @@ public:
const std::string & getCPUString() const { return CPUString; }
unsigned getMispredictionPenalty() const;
+
+ /// This function returns true if the target has sincos() routine in its
+ /// compiler runtime or math libraries.
+ bool hasSinCos() const;
/// enablePostRAScheduler - True at 'More' optimization.
bool enablePostRAScheduler(CodeGenOpt::Level OptLevel,