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
This commit is contained in:
Owen Anderson
2011-12-08 22:15:21 +00:00
parent 6b044c2609
commit 243eb9ecbb
6 changed files with 82 additions and 16 deletions

View File

@ -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