88 "xnnpack_cc_library" ,
99 "xnnpack_select_if" ,
1010)
11+ load (
12+ "//:build_srcs.bzl" ,
13+ "MICROKERNEL_CONFIG_SRCS" ,
14+ )
1115
1216package (default_visibility = ["//:__subpackages__" ])
1317
@@ -48,186 +52,6 @@ xnnpack_cc_library(
4852 ],
4953)
5054
51- xnnpack_cc_library (
52- name = "dwconv2d_chw_config" ,
53- srcs = ["dwconv2d-chw-config.c" ],
54- deps = [
55- ":config_hdrs" ,
56- "//:common" ,
57- "//:init_once" ,
58- "//:microfnptr_h" ,
59- "//:microkernel_hdrs" ,
60- "//:microparams_init" ,
61- ],
62- )
63-
64- xnnpack_cc_library (
65- name = "unary_elementwise_config" ,
66- srcs = ["unary-elementwise-config.c" ],
67- deps = [
68- ":config_hdrs" ,
69- ":hardware_config" ,
70- "//:common" ,
71- "//:init_once" ,
72- "//:microfnptr_h" ,
73- "//:microkernel_hdrs" ,
74- "//:microparams_init" ,
75- "//:xnnpack_h" ,
76- ],
77- )
78-
79- xnnpack_cc_library (
80- name = "unpool_config" ,
81- srcs = ["unpool-config.c" ],
82- deps = [
83- ":config_hdrs" ,
84- "//:common" ,
85- "//:init_once" ,
86- "//:microfnptr_h" ,
87- "//:microkernel_hdrs" ,
88- ],
89- )
90-
91- xnnpack_cc_library (
92- name = "avgpool_config" ,
93- srcs = ["avgpool-config.c" ],
94- deps = [
95- ":config_hdrs" ,
96- "//:common" ,
97- "//:init_once" ,
98- "//:microfnptr_h" ,
99- "//:microkernel_hdrs" ,
100- "//:microparams_init" ,
101- ],
102- )
103-
104- xnnpack_cc_library (
105- name = "x8_lut_config" ,
106- srcs = ["x8-lut-config.c" ],
107- deps = [
108- ":config_hdrs" ,
109- "//:common" ,
110- "//:init_once" ,
111- "//:microkernel_hdrs" ,
112- ],
113- )
114-
115- xnnpack_cc_library (
116- name = "conv_hwc2chw_config" ,
117- srcs = ["conv-hwc2chw-config.c" ],
118- deps = [
119- ":config_hdrs" ,
120- "//:common" ,
121- "//:init_once" ,
122- "//:microfnptr_h" ,
123- "//:microkernel_hdrs" ,
124- "//:microparams_init" ,
125- ],
126- )
127-
128- xnnpack_cc_library (
129- name = "binary_elementwise_config" ,
130- srcs = ["binary-elementwise-config.c" ],
131- deps = [
132- ":config_hdrs" ,
133- "//:common" ,
134- "//:init_once" ,
135- "//:microfnptr_h" ,
136- "//:microkernel_hdrs" ,
137- "//:microparams_init" ,
138- ],
139- )
140-
141- xnnpack_cc_library (
142- name = "maxpool_config" ,
143- srcs = ["maxpool-config.c" ],
144- deps = [
145- ":config_hdrs" ,
146- "//:common" ,
147- "//:init_once" ,
148- "//:microfnptr_h" ,
149- "//:microkernel_hdrs" ,
150- "//:microparams_init" ,
151- ],
152- )
153-
154- xnnpack_cc_library (
155- name = "argmaxpool_config" ,
156- srcs = ["argmaxpool-config.c" ],
157- deps = [
158- ":config_hdrs" ,
159- "//:common" ,
160- "//:init_once" ,
161- "//:microfnptr_h" ,
162- "//:microkernel_hdrs" ,
163- ],
164- )
165-
166- xnnpack_cc_library (
167- name = "vmulcaddc_config" ,
168- srcs = ["vmulcaddc-config.c" ],
169- deps = [
170- ":config_hdrs" ,
171- "//:common" ,
172- "//:init_once" ,
173- "//:microfnptr_h" ,
174- "//:microkernel_hdrs" ,
175- "//:microparams_init" ,
176- ],
177- )
178-
179- xnnpack_cc_library (
180- name = "transpose_config" ,
181- srcs = ["transpose-config.c" ],
182- deps = [
183- ":config_hdrs" ,
184- "//:common" ,
185- "//:init_once" ,
186- "//:microfnptr_h" ,
187- "//:microkernel_hdrs" ,
188- "//:microparams_init" ,
189- ],
190- )
191-
192- xnnpack_cc_library (
193- name = "spmm_config" ,
194- srcs = ["spmm-config.c" ],
195- deps = [
196- ":config_hdrs" ,
197- "//:common" ,
198- "//:init_once" ,
199- "//:microfnptr_h" ,
200- "//:microkernel_hdrs" ,
201- "//:microparams_init" ,
202- ],
203- )
204-
205- xnnpack_cc_library (
206- name = "ibilinear_config" ,
207- srcs = ["ibilinear-config.c" ],
208- deps = [
209- ":config_hdrs" ,
210- "//:common" ,
211- "//:indirection" ,
212- "//:init_once" ,
213- "//:microfnptr_h" ,
214- "//:microkernel_hdrs" ,
215- ],
216- )
217-
218- xnnpack_cc_library (
219- name = "ibilinear_chw_config" ,
220- srcs = ["ibilinear-chw-config.c" ],
221- deps = [
222- ":config_hdrs" ,
223- "//:common" ,
224- "//:indirection" ,
225- "//:init_once" ,
226- "//:microfnptr_h" ,
227- "//:microkernel_hdrs" ,
228- ],
229- )
230-
23155xnnpack_cc_library (
23256 name = "hardware_config" ,
23357 srcs = ["hardware-config.c" ],
@@ -243,160 +67,26 @@ xnnpack_cc_library(
24367)
24468
24569xnnpack_cc_library (
246- name = "reduce_config" ,
247- srcs = ["reduce-config.c" ],
248- deps = [
249- ":config_hdrs" ,
250- ":hardware_config" ,
251- "//:common" ,
252- "//:init_once" ,
253- "//:microfnptr_h" ,
254- "//:microkernel_hdrs" ,
255- "//:microparams_init" ,
70+ name = "microkernel_configs" ,
71+ srcs = MICROKERNEL_CONFIG_SRCS ,
72+ hdrs = [
73+ "//:src/xnnpack/config.h" ,
25674 ],
257- )
258-
259- xnnpack_cc_library (
260- name = "dwconv_config" ,
261- srcs = ["dwconv-config.c" ],
262- deps = [
263- ":config_hdrs" ,
264- "//:common" ,
265- "//:init_once" ,
266- "//:microfnptr_h" ,
267- "//:microkernel_hdrs" ,
268- "//:microparams_init" ,
269- ] + xnnpack_select_if (
270- "//:cpuinfo_enabled" ,
271- ["@cpuinfo" ],
272- ),
273- )
274-
275- xnnpack_cc_library (
276- name = "gemm_config" ,
277- srcs = ["gemm-config.c" ],
27875 deps = [
27976 ":config_hdrs" ,
28077 ":hardware_config" ,
28178 "//:common" ,
79+ "//:indirection" ,
28280 "//:init_once" ,
28381 "//:microfnptr_h" ,
28482 "//:microkernel_hdrs" ,
28583 "//:microparams_init" ,
28684 "//:packing" ,
85+ "//:pack_lh" ,
86+ "//:prod_microkernels" ,
28787 "//:xnnpack_h" ,
28888 ] + xnnpack_select_if (
28989 "//:cpuinfo_enabled" ,
29090 ["@cpuinfo" ],
29191 ),
29292)
293-
294- xnnpack_cc_library (
295- name = "pack_lh_config" ,
296- srcs = ["pack-lh-config.c" ],
297- deps = [
298- ":config_hdrs" ,
299- ":hardware_config" ,
300- "//:common" ,
301- "//:init_once" ,
302- "//:microfnptr_h" ,
303- "//:microkernel_hdrs" ,
304- "//:pack_lh" ,
305- ],
306- )
307-
308- xnnpack_cc_library (
309- name = "cmul_config" ,
310- srcs = ["cmul-config.c" ],
311- deps = [
312- ":config_hdrs" ,
313- "//:common" ,
314- "//:init_once" ,
315- "//:microfnptr_h" ,
316- "//:microkernel_hdrs" ,
317- ],
318- )
319-
320- xnnpack_cc_library (
321- name = "raddstoreexpminusmax_config" ,
322- srcs = ["raddstoreexpminusmax-config.c" ],
323- deps = [
324- ":config_hdrs" ,
325- "//:common" ,
326- "//:init_once" ,
327- "//:microfnptr_h" ,
328- "//:microkernel_hdrs" ,
329- "//:microparams_init" ,
330- ],
331- )
332-
333- xnnpack_cc_library (
334- name = "lut32norm_config" ,
335- srcs = ["lut32norm-config.c" ],
336- deps = [
337- ":config_hdrs" ,
338- "//:common" ,
339- "//:init_once" ,
340- "//:microkernel_hdrs" ,
341- ],
342- )
343-
344- xnnpack_cc_library (
345- name = "xx_pad_config" ,
346- srcs = ["xx-pad-config.c" ],
347- deps = [
348- ":config_hdrs" ,
349- "//:common" ,
350- "//:init_once" ,
351- "//:microfnptr_h" ,
352- "//:microkernel_hdrs" ,
353- ],
354- )
355-
356- xnnpack_cc_library (
357- name = "xx_fill_config" ,
358- srcs = ["xx-fill-config.c" ],
359- deps = [
360- ":config_hdrs" ,
361- "//:common" ,
362- "//:init_once" ,
363- "//:microfnptr_h" ,
364- "//:microkernel_hdrs" ,
365- ],
366- )
367-
368- xnnpack_cc_library (
369- name = "microkernel_configs" ,
370- hdrs = [
371- "//:src/xnnpack/config.h" ,
372- ],
373- deps = [
374- ":argmaxpool_config" ,
375- ":avgpool_config" ,
376- ":binary_elementwise_config" ,
377- ":cmul_config" ,
378- ":config_hdrs" ,
379- ":conv_hwc2chw_config" ,
380- ":dwconv2d_chw_config" ,
381- ":dwconv_config" ,
382- ":gemm_config" ,
383- ":ibilinear_chw_config" ,
384- ":ibilinear_config" ,
385- ":lut32norm_config" ,
386- ":maxpool_config" ,
387- ":pack_lh_config" ,
388- ":raddstoreexpminusmax_config" ,
389- ":reduce_config" ,
390- ":spmm_config" ,
391- ":transpose_config" ,
392- ":unary_elementwise_config" ,
393- ":unpool_config" ,
394- ":vmulcaddc_config" ,
395- ":x8_lut_config" ,
396- ":xx_fill_config" ,
397- ":xx_pad_config" ,
398- "//:common" ,
399- "//:microfnptr_h" ,
400- "//:prod_microkernels" ,
401- ],
402- )
0 commit comments