aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target/TargetLibraryInfo.h
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2011-11-29 23:57:10 +0000
committerChad Rosier <mcrosier@apple.com>2011-11-29 23:57:10 +0000
commit3d925d24e8c54cde05228258c25cc21687cad922 (patch)
treea6e70c41ffa5b720f5933c591f9a9ff6d9d47a43 /include/llvm/Target/TargetLibraryInfo.h
parent6029b6ddafad45791c9e9d8e8ddd96978294beef (diff)
downloadexternal_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.h9
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,