diff options
author | Bob Wilson <bob.wilson@apple.com> | 2013-11-03 06:48:38 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2013-11-03 06:48:38 +0000 |
commit | 208130f11331eccab26c0a6f3146cd1891e53e33 (patch) | |
tree | 12cab7de22cfa409359560285db92ac981595524 /include | |
parent | cb01efb7988d119d6e2aedab1740695aa6a9cc0c (diff) | |
download | llvm-208130f11331eccab26c0a6f3146cd1891e53e33.tar.gz llvm-208130f11331eccab26c0a6f3146cd1891e53e33.tar.bz2 llvm-208130f11331eccab26c0a6f3146cd1891e53e33.tar.xz |
Convert calls to __sinpi and __cospi into __sincospi_stret
This adds an SimplifyLibCalls case which converts the special __sinpi and
__cospi (float & double variants) into a __sincospi_stret where appropriate to
remove duplicated work.
Patch by Tim Northover
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193943 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Target/TargetLibraryInfo.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetLibraryInfo.h b/include/llvm/Target/TargetLibraryInfo.h index 9111cb1ff0..46eaef2871 100644 --- a/include/llvm/Target/TargetLibraryInfo.h +++ b/include/llvm/Target/TargetLibraryInfo.h @@ -46,6 +46,10 @@ namespace llvm { Znwm, /// void *new(unsigned long, nothrow); ZnwmRKSt9nothrow_t, + /// double __cospi(double x); + cospi, + /// float __cospif(float x); + cospif, /// int __cxa_atexit(void (*f)(void *), void *p, void *d); cxa_atexit, /// void __cxa_guard_abort(guard_t *guard); @@ -61,6 +65,14 @@ namespace llvm { dunder_isoc99_sscanf, /// void *__memcpy_chk(void *s1, const void *s2, size_t n, size_t s1size); memcpy_chk, + /// double __sincospi_stret(double x); + sincospi_stret, + /// float __sincospi_stretf(float x); + sincospi_stretf, + /// double __sinpi(double x); + sinpi, + /// float __sinpif(float x); + sinpif, /// double __sqrt_finite(double x); sqrt_finite, /// float __sqrt_finite(float x); |