Skip to content

Commit 9918182

Browse files
committed
Update XNNPACK to 1ed874e65
1 parent 3b25b05 commit 9918182

File tree

2 files changed

+5
-15
lines changed

2 files changed

+5
-15
lines changed
Submodule XNNPACK updated 1489 files

backends/xnnpack/third-party/xnnpack_src_defs.bzl

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
load(
2-
"//backends/xnnpack/third-party/XNNPACK:build_srcs.bzl",
2+
"//xplat/third-party/XNNPACK/XNNPACK:build_srcs.bzl",
33
_LOGGING_SRCS = "LOGGING_SRCS",
44
_OPERATOR_SRCS = "OPERATOR_SRCS",
55
_SUBGRAPH_SRCS = "SUBGRAPH_SRCS",
66
_TABLE_SRCS = "TABLE_SRCS",
77
_XNNPACK_SRCS = "XNNPACK_SRCS",
88
)
9-
load("//backends/xnnpack/third-party/XNNPACK/gen:microkernels.bzl", "prod_srcs_for_arch")
10-
load("//third-party:glob_defs.bzl", "subdir_glob")
9+
load("//xplat/third-party/XNNPACK/XNNPACK/gen:microkernels.bzl", "prod_srcs_for_arch")
10+
load("//tools/build_defs:glob_defs.bzl", "subdir_glob")
1111

1212
def define_xnnpack_build_src(xnnpack_build_src):
1313
return ["XNNPACK/{}".format(src) for src in xnnpack_build_src]
@@ -17,24 +17,14 @@ def prod_srcs_for_arch_wrapper(arch):
1717
return define_xnnpack_build_src(prod_srcs)
1818

1919
def get_xnnpack_headers():
20-
# XNNPACK Headers in the path containing xnnpack/ or configs/
21-
# do not contain the src/ path. However headers not in xnnpack/ or
22-
# configs/ are prepend with the src/ path. This function helps us
23-
# to correctly parse all the header files to the correct name
2420
src_headers = subdir_glob([
2521
("XNNPACK/src", "**/*.h"),
2622
])
27-
fixed_headers = {}
28-
for k, v in src_headers.items():
29-
new_key = k
30-
if not k.startswith("xnnpack") and not k.startswith("configs"):
31-
new_key = "src/{}".format(k)
32-
fixed_headers[new_key] = v
3323
include_headers = subdir_glob([
3424
("XNNPACK/include", "*.h"),
3525
])
3626

37-
return fixed_headers | include_headers
27+
return src_headers | include_headers
3828

3929
OPERATOR_SRCS = define_xnnpack_build_src(_OPERATOR_SRCS)
4030
SUBGRAPH_SRCS = define_xnnpack_build_src(_SUBGRAPH_SRCS)

0 commit comments

Comments
 (0)