зеркало из https://github.com/microsoft/clang-1.git
Add support for the builtins used in gcc 4.4's <cmath> and <complex>
headers in C++0x mode. Fixes PR9138. Patch by John Bytheway! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125492 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
b8b07b1710
Коммит
840c083f79
|
@ -139,6 +139,12 @@ BUILTIN(__builtin_asinhl, "LdLd", "Fnc")
|
|||
BUILTIN(__builtin_atan , "dd" , "Fnc")
|
||||
BUILTIN(__builtin_atanf, "ff" , "Fnc")
|
||||
BUILTIN(__builtin_atanl, "LdLd", "Fnc")
|
||||
BUILTIN(__builtin_atanh , "dd", "Fnc")
|
||||
BUILTIN(__builtin_atanhf, "ff", "Fnc")
|
||||
BUILTIN(__builtin_atanhl, "LdLd", "Fnc")
|
||||
BUILTIN(__builtin_cbrt , "dd", "Fnc")
|
||||
BUILTIN(__builtin_cbrtf, "ff", "Fnc")
|
||||
BUILTIN(__builtin_cbrtl, "LdLd", "Fnc")
|
||||
BUILTIN(__builtin_ceil , "dd" , "Fnc")
|
||||
BUILTIN(__builtin_ceilf, "ff" , "Fnc")
|
||||
BUILTIN(__builtin_ceill, "LdLd", "Fnc")
|
||||
|
@ -148,9 +154,21 @@ BUILTIN(__builtin_cosh , "dd" , "Fnc")
|
|||
BUILTIN(__builtin_coshf, "ff" , "Fnc")
|
||||
BUILTIN(__builtin_coshl, "LdLd", "Fnc")
|
||||
BUILTIN(__builtin_cosl, "LdLd", "Fnc")
|
||||
BUILTIN(__builtin_erf , "dd", "Fnc")
|
||||
BUILTIN(__builtin_erff, "ff", "Fnc")
|
||||
BUILTIN(__builtin_erfl, "LdLd", "Fnc")
|
||||
BUILTIN(__builtin_erfc , "dd", "Fnc")
|
||||
BUILTIN(__builtin_erfcf, "ff", "Fnc")
|
||||
BUILTIN(__builtin_erfcl, "LdLd", "Fnc")
|
||||
BUILTIN(__builtin_exp , "dd" , "Fnc")
|
||||
BUILTIN(__builtin_expf, "ff" , "Fnc")
|
||||
BUILTIN(__builtin_expl, "LdLd", "Fnc")
|
||||
BUILTIN(__builtin_exp2 , "dd" , "Fnc")
|
||||
BUILTIN(__builtin_exp2f, "ff" , "Fnc")
|
||||
BUILTIN(__builtin_exp2l, "LdLd", "Fnc")
|
||||
BUILTIN(__builtin_expm1 , "dd", "Fnc")
|
||||
BUILTIN(__builtin_expm1f, "ff", "Fnc")
|
||||
BUILTIN(__builtin_expm1l, "LdLd", "Fnc")
|
||||
BUILTIN(__builtin_fdim, "ddd", "Fnc")
|
||||
BUILTIN(__builtin_fdimf, "fff", "Fnc")
|
||||
BUILTIN(__builtin_fdiml, "LdLdLd", "Fnc")
|
||||
|
@ -169,18 +187,66 @@ BUILTIN(__builtin_fminl, "LdLdLd", "Fnc")
|
|||
BUILTIN(__builtin_hypot , "ddd" , "Fnc")
|
||||
BUILTIN(__builtin_hypotf, "fff" , "Fnc")
|
||||
BUILTIN(__builtin_hypotl, "LdLdLd", "Fnc")
|
||||
BUILTIN(__builtin_ilogb , "id", "Fnc")
|
||||
BUILTIN(__builtin_ilogbf, "if", "Fnc")
|
||||
BUILTIN(__builtin_ilogbl, "iLd", "Fnc")
|
||||
BUILTIN(__builtin_lgamma , "dd", "Fnc")
|
||||
BUILTIN(__builtin_lgammaf, "ff", "Fnc")
|
||||
BUILTIN(__builtin_lgammal, "LdLd", "Fnc")
|
||||
BUILTIN(__builtin_llrint, "LLid", "Fnc")
|
||||
BUILTIN(__builtin_llrintf, "LLif", "Fnc")
|
||||
BUILTIN(__builtin_llrintl, "LLiLd", "Fnc")
|
||||
BUILTIN(__builtin_llround , "LLid", "Fnc")
|
||||
BUILTIN(__builtin_llroundf, "LLif", "Fnc")
|
||||
BUILTIN(__builtin_llroundl, "LLiLd", "Fnc")
|
||||
BUILTIN(__builtin_log , "dd" , "Fnc")
|
||||
BUILTIN(__builtin_log10 , "dd" , "Fnc")
|
||||
BUILTIN(__builtin_log10f, "ff" , "Fnc")
|
||||
BUILTIN(__builtin_log10l, "LdLd", "Fnc")
|
||||
BUILTIN(__builtin_log1p , "dd" , "Fnc")
|
||||
BUILTIN(__builtin_log1pf, "ff" , "Fnc")
|
||||
BUILTIN(__builtin_log1pl, "LdLd", "Fnc")
|
||||
BUILTIN(__builtin_log2, "dd" , "Fnc")
|
||||
BUILTIN(__builtin_log2f, "ff" , "Fnc")
|
||||
BUILTIN(__builtin_log2l, "LdLd" , "Fnc")
|
||||
BUILTIN(__builtin_logb , "dd", "Fnc")
|
||||
BUILTIN(__builtin_logbf, "ff", "Fnc")
|
||||
BUILTIN(__builtin_logbl, "LdLd", "Fnc")
|
||||
BUILTIN(__builtin_logf, "ff" , "Fnc")
|
||||
BUILTIN(__builtin_logl, "LdLd", "Fnc")
|
||||
BUILTIN(__builtin_lrint , "Lid", "Fnc")
|
||||
BUILTIN(__builtin_lrintf, "Lif", "Fnc")
|
||||
BUILTIN(__builtin_lrintl, "LiLd", "Fnc")
|
||||
BUILTIN(__builtin_lround , "Lid", "Fnc")
|
||||
BUILTIN(__builtin_lroundf, "Lif", "Fnc")
|
||||
BUILTIN(__builtin_lroundl, "LiLd", "Fnc")
|
||||
BUILTIN(__builtin_nearbyint , "dd", "Fnc")
|
||||
BUILTIN(__builtin_nearbyintf, "ff", "Fnc")
|
||||
BUILTIN(__builtin_nearbyintl, "LdLd", "Fnc")
|
||||
BUILTIN(__builtin_nextafter , "ddd", "Fnc")
|
||||
BUILTIN(__builtin_nextafterf, "fff", "Fnc")
|
||||
BUILTIN(__builtin_nextafterl, "LdLdLd", "Fnc")
|
||||
BUILTIN(__builtin_nexttoward , "ddd", "Fnc")
|
||||
BUILTIN(__builtin_nexttowardf, "fff", "Fnc")
|
||||
BUILTIN(__builtin_nexttowardl, "LdLdLd", "Fnc")
|
||||
BUILTIN(__builtin_remainder , "ddd", "Fnc")
|
||||
BUILTIN(__builtin_remainderf, "fff", "Fnc")
|
||||
BUILTIN(__builtin_remainderl, "LdLdLd", "Fnc")
|
||||
BUILTIN(__builtin_remquo , "dddi*", "Fnc")
|
||||
BUILTIN(__builtin_remquof, "fffi*", "Fnc")
|
||||
BUILTIN(__builtin_remquol, "LdLdLdi*", "Fnc")
|
||||
BUILTIN(__builtin_rint , "dd", "Fnc")
|
||||
BUILTIN(__builtin_rintf, "ff", "Fnc")
|
||||
BUILTIN(__builtin_rintl, "LdLd", "Fnc")
|
||||
BUILTIN(__builtin_round, "dd" , "Fnc")
|
||||
BUILTIN(__builtin_roundf, "ff" , "Fnc")
|
||||
BUILTIN(__builtin_roundl, "LdLd" , "Fnc")
|
||||
BUILTIN(__builtin_scalbln , "ddLi", "Fnc")
|
||||
BUILTIN(__builtin_scalblnf, "ffLi", "Fnc")
|
||||
BUILTIN(__builtin_scalblnl, "LdLdLi", "Fnc")
|
||||
BUILTIN(__builtin_scalbn , "ddi", "Fnc")
|
||||
BUILTIN(__builtin_scalbnf, "ffi", "Fnc")
|
||||
BUILTIN(__builtin_scalbnl, "LdLdi", "Fnc")
|
||||
BUILTIN(__builtin_sin , "dd" , "Fnc")
|
||||
BUILTIN(__builtin_sinf, "ff" , "Fnc")
|
||||
BUILTIN(__builtin_sinh , "dd" , "Fnc")
|
||||
|
@ -196,6 +262,12 @@ BUILTIN(__builtin_tanh , "dd" , "Fnc")
|
|||
BUILTIN(__builtin_tanhf, "ff" , "Fnc")
|
||||
BUILTIN(__builtin_tanhl, "LdLd", "Fnc")
|
||||
BUILTIN(__builtin_tanl, "LdLd", "Fnc")
|
||||
BUILTIN(__builtin_tgamma , "dd", "Fnc")
|
||||
BUILTIN(__builtin_tgammaf, "ff", "Fnc")
|
||||
BUILTIN(__builtin_tgammal, "LdLd", "Fnc")
|
||||
BUILTIN(__builtin_trunc , "dd", "Fnc")
|
||||
BUILTIN(__builtin_truncf, "ff", "Fnc")
|
||||
BUILTIN(__builtin_truncl, "LdLd", "Fnc")
|
||||
|
||||
// C99 complex builtins
|
||||
BUILTIN(__builtin_cabs, "dXd", "Fnc")
|
||||
|
@ -203,15 +275,24 @@ BUILTIN(__builtin_cabsf, "fXf", "Fnc")
|
|||
BUILTIN(__builtin_cabsl, "LdXLd", "Fnc")
|
||||
BUILTIN(__builtin_cacos, "XdXd", "Fnc")
|
||||
BUILTIN(__builtin_cacosf, "XfXf", "Fnc")
|
||||
BUILTIN(__builtin_cacosh, "XdXd", "Fnc")
|
||||
BUILTIN(__builtin_cacoshf, "XfXf", "Fnc")
|
||||
BUILTIN(__builtin_cacoshl, "XLdXLd", "Fnc")
|
||||
BUILTIN(__builtin_cacosl, "XLdXLd", "Fnc")
|
||||
BUILTIN(__builtin_carg, "dXd", "Fnc")
|
||||
BUILTIN(__builtin_cargf, "fXf", "Fnc")
|
||||
BUILTIN(__builtin_cargl, "LdXLd", "Fnc")
|
||||
BUILTIN(__builtin_casin, "XdXd", "Fnc")
|
||||
BUILTIN(__builtin_casinf, "XfXf", "Fnc")
|
||||
BUILTIN(__builtin_casinh, "XdXd", "Fnc")
|
||||
BUILTIN(__builtin_casinhf, "XfXf", "Fnc")
|
||||
BUILTIN(__builtin_casinhl, "XLdXLd", "Fnc")
|
||||
BUILTIN(__builtin_casinl, "XLdXLd", "Fnc")
|
||||
BUILTIN(__builtin_catan, "XdXd", "Fnc")
|
||||
BUILTIN(__builtin_catanf, "XfXf", "Fnc")
|
||||
BUILTIN(__builtin_catanh, "XdXd", "Fnc")
|
||||
BUILTIN(__builtin_catanhf, "XfXf", "Fnc")
|
||||
BUILTIN(__builtin_catanhl, "XLdXLd", "Fnc")
|
||||
BUILTIN(__builtin_catanl, "XLdXLd", "Fnc")
|
||||
BUILTIN(__builtin_ccos, "XdXd", "Fnc")
|
||||
BUILTIN(__builtin_ccosf, "XfXf", "Fnc")
|
||||
|
|
Загрузка…
Ссылка в новой задаче