aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarat Dukhan <maratek@google.com>2022-08-31 21:08:54 -0700
committerXNNPACK Team <xnnpack-github-robot@google.com>2022-08-31 21:09:54 -0700
commit63ba5160296fe81926f56ea89b9fb3ee1a7b7a42 (patch)
tree1f03a3612f80e8bc366983a60b98fb2819c73e80
parent87a1f45360133217ed40ef5c384c4f5ba43be9ff (diff)
downloadXNNPACK-63ba5160296fe81926f56ea89b9fb3ee1a7b7a42.tar.gz
Export filegroup targets for microkernels headers and sources
PiperOrigin-RevId: 471430741
-rw-r--r--BUILD.bazel25
1 files changed, 20 insertions, 5 deletions
diff --git a/BUILD.bazel b/BUILD.bazel
index b56cc3cf1..f69155098 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -8593,10 +8593,9 @@ JIT_AARCH64_SRCS = [
"src/f32-igemm/6x8-aarch64-neonfma-ld128.cc",
]
-INTERNAL_MICROKERNEL_HDRS = [
+MICROKERNEL_HDRS = [
"src/xnnpack/argmaxpool.h",
"src/xnnpack/avgpool.h",
- "src/xnnpack/cache.h",
"src/xnnpack/conv.h",
"src/xnnpack/dwconv.h",
"src/xnnpack/fft.h",
@@ -8606,9 +8605,7 @@ INTERNAL_MICROKERNEL_HDRS = [
"src/xnnpack/gemm.h",
"src/xnnpack/ibilinear.h",
"src/xnnpack/igemm.h",
- "src/xnnpack/intrinsics-polyfill.h",
"src/xnnpack/lut.h",
- "src/xnnpack/math-stubs.h",
"src/xnnpack/maxpool.h",
"src/xnnpack/packx.h",
"src/xnnpack/pad.h",
@@ -8618,7 +8615,6 @@ INTERNAL_MICROKERNEL_HDRS = [
"src/xnnpack/raddexpminusmax.h",
"src/xnnpack/raddextexp.h",
"src/xnnpack/raddstoreexpminusmax.h",
- "src/xnnpack/requantization-stubs.h",
"src/xnnpack/rmax.h",
"src/xnnpack/rmaxabs.h",
"src/xnnpack/spmm.h",
@@ -8640,6 +8636,25 @@ INTERNAL_MICROKERNEL_HDRS = [
"src/xnnpack/zip.h",
]
+INTERNAL_MICROKERNEL_HDRS = MICROKERNEL_HDRS + [
+ "src/xnnpack/cache.h",
+ "src/xnnpack/intrinsics-polyfill.h",
+ "src/xnnpack/math-stubs.h",
+ "src/xnnpack/requantization-stubs.h",
+]
+
+filegroup(
+ name = "microkernel_source_files",
+ data = ALL_SCALAR_MICROKERNEL_SRCS + ALL_WASM_MICROKERNEL_SRCS + ALL_WASMSIMD_MICROKERNEL_SRCS + ALL_WASMRELAXEDSIMD_MICROKERNEL_SRCS + ALL_ARMSIMD32_MICROKERNEL_SRCS + ALL_NEON_MICROKERNEL_SRCS + ALL_NEONFP16_MICROKERNEL_SRCS + ALL_NEONFMA_MICROKERNEL_SRCS + ALL_AARCH64_NEON_MICROKERNEL_SRCS + ALL_NEONV8_MICROKERNEL_SRCS + ALL_NEONFP16ARITH_MICROKERNEL_SRCS + ALL_AARCH64_NEONFP16ARITH_MICROKERNEL_SRCS + ALL_NEONBF16_MICROKERNEL_SRCS + ALL_AARCH64_NEONBF16_MICROKERNEL_SRCS + ALL_NEONDOT_MICROKERNEL_SRCS + ALL_SSE_MICROKERNEL_SRCS + ALL_SSE2_MICROKERNEL_SRCS + ALL_SSSE3_MICROKERNEL_SRCS + ALL_SSE41_MICROKERNEL_SRCS + ALL_AVX_MICROKERNEL_SRCS + ALL_F16C_MICROKERNEL_SRCS + ALL_XOP_MICROKERNEL_SRCS + ALL_FMA3_MICROKERNEL_SRCS + ALL_AVX2_MICROKERNEL_SRCS + ALL_AVX512F_MICROKERNEL_SRCS + ALL_AVX512SKX_MICROKERNEL_SRCS + WASM32_ASM_MICROKERNEL_SRCS + AARCH32_ASM_MICROKERNEL_SRCS + AARCH64_ASM_MICROKERNEL_SRCS + ["src/microparams-init.c"],
+ visibility = xnnpack_visibility(),
+)
+
+filegroup(
+ name = "microkernel_header_files",
+ data = MICROKERNEL_HDRS + ["src/xnnpack/microparams.h"],
+ visibility = xnnpack_visibility(),
+)
+
# Collection of internal microkernel related headers that declares all the microkernel functions.
xnnpack_cc_library(
name = "microkernels_h",