Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
14 | pmbaty | 1 | //===-- ScalarFuncs.def - Library information ----------*- C++ -*----------===// |
2 | // |
||
3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
||
4 | // See https://llvm.org/LICENSE.txt for license information. |
||
5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
||
6 | // |
||
7 | //===----------------------------------------------------------------------===// |
||
8 | |||
9 | // This .def file creates mapping from standard IEEE math functions |
||
10 | // their corresponding entries in the IBM MASS (scalar) library. |
||
11 | // LLVM intrinsic math functions will be handled in PPCISelLowing to |
||
12 | // allow existing optimizations like pow(x,0.5) --> sqrt(x). |
||
13 | |||
14 | #if defined(TLI_DEFINE_SCALAR_MASS_FUNCS) |
||
15 | #define TLI_DEFINE_SCALAR_MASS_FUNC(SCAL, MASSENTRY) {SCAL, MASSENTRY}, |
||
16 | #endif |
||
17 | |||
18 | TLI_DEFINE_SCALAR_MASS_FUNC("acosf", "__xl_acosf") |
||
19 | TLI_DEFINE_SCALAR_MASS_FUNC("__acosf_finite", "__xl_acosf") |
||
20 | TLI_DEFINE_SCALAR_MASS_FUNC("acos", "__xl_acos") |
||
21 | TLI_DEFINE_SCALAR_MASS_FUNC("__acos_finite", "__xl_acos") |
||
22 | |||
23 | TLI_DEFINE_SCALAR_MASS_FUNC("acoshf", "__xl_acoshf") |
||
24 | TLI_DEFINE_SCALAR_MASS_FUNC("__acoshf_finite", "__xl_acoshf") |
||
25 | TLI_DEFINE_SCALAR_MASS_FUNC("acosh", "__xl_acosh") |
||
26 | TLI_DEFINE_SCALAR_MASS_FUNC("__acosh_finite", "__xl_acosh") |
||
27 | |||
28 | TLI_DEFINE_SCALAR_MASS_FUNC("asinf", "__xl_asinf") |
||
29 | TLI_DEFINE_SCALAR_MASS_FUNC("__asinf_finite", "__xl_asinf") |
||
30 | TLI_DEFINE_SCALAR_MASS_FUNC("asin", "__xl_asin") |
||
31 | TLI_DEFINE_SCALAR_MASS_FUNC("__asin_finite", "__xl_asin") |
||
32 | |||
33 | TLI_DEFINE_SCALAR_MASS_FUNC("asinhf", "__xl_asinhf") |
||
34 | TLI_DEFINE_SCALAR_MASS_FUNC("asinh", "__xl_asinh") |
||
35 | |||
36 | TLI_DEFINE_SCALAR_MASS_FUNC("atanf", "__xl_atanf") |
||
37 | TLI_DEFINE_SCALAR_MASS_FUNC("atan", "__xl_atan") |
||
38 | |||
39 | TLI_DEFINE_SCALAR_MASS_FUNC("atan2f", "__xl_atan2f") |
||
40 | TLI_DEFINE_SCALAR_MASS_FUNC("__atan2f_finite", "__xl_atan2f") |
||
41 | TLI_DEFINE_SCALAR_MASS_FUNC("atan2", "__xl_atan2") |
||
42 | TLI_DEFINE_SCALAR_MASS_FUNC("__atan2_finite", "__xl_atan2") |
||
43 | |||
44 | TLI_DEFINE_SCALAR_MASS_FUNC("atanhf", "__xl_atanhf") |
||
45 | TLI_DEFINE_SCALAR_MASS_FUNC("__atanhf_finite", "__xl_atanhf") |
||
46 | TLI_DEFINE_SCALAR_MASS_FUNC("atanh", "__xl_atanh") |
||
47 | TLI_DEFINE_SCALAR_MASS_FUNC("__atanh_finite", "__xl_atanh") |
||
48 | |||
49 | TLI_DEFINE_SCALAR_MASS_FUNC("cbrtf", "__xl_cbrtf") |
||
50 | TLI_DEFINE_SCALAR_MASS_FUNC("cbrt", "__xl_cbrt") |
||
51 | |||
52 | TLI_DEFINE_SCALAR_MASS_FUNC("cosf", "__xl_cosf") |
||
53 | TLI_DEFINE_SCALAR_MASS_FUNC("cos", "__xl_cos") |
||
54 | |||
55 | TLI_DEFINE_SCALAR_MASS_FUNC("coshf", "__xl_coshf") |
||
56 | TLI_DEFINE_SCALAR_MASS_FUNC("__coshf_finite", "__xl_coshf") |
||
57 | TLI_DEFINE_SCALAR_MASS_FUNC("cosh", "__xl_cosh") |
||
58 | TLI_DEFINE_SCALAR_MASS_FUNC("__cosh_finite", "__xl_cosh") |
||
59 | |||
60 | TLI_DEFINE_SCALAR_MASS_FUNC("erff", "__xl_erff") |
||
61 | TLI_DEFINE_SCALAR_MASS_FUNC("erf", "__xl_erf") |
||
62 | |||
63 | TLI_DEFINE_SCALAR_MASS_FUNC("erfcf", "__xl_erfcf") |
||
64 | TLI_DEFINE_SCALAR_MASS_FUNC("erfc", "__xl_erfc") |
||
65 | |||
66 | TLI_DEFINE_SCALAR_MASS_FUNC("expf", "__xl_expf") |
||
67 | TLI_DEFINE_SCALAR_MASS_FUNC("__expf_finite", "__xl_expf") |
||
68 | TLI_DEFINE_SCALAR_MASS_FUNC("exp", "__xl_exp") |
||
69 | TLI_DEFINE_SCALAR_MASS_FUNC("__exp_finite", "__xl_exp") |
||
70 | |||
71 | TLI_DEFINE_SCALAR_MASS_FUNC("expm1f", "__xl_expm1f") |
||
72 | TLI_DEFINE_SCALAR_MASS_FUNC("expm1", "__xl_expm1") |
||
73 | |||
74 | TLI_DEFINE_SCALAR_MASS_FUNC("hypotf", "__xl_hypotf") |
||
75 | TLI_DEFINE_SCALAR_MASS_FUNC("hypot", "__xl_hypot") |
||
76 | |||
77 | TLI_DEFINE_SCALAR_MASS_FUNC("lgammaf", "__xl_lgammaf") |
||
78 | TLI_DEFINE_SCALAR_MASS_FUNC("lgamma", "__xl_lgamma") |
||
79 | |||
80 | TLI_DEFINE_SCALAR_MASS_FUNC("logf", "__xl_logf") |
||
81 | TLI_DEFINE_SCALAR_MASS_FUNC("__logf_finite", "__xl_logf") |
||
82 | TLI_DEFINE_SCALAR_MASS_FUNC("log", "__xl_log") |
||
83 | TLI_DEFINE_SCALAR_MASS_FUNC("__log_finite", "__xl_log") |
||
84 | |||
85 | TLI_DEFINE_SCALAR_MASS_FUNC("log10f", "__xl_log10f") |
||
86 | TLI_DEFINE_SCALAR_MASS_FUNC("__log10f_finite", "__xl_log10f") |
||
87 | TLI_DEFINE_SCALAR_MASS_FUNC("log10", "__xl_log10") |
||
88 | TLI_DEFINE_SCALAR_MASS_FUNC("__log10_finite", "__xl_log10") |
||
89 | |||
90 | TLI_DEFINE_SCALAR_MASS_FUNC("log1pf", "__xl_log1pf") |
||
91 | TLI_DEFINE_SCALAR_MASS_FUNC("log1p", "__xl_log1p") |
||
92 | |||
93 | TLI_DEFINE_SCALAR_MASS_FUNC("powf", "__xl_powf") |
||
94 | TLI_DEFINE_SCALAR_MASS_FUNC("__powf_finite", "__xl_powf") |
||
95 | TLI_DEFINE_SCALAR_MASS_FUNC("pow", "__xl_pow") |
||
96 | TLI_DEFINE_SCALAR_MASS_FUNC("__pow_finite", "__xl_pow") |
||
97 | |||
98 | TLI_DEFINE_SCALAR_MASS_FUNC("rsqrt", "__xl_rsqrt") |
||
99 | |||
100 | TLI_DEFINE_SCALAR_MASS_FUNC("sinf", "__xl_sinf") |
||
101 | TLI_DEFINE_SCALAR_MASS_FUNC("sin", "__xl_sin") |
||
102 | |||
103 | TLI_DEFINE_SCALAR_MASS_FUNC("sinhf", "__xl_sinhf") |
||
104 | TLI_DEFINE_SCALAR_MASS_FUNC("__sinhf_finite", "__xl_sinhf") |
||
105 | TLI_DEFINE_SCALAR_MASS_FUNC("sinh", "__xl_sinh") |
||
106 | TLI_DEFINE_SCALAR_MASS_FUNC("__sinh_finite", "__xl_sinh") |
||
107 | |||
108 | TLI_DEFINE_SCALAR_MASS_FUNC("sqrt", "__xl_sqrt") |
||
109 | |||
110 | TLI_DEFINE_SCALAR_MASS_FUNC("tanf", "__xl_tanf") |
||
111 | TLI_DEFINE_SCALAR_MASS_FUNC("tan", "__xl_tan") |
||
112 | |||
113 | TLI_DEFINE_SCALAR_MASS_FUNC("tanhf", "__xl_tanhf") |
||
114 | TLI_DEFINE_SCALAR_MASS_FUNC("tanh", "__xl_tanh") |
||
115 | |||
116 | #undef TLI_DEFINE_SCALAR_MASS_FUNCS |
||
117 | #undef TLI_DEFINE_SCALAR_MASS_FUNC |