aboutsummaryrefslogtreecommitdiff
path: root/llvm/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
commitbb15fec2b8438df56ef9eef80dba3ae05478a069 (patch)
tree1c5fa97ca4008feaa655d6cd03ea51ec949ae5a9 /llvm/lib/Target/TargetLibraryInfo.cpp
parentba7d6ed05d74c66565e6863a2f54da9a447c8a69 (diff)
downloadllvm-bb15fec2b8438df56ef9eef80dba3ae05478a069.zip
llvm-bb15fec2b8438df56ef9eef80dba3ae05478a069.tar.gz
llvm-bb15fec2b8438df56ef9eef80dba3ae05478a069.tar.bz2
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.
llvm-svn: 146193
Diffstat (limited to 'llvm/lib/Target/TargetLibraryInfo.cpp')
-rw-r--r--llvm/lib/Target/TargetLibraryInfo.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/llvm/lib/Target/TargetLibraryInfo.cpp b/llvm/lib/Target/TargetLibraryInfo.cpp
index 5805cd4..768facb 100644
--- a/llvm/lib/Target/TargetLibraryInfo.cpp
+++ b/llvm/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