diff options
author | Chad Rosier <mcrosier@apple.com> | 2011-11-29 23:57:10 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2011-11-29 23:57:10 +0000 |
commit | 3d925d24e8c54cde05228258c25cc21687cad922 (patch) | |
tree | a6e70c41ffa5b720f5933c591f9a9ff6d9d47a43 /include/llvm/Target/TargetLibraryInfo.h | |
parent | 6029b6ddafad45791c9e9d8e8ddd96978294beef (diff) | |
download | external_llvm-3d925d24e8c54cde05228258c25cc21687cad922.zip external_llvm-3d925d24e8c54cde05228258c25cc21687cad922.tar.gz external_llvm-3d925d24e8c54cde05228258c25cc21687cad922.tar.bz2 |
Add support for sqrt, sqrtl, and sqrtf in TargetLibraryInfo. Disable
(fptrunc (sqrt (fpext x))) -> (sqrtf x) transformation if -fno-builtin is
specified.
rdar://10466410
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145460 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetLibraryInfo.h')
-rw-r--r-- | include/llvm/Target/TargetLibraryInfo.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetLibraryInfo.h b/include/llvm/Target/TargetLibraryInfo.h index 7770a11..c4c2627 100644 --- a/include/llvm/Target/TargetLibraryInfo.h +++ b/include/llvm/Target/TargetLibraryInfo.h @@ -35,6 +35,15 @@ namespace llvm { /// int siprintf(char *str, const char *format, ...); siprintf, + + /// double sqrt(double x); + sqrt, + + /// long double sqrtl(long double x); + sqrtl, + + /// float sqrtf(float x); + sqrtf, /// int fiprintf(FILE *stream, const char *format, ...); fiprintf, |