File tree Expand file tree Collapse file tree 2 files changed +10
-64
lines changed
utils/bazel/llvm-project-overlay/libc Expand file tree Collapse file tree 2 files changed +10
-64
lines changed Original file line number Diff line number Diff line change @@ -1825,26 +1825,11 @@ libc_math_function(
1825
1825
],
1826
1826
)
1827
1827
1828
- libc_math_function (
1829
- name = "ceil" ,
1830
- specializations = [
1831
- "generic" ,
1832
- ],
1833
- )
1828
+ libc_math_function (name = "ceil" )
1834
1829
1835
- libc_math_function (
1836
- name = "ceilf" ,
1837
- specializations = [
1838
- "generic" ,
1839
- ],
1840
- )
1830
+ libc_math_function (name = "ceilf" )
1841
1831
1842
- libc_math_function (
1843
- name = "ceill" ,
1844
- specializations = [
1845
- "generic" ,
1846
- ],
1847
- )
1832
+ libc_math_function (name = "ceill" )
1848
1833
1849
1834
libc_math_function (name = "ceilf128" )
1850
1835
@@ -2126,19 +2111,9 @@ libc_math_function(
2126
2111
],
2127
2112
)
2128
2113
2129
- libc_math_function (
2130
- name = "floor" ,
2131
- specializations = [
2132
- "generic" ,
2133
- ],
2134
- )
2114
+ libc_math_function (name = "floor" )
2135
2115
2136
- libc_math_function (
2137
- name = "floorf" ,
2138
- specializations = [
2139
- "generic" ,
2140
- ],
2141
- )
2116
+ libc_math_function (name = "floorf" )
2142
2117
2143
2118
libc_math_function (name = "floorl" )
2144
2119
@@ -2639,19 +2614,9 @@ libc_math_function(name = "rintl")
2639
2614
2640
2615
libc_math_function (name = "rintf128" )
2641
2616
2642
- libc_math_function (
2643
- name = "round" ,
2644
- specializations = [
2645
- "generic" ,
2646
- ],
2647
- )
2617
+ libc_math_function (name = "round" )
2648
2618
2649
- libc_math_function (
2650
- name = "roundf" ,
2651
- specializations = [
2652
- "generic" ,
2653
- ],
2654
- )
2619
+ libc_math_function (name = "roundf" )
2655
2620
2656
2621
libc_math_function (name = "roundl" )
2657
2622
@@ -2850,19 +2815,9 @@ libc_math_function(name = "totalordermagl")
2850
2815
2851
2816
libc_math_function (name = "totalordermagf128" )
2852
2817
2853
- libc_math_function (
2854
- name = "trunc" ,
2855
- specializations = [
2856
- "generic" ,
2857
- ],
2858
- )
2818
+ libc_math_function (name = "trunc" )
2859
2819
2860
- libc_math_function (
2861
- name = "truncf" ,
2862
- specializations = [
2863
- "generic" ,
2864
- ],
2865
- )
2820
+ libc_math_function (name = "truncf" )
2866
2821
2867
2822
libc_math_function (name = "truncl" )
2868
2823
Original file line number Diff line number Diff line change @@ -129,7 +129,6 @@ def libc_function(
129
129
130
130
def libc_math_function (
131
131
name ,
132
- specializations = None ,
133
132
additional_deps = None ):
134
133
"""Add a target for a math function.
135
134
@@ -142,14 +141,6 @@ def libc_math_function(
142
141
math function.
143
142
"""
144
143
additional_deps = additional_deps or []
145
- specializations = specializations or ["generic" ]
146
- select_map = {}
147
- if "generic" in specializations :
148
- select_map ["//conditions:default" ] = ["src/math/generic/" + name + ".cpp" ]
149
- if "aarch64" in specializations :
150
- select_map [PLATFORM_CPU_ARM64 ] = ["src/math/aarch64/" + name + ".cpp" ]
151
- if "x86_64" in specializations :
152
- select_map [PLATFORM_CPU_X86_64 ] = ["src/math/x86_64/" + name + ".cpp" ]
153
144
154
145
#TODO(michaelrj): Fix the floating point dependencies
155
146
OLD_FPUTIL_DEPS = [
@@ -166,7 +157,7 @@ def libc_math_function(
166
157
]
167
158
libc_function (
168
159
name = name ,
169
- srcs = selects . with_or ( select_map ) ,
160
+ srcs = [ "src/math/generic/" + name + ".cpp" ] ,
170
161
hdrs = ["src/math/" + name + ".h" ],
171
162
deps = [":__support_common" ] + OLD_FPUTIL_DEPS + additional_deps ,
172
163
)
You can’t perform that action at this time.
0 commit comments