[cfe-commits] r90736 - in /cfe/trunk: include/clang/Basic/Builtins.def test/CodeGen/exprs.c
Chris Lattner
sabre at nondot.org
Sun Dec 6 18:09:15 PST 2009
Author: lattner
Date: Sun Dec 6 20:09:14 2009
New Revision: 90736
URL: http://llvm.org/viewvc/llvm-project?rev=90736&view=rev
Log:
add 'F' to a bunch of libm builtins so that codegen doesn't die on them,
pointed out by Charles Davis.
Modified:
cfe/trunk/include/clang/Basic/Builtins.def
cfe/trunk/test/CodeGen/exprs.c
Modified: cfe/trunk/include/clang/Basic/Builtins.def
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/Builtins.def?rev=90736&r1=90735&r2=90736&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/Builtins.def (original)
+++ cfe/trunk/include/clang/Basic/Builtins.def Sun Dec 6 20:09:14 2009
@@ -118,51 +118,51 @@
BUILTIN(__builtin_powl, "LdLdLd", "nc")
// Standard unary libc/libm functions with double/float/long double variants:
-BUILTIN(__builtin_acos , "dd" , "nc")
-BUILTIN(__builtin_acosf, "ff" , "nc")
-BUILTIN(__builtin_acosl, "LdLd", "nc")
-BUILTIN(__builtin_asin , "dd" , "nc")
-BUILTIN(__builtin_asinf, "ff" , "nc")
-BUILTIN(__builtin_asinl, "LdLd", "nc")
-BUILTIN(__builtin_atan , "dd" , "nc")
-BUILTIN(__builtin_atanf, "ff" , "nc")
-BUILTIN(__builtin_atanl, "LdLd", "nc")
-BUILTIN(__builtin_ceil , "dd" , "nc")
-BUILTIN(__builtin_ceilf, "ff" , "nc")
-BUILTIN(__builtin_ceill, "LdLd", "nc")
-BUILTIN(__builtin_cos , "dd" , "nc")
-BUILTIN(__builtin_cosf, "ff" , "nc")
-BUILTIN(__builtin_cosh , "dd" , "nc")
-BUILTIN(__builtin_coshf, "ff" , "nc")
-BUILTIN(__builtin_coshl, "LdLd", "nc")
-BUILTIN(__builtin_cosl, "LdLd", "nc")
-BUILTIN(__builtin_exp , "dd" , "nc")
-BUILTIN(__builtin_expf, "ff" , "nc")
-BUILTIN(__builtin_expl, "LdLd", "nc")
-BUILTIN(__builtin_floor , "dd" , "nc")
-BUILTIN(__builtin_floorf, "ff" , "nc")
-BUILTIN(__builtin_floorl, "LdLd", "nc")
-BUILTIN(__builtin_log , "dd" , "nc")
-BUILTIN(__builtin_log10 , "dd" , "nc")
-BUILTIN(__builtin_log10f, "ff" , "nc")
-BUILTIN(__builtin_log10l, "LdLd", "nc")
-BUILTIN(__builtin_logf, "ff" , "nc")
-BUILTIN(__builtin_logl, "LdLd", "nc")
-BUILTIN(__builtin_sin , "dd" , "nc")
-BUILTIN(__builtin_sinf, "ff" , "nc")
-BUILTIN(__builtin_sinh , "dd" , "nc")
-BUILTIN(__builtin_sinhf, "ff" , "nc")
-BUILTIN(__builtin_sinhl, "LdLd", "nc")
-BUILTIN(__builtin_sinl, "LdLd", "nc")
-BUILTIN(__builtin_sqrt , "dd" , "nc")
-BUILTIN(__builtin_sqrtf, "ff" , "nc")
-BUILTIN(__builtin_sqrtl, "LdLd", "nc")
-BUILTIN(__builtin_tan , "dd" , "nc")
-BUILTIN(__builtin_tanf, "ff" , "nc")
-BUILTIN(__builtin_tanh , "dd" , "nc")
-BUILTIN(__builtin_tanhf, "ff" , "nc")
-BUILTIN(__builtin_tanhl, "LdLd", "nc")
-BUILTIN(__builtin_tanl, "LdLd", "nc")
+BUILTIN(__builtin_acos , "dd" , "Fnc")
+BUILTIN(__builtin_acosf, "ff" , "Fnc")
+BUILTIN(__builtin_acosl, "LdLd", "Fnc")
+BUILTIN(__builtin_asin , "dd" , "Fnc")
+BUILTIN(__builtin_asinf, "ff" , "Fnc")
+BUILTIN(__builtin_asinl, "LdLd", "Fnc")
+BUILTIN(__builtin_atan , "dd" , "Fnc")
+BUILTIN(__builtin_atanf, "ff" , "Fnc")
+BUILTIN(__builtin_atanl, "LdLd", "Fnc")
+BUILTIN(__builtin_ceil , "dd" , "Fnc")
+BUILTIN(__builtin_ceilf, "ff" , "Fnc")
+BUILTIN(__builtin_ceill, "LdLd", "Fnc")
+BUILTIN(__builtin_cos , "dd" , "Fnc")
+BUILTIN(__builtin_cosf, "ff" , "Fnc")
+BUILTIN(__builtin_cosh , "dd" , "Fnc")
+BUILTIN(__builtin_coshf, "ff" , "Fnc")
+BUILTIN(__builtin_coshl, "LdLd", "Fnc")
+BUILTIN(__builtin_cosl, "LdLd", "Fnc")
+BUILTIN(__builtin_exp , "dd" , "Fnc")
+BUILTIN(__builtin_expf, "ff" , "Fnc")
+BUILTIN(__builtin_expl, "LdLd", "Fnc")
+BUILTIN(__builtin_floor , "dd" , "Fnc")
+BUILTIN(__builtin_floorf, "ff" , "Fnc")
+BUILTIN(__builtin_floorl, "LdLd", "Fnc")
+BUILTIN(__builtin_log , "dd" , "Fnc")
+BUILTIN(__builtin_log10 , "dd" , "Fnc")
+BUILTIN(__builtin_log10f, "ff" , "Fnc")
+BUILTIN(__builtin_log10l, "LdLd", "Fnc")
+BUILTIN(__builtin_logf, "ff" , "Fnc")
+BUILTIN(__builtin_logl, "LdLd", "Fnc")
+BUILTIN(__builtin_sin , "dd" , "Fnc")
+BUILTIN(__builtin_sinf, "ff" , "Fnc")
+BUILTIN(__builtin_sinh , "dd" , "Fnc")
+BUILTIN(__builtin_sinhf, "ff" , "Fnc")
+BUILTIN(__builtin_sinhl, "LdLd", "Fnc")
+BUILTIN(__builtin_sinl, "LdLd", "Fnc")
+BUILTIN(__builtin_sqrt , "dd" , "Fnc")
+BUILTIN(__builtin_sqrtf, "ff" , "Fnc")
+BUILTIN(__builtin_sqrtl, "LdLd", "Fnc")
+BUILTIN(__builtin_tan , "dd" , "Fnc")
+BUILTIN(__builtin_tanf, "ff" , "Fnc")
+BUILTIN(__builtin_tanh , "dd" , "Fnc")
+BUILTIN(__builtin_tanhf, "ff" , "Fnc")
+BUILTIN(__builtin_tanhl, "LdLd", "Fnc")
+BUILTIN(__builtin_tanl, "LdLd", "Fnc")
// C99 complex builtins
BUILTIN(__builtin_cabs, "dXd", "Fnc")
Modified: cfe/trunk/test/CodeGen/exprs.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/exprs.c?rev=90736&r1=90735&r2=90736&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/exprs.c (original)
+++ cfe/trunk/test/CodeGen/exprs.c Sun Dec 6 20:09:14 2009
@@ -116,3 +116,6 @@
foo(((void)1, x->c).tab[0]);
}
+void f10() {
+ __builtin_sin(0);
+}
More information about the cfe-commits
mailing list