summaryrefslogtreecommitdiff
path: root/lib/Target/TargetLibraryInfo.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2011-12-08 22:15:21 +0000
committerOwen Anderson <resistor@mac.com>2011-12-08 22:15:21 +0000
commit243eb9ecbbc6775e346e94025bd255bbceac9fca (patch)
tree26975684ff2a5e19713b8ab4a7217846919a1e98 /lib/Target/TargetLibraryInfo.cpp
parent6b044c26094a9f86da7d12945b00a47a5f07cf6d (diff)
downloadllvm-243eb9ecbbc6775e346e94025bd255bbceac9fca.tar.gz
llvm-243eb9ecbbc6775e346e94025bd255bbceac9fca.tar.bz2
llvm-243eb9ecbbc6775e346e94025bd255bbceac9fca.tar.xz
Enhance both TargetLibraryInfo and SelectionDAGBuilder so that the latter can use the former to prevent the formation of libm SDNode's when -fno-builtin is passed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146193 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetLibraryInfo.cpp')
-rw-r--r--lib/Target/TargetLibraryInfo.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/Target/TargetLibraryInfo.cpp b/lib/Target/TargetLibraryInfo.cpp
index 5805cd4837..768facb56a 100644
--- a/lib/Target/TargetLibraryInfo.cpp
+++ b/lib/Target/TargetLibraryInfo.cpp
@@ -37,6 +37,9 @@ const char* TargetLibraryInfo::StandardNames[LibFunc::NumLibFuncs] =
"ceil",
"ceill",
"ceilf",
+ "copysign",
+ "copysignf",
+ "copysignl",
"cos",
"cosl",
"cosf",
@@ -81,9 +84,15 @@ const char* TargetLibraryInfo::StandardNames[LibFunc::NumLibFuncs] =
"memmove",
"memset",
"memset_pattern16",
+ "nearbyint",
+ "nearbyintf",
+ "nearbyintl",
"pow",
"powf",
"powl",
+ "rint",
+ "rintf",
+ "rintl",
"sin",
"sinl",
"sinf",
@@ -99,7 +108,10 @@ const char* TargetLibraryInfo::StandardNames[LibFunc::NumLibFuncs] =
"tanf",
"tanh",
"tanhl",
- "tanhf"
+ "tanhf",
+ "trunc",
+ "truncf",
+ "truncl"
};
/// initialize - Initialize the set of available library functions based on the