From 243eb9ecbbc6775e346e94025bd255bbceac9fca Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Thu, 8 Dec 2011 22:15:21 +0000 Subject: 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 --- lib/Target/TargetLibraryInfo.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'lib/Target/TargetLibraryInfo.cpp') 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 -- cgit v1.2.3